20 #define TRANSPONDER_BITS_PER_BYTE 10 // start + 8 data + stop
21 #define TRANSPONDER_DATA_LENGTH 6
22 #define TRANSPONDER_TOGGLES_PER_BIT 11
23 #define TRANSPONDER_GAP_TOGGLES 1
24 #define TRANSPONDER_TOGGLES (TRANSPONDER_TOGGLES_PER_BIT + TRANSPONDER_GAP_TOGGLES)
26 #define TRANSPONDER_DMA_BUFFER_SIZE ((TRANSPONDER_TOGGLES_PER_BIT + 1) * TRANSPONDER_BITS_PER_BYTE * TRANSPONDER_DATA_LENGTH)
28 #define BIT_TOGGLE_1 78 // (156 / 2)
29 #define BIT_TOGGLE_0 0
void transponderIrUpdateData(const uint8_t *transponderData)
Definition: transponder_ir.c:109
uint8_t transponderIrDMABuffer[TRANSPONDER_DMA_BUFFER_SIZE]
Definition: transponder_ir.c:37
#define TRANSPONDER_DMA_BUFFER_SIZE
Definition: transponder_ir.h:26
bool isTransponderIrReady(void)
Definition: transponder_ir.c:57
void transponderIrDisable(void)
Definition: transponder_ir_stm32f30x.c:130
void transponderIrTransmit(void)
Definition: transponder_ir.c:117
volatile uint8_t transponderIrDataTransferInProgress
Definition: transponder_ir.c:39
void transponderIrInit(void)
Definition: transponder_ir.c:50
void transponderIrWaitForTransmitComplete(void)
Definition: transponder_ir.c:100
void transponderIrHardwareInit(void)
Definition: transponder_ir_stm32f30x.c:42
void transponderIrDMAEnable(void)
Definition: transponder_ir_stm32f30x.c:122