32 #include "generated/airframe.h"
34 #define W5100_RX_BUFFER_SIZE 80
35 #define W5100_TX_BUFFER_SIZE 80
36 #define W5100_BUFFER_NUM 2
90 #define W5100CheckAndParse(_dev, _trans) w5100_check_and_parse(&(_dev).device, &(_trans))
bool_t w5100_ch_available(void)
volatile bool_t msg_received
message received flag
volatile uint8_t work_tx[4]
#define W5100_TX_BUFFER_SIZE
volatile uint16_t rx_insert_idx[W5100_BUFFER_NUM]
uint8_t w5100_rx_buf[W5100_RX_BUFFER_SIZE]
static void parse_pprz(struct pprz_transport *t, uint8_t c)
#define W5100_RX_BUFFER_SIZE
Building and parsing Paparazzi frames.
uint16_t w5100_rx_size(uint8_t _s)
volatile uint8_t tx_buf[W5100_BUFFER_NUM][W5100_TX_BUFFER_SIZE]
volatile uint8_t rx_buf[W5100_BUFFER_NUM][W5100_RX_BUFFER_SIZE]
void * periph
pointer to parent implementation
volatile uint16_t rx_extract_idx[W5100_BUFFER_NUM]
static void w5100_check_and_parse(struct link_device *dev, struct pprz_transport *trans)
void w5100_transmit(uint8_t data)
volatile uint16_t tx_insert_idx[W5100_BUFFER_NUM]
volatile uint16_t tx_extract_idx[W5100_BUFFER_NUM]
volatile uint8_t work_rx[4]
uint16_t w5100_receive(uint8_t *buf, uint16_t len)
static const struct usb_device_descriptor dev
struct w5100_periph chip0
struct transport_rx trans_rx
char_available_t char_available
check if a new character is available
static void w5100_read_buffer(struct pprz_transport *t)
static void pprz_parse_payload(struct pprz_transport *t)
struct link_device device
Generic device interface.
#define UNINIT
Receiving pprz messages.