42#ifndef CONFIG_BPLIB_CLA_UDP_BUFLEN
43# define CONFIG_BPLIB_CLA_UDP_BUFLEN (1024)
49#ifndef CONFIG_BPLIB_CLA_UDP_TIMEOUT
50# define CONFIG_BPLIB_CLA_UDP_TIMEOUT (10000)
54#define BPLIB_CLA_UDP_RX_STACK_SIZE (THREAD_STACKSIZE_MEDIUM + CONFIG_BPLIB_CLA_UDP_BUFLEN)
56#define BPLIB_CLA_UDP_TX_STACK_SIZE (THREAD_STACKSIZE_MEDIUM + CONFIG_BPLIB_CLA_UDP_BUFLEN)
struct sock_udp sock_udp_t
forward declare for async
int bplib_cla_udp_start(bplib_cla_udp_t *cla, uint32_t contact_id)
Starts the UDP CLA.
#define BPLIB_CLA_UDP_TX_STACK_SIZE
TX stack size, including egress buffer.
void bplib_cla_udp_stop(bplib_cla_udp_t *cla)
Stops the CLA.
#define BPLIB_CLA_UDP_RX_STACK_SIZE
RX stack size, including receive buffer.
Holds an instance of a UDP CLA, including its stacks.
sock_udp_t sock
Connection socket.
volatile int running
Whether the CLA is running.
uint32_t contact_id
Index of the contact in the contact table.
char stack_rx[BPLIB_CLA_UDP_RX_STACK_SIZE]
Stack of the ingress thread (sock recv -> bplib)
char stack_tx[BPLIB_CLA_UDP_TX_STACK_SIZE]
Stack of the egress thread (bplib -> sock send)
Thread configuration defines.