33 PRINT_CONFIG_VAR(UDP0_HOST)
34 PRINT_CONFIG_VAR(UDP0_PORT_OUT)
35 PRINT_CONFIG_VAR(UDP0_PORT_IN)
36 PRINT_CONFIG_VAR(UDP0_BROADCAST)
41 PRINT_CONFIG_VAR(UDP1_HOST)
42 PRINT_CONFIG_VAR(UDP1_PORT_OUT)
43 PRINT_CONFIG_VAR(UDP1_PORT_IN)
44 PRINT_CONFIG_VAR(UDP1_BROADCAST)
49 PRINT_CONFIG_VAR(UDP2_HOST)
50 PRINT_CONFIG_VAR(UDP2_PORT_OUT)
51 PRINT_CONFIG_VAR(UDP2_PORT_IN)
52 PRINT_CONFIG_VAR(UDP2_BROADCAST)
put_byte_t put_byte
put one byte
uint8_t(* get_byte_t)(void *)
bool_t udp_check_free_space(struct udp_periph *p, uint8_t len)
Check if there is enough free space in the transmit buffer.
check_free_space_t check_free_space
check if transmit buffer is not full
void udp_put_byte(struct udp_periph *p, uint8_t data)
Add one data byte to the tx buffer.
uint8_t tx_buf[UDP_TX_BUFFER_SIZE]
Transmit buffer.
void udp_periph_init(struct udp_periph *p, char *host, int port_out, int port_in, bool_t broadcast)
Initialize the UDP peripheral.
void udp_arch_periph_init(struct udp_periph *p, char *host, int port_out, int port_in, bool_t broadcast)
Initialize the UDP peripheral.
void udp_send_message(struct udp_periph *p)
Send a message.
void * periph
pointer to parent implementation
uint16_t udp_char_available(struct udp_periph *p)
Get number of bytes available in receive buffer.
get_byte_t get_byte
get a new char
int(* char_available_t)(void *)
#define UDP_TX_BUFFER_SIZE
void(* put_byte_t)(void *, uint8_t)
void(* send_message_t)(void *)
int(* check_free_space_t)(void *, uint8_t)
Function pointers definition.
char_available_t char_available
check if a new character is available
uint8_t udp_getch(struct udp_periph *p)
Get the last character from the receive buffer.
struct link_device device
Generic device interface.
send_message_t send_message
send completed buffer