35 PRINT_CONFIG_VAR(UDP0_HOST)
36 PRINT_CONFIG_VAR(UDP0_PORT_OUT)
37 PRINT_CONFIG_VAR(UDP0_PORT_IN)
38 PRINT_CONFIG_VAR(UDP0_BROADCAST)
43 PRINT_CONFIG_VAR(UDP1_HOST)
44 PRINT_CONFIG_VAR(UDP1_PORT_OUT)
45 PRINT_CONFIG_VAR(UDP1_PORT_IN)
46 PRINT_CONFIG_VAR(UDP1_BROADCAST)
51 PRINT_CONFIG_VAR(UDP2_HOST)
52 PRINT_CONFIG_VAR(UDP2_PORT_OUT)
53 PRINT_CONFIG_VAR(UDP2_PORT_IN)
54 PRINT_CONFIG_VAR(UDP2_BROADCAST)
65 p->
device.periph = (
void *)p;
void udp_periph_init(struct udp_periph *p, char *host, int port_out, int port_in, bool broadcast)
Initialize the UDP peripheral.
void WEAK udp_put_byte(struct udp_periph *p, long fd, uint8_t data)
Add one data byte to the tx buffer.
uint8_t tx_buf[UDP_TX_BUFFER_SIZE]
Transmit buffer.
void udp_send_message(struct udp_periph *p, long fd)
Send a message.
uint16_t udp_char_available(struct udp_periph *p)
Get number of bytes available in receive buffer.
void WEAK udp_put_buffer(struct udp_periph *p, long fd, const uint8_t *data, uint16_t len)
#define UDP_TX_BUFFER_SIZE
uint8_t udp_getch(struct udp_periph *p)
Get the last character from the receive buffer.
bool WEAK udp_check_free_space(struct udp_periph *p, long *fd, uint16_t len)
Check if there is enough free space in the transmit buffer.
void udp_arch_periph_init(struct udp_periph *p, char *host, int port_out, int port_in, bool broadcast)
Initialize the UDP peripheral.
struct link_device device
Generic device interface.