31 #include "pprzlink/pprzlink_device.h"
33 #include "generated/airframe.h"
35 #define W5100_RX_BUFFER_SIZE 80
36 #define W5100_TX_BUFFER_SIZE 80
37 #define W5100_BUFFER_NUM 2
79 #include "pprzlink/pprz_transport.h"
88 }
while ((t->status !=
UNINIT) && !(t->trans_rx.msg_received));
92 #define W5100CheckAndParse(_dev, _trans) w5100_check_and_parse(&(_dev).device, &(_trans))
96 if (dev->char_available(dev->periph)) {
98 if (trans->trans_rx.msg_received) {
100 trans->trans_rx.msg_received =
false;
volatile uint8_t work_tx[4]
#define W5100_TX_BUFFER_SIZE
volatile uint16_t rx_insert_idx[W5100_BUFFER_NUM]
Handling of messages coming from ground and other A/Cs.
uint8_t w5100_rx_buf[W5100_RX_BUFFER_SIZE]
#define W5100_RX_BUFFER_SIZE
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]
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
bool w5100_ch_available(void)
#define DatalinkFillDlBuffer(_buf, _len)
Convenience macro to fill dl_buffer.
void w5100_transmit_buffer(uint8_t *data, uint16_t len)
static void w5100_read_buffer(struct pprz_transport *t)
volatile uint8_t tx_running
struct link_device device
Generic device interface.
#define UNINIT
Receiving pprz messages.