|
| static err_t | tcpecho_recv (void *arg, struct tcp_pcb *tpcb, struct pbuf *p, err_t err) |
| | TCP echo receive:This function is called by tcpecho_accept, where it processes the received data. ;TCP回环接收函数:该函数被tcpecho_accept调用,在该函数中处理接收到的数据 More...
|
| |
| static err_t | tcpecho_accept (void *arg, struct tcp_pcb *newpcb, err_t err) |
| | TCP receive function: This function is called when new data is received. ;TCP接收函数:当收到新的数据时会调用该函数。 More...
|
| |
| static void | tcp_block_write (uint8_t *buff, uint32_t len) |
| | Write data for sending.Send data through TCP based on the address and length of the data being sent. ;写入需要发送的数据,根据发送数据的地址和长度,将数据通过TCP发送出去。 More...
|
| |
| void | tcp_poll_handle (void) |
| | Sending data using polling.Firstly, determine the values of adc_done[0] and adc_done[0]. If both are 1, it indicates that the data was not sent in a timely manner. If adc_done[0] is 1, set adc_done[0] to 0 and send the first half of the buff data; If adc_done[1] is 1, set adc_done[1] to 0 and send the second half of the buff data; ;LWIP将ADC的采样结果通过polling的方式发送出去,首先判断 adc_done[0]和adc_done[1]的值,如果同为1,表示数据未能及时发送。 若adc_done[0]为1,将adc_done[0]置0并发送adc_buff的前半部分数据; 若adc_done[1]为1,将adc_done[1]置0并发送adc_buff的前后半部分数据 More...
|
| |
| void | tcp_echo_init (void) |
| | TCP initialization, binding IP address and port number. ;TCP初始化,绑定IP地址和端口号。 More...
|
| |