ConOpSys V2970  P004.07
ANVILEX control operating system
test_tcp.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 
3 #pragma once
4 
5 //------------------------------------------------------------------------------
6 
7 #include "lwip/tcp.h"
8 
9 //------------------------------------------------------------------------------
10 
11 // Initialisation tcp stack, call after lwip_init()
12 void tcp_setup(void);
13 
14 // send tcp packet
15 uint32_t tcp_send_packet(void);
16 
17 // Connect callback, call after tcp connection (transmitted to tcp_connect())
18 err_t connectCallback(void *arg, struct tcp_pcb *tpcb, err_t err);
19 
20 // Receive callback, call if paket received (transmitted tcp_recv())
21 err_t tcpRecvCallback(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err);
22 
23 // Error callback, call if error (transmitted tcp_err())
24 void tcpErrCallback(void *arg, err_t err);
25 
26 //------------------------------------------------------------------------------
s8_t err_t
Definition: err.h:96
Definition: pbuf.h:186
err_t tcpRecvCallback(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err)
Definition: test_tcp.c:81
void tcp_setup(void)
Definition: test_tcp.c:7
uint32_t tcp_send_packet(void)
Definition: test_tcp.c:37
err_t connectCallback(void *arg, struct tcp_pcb *tpcb, err_t err)
Definition: test_tcp.c:69
void tcpErrCallback(void *arg, err_t err)
Definition: test_tcp.c:91