50 next = (fifo->
head + 1) % fifo->
size;
70 next = (fifo->
tail + 1) % fifo->
size;
106 for (
int i = 0; i < len; ++i) {
smartPortUplinkFn * smartPortUplink
smartPortDownlinkFn * smartPortDownlink
if(GpsFixValid() &&e_identification_started)
void datalink_frsky_x_init(void)
static int fifo_free(fifo_t *fifo)
struct frsky_x_serial_periph frsky_x_serial
static int frsky_x_serial_check_free_space(void *p, long *fd, uint16_t len)
static uint8_t frsky_x_serial_get_byte(void *p)
static void frsky_x_serial_put_buffer(void *p, long fd, const uint8_t *data, uint16_t len)
static int fifo_avail(fifo_t *fifo)
static bool smartPortDownlink_cb(uint32_t *data)
static void smartPortUplink_cb(smartPortPayload_t *payload)
static void frsky_x_serial_put_byte(void *p, long fd, uint8_t c)
static bool fifo_put(fifo_t *fifo, uint8_t c)
static void frsky_x_serial_send_message(void *p, long fd)
static int frsky_x_serial_char_available(void *p)
static void fifo_init(fifo_t *fifo, uint8_t *buf, size_t size)
static bool fifo_get(fifo_t *fifo, uint8_t *pc)
#define DOWNLINK_BUFFER_SIZE
struct link_device device
Generic device interface.
uint8_t uplink_buf[UPLINK_BUFFER_SIZE]
#define UPLINK_BUFFER_SIZE
uint8_t downlink_buf[DOWNLINK_BUFFER_SIZE]
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.