aboutsummaryrefslogtreecommitdiff
path: root/center_fw/src/transmit.h
blob: dd9bcb9601c4b9f7a25aefeb98cf826e134ee9a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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__ */