You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.8 KiB

1 year ago
#ifndef IDIBUS_IMPL_CUSTOM_H_
#define IDIBUS_IMPL_CUSTOM_H_
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "IDIBUS_IMPL.h"
#include "../moduleFiles/SPI.h"
#define TimerStop TCCR2B = 0
#define ResetTimer TCNT2 = 0
#define TimerTime OCR2A
#define TimerStartTick TCCR2B = (1 << CS21) // 0.5 <20><><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8)
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
enum IDIBUS_MODULE_DEVICES_LIST // ????????????????????????????????????????
{
IDIBUS_GEN_DEV = 0x00,
IDIBUS_DEVICES_NUMBER
};
enum GenOperations {
GEN_Wait = 0x00,
GEN_Send
};
enum GenOperations CurrentState;
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
IDIBUS_DEVICE IDIBUS_DEVICES[IDIBUS_DEVICES_NUMBER];
#define GEN_CHN_COUNT 1
IDIBUS_CHANNEL IDIBUS_GEN_CHNLS[GEN_CHN_COUNT];
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
void IDIBUS_GEN_ChannelHandler(struct IDIBUS_CHANNEL_STR* CH, IDIBUS_FARG_TYPE *farg);
void STMReset();
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#endif /* IDIBUS_IMPL_CUSTOM_H_ */