From 9eef62547efdf8e18009b6d6d6b3f7c80bf64e13 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 17 Apr 2019 16:32:43 +0900 Subject: center/fw: Add backchannel infrastructure Untested! --- center_fw/transmit.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 center_fw/transmit.h (limited to 'center_fw/transmit.h') diff --git a/center_fw/transmit.h b/center_fw/transmit.h new file mode 100644 index 0000000..dd9bcb9 --- /dev/null +++ b/center_fw/transmit.h @@ -0,0 +1,18 @@ +#ifndef __TRANSMIT_H__ +#define __TRANSMIT_H__ + +#include "global.h" +#include "8b10b.h" + +#define TX_IDLE (-1) + +#define TX_ERR_BUSY -1 +#define TX_ERR_UNINITIALIZED -2 + +extern volatile uint32_t tx_overflow_cnt; + +void tx_init(uint8_t *tx_buf); +int tx_transmit(size_t len); +int tx_next_bit(void); + +#endif /* __TRANSMIT_H__ */ -- cgit