Home
last modified time | relevance | path

Searched refs:usTCPBufPos (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c270 … MB_PORT_CHECK((pxClientInfo->usTCPBufPos + pxClientInfo->usTCPFrameBytesLeft < MB_TCP_BUF_SIZE), in xMBTCPPortRxPoll()
273 … (pxClientInfo->usTCPBufPos + pxClientInfo->usTCPFrameBytesLeft)); in xMBTCPPortRxPoll()
274 … int xLength = recv(pxClientInfo->xSockId, &pxClientInfo->pucTCPBuf[pxClientInfo->usTCPBufPos], in xMBTCPPortRxPoll()
289 pxClientInfo->usTCPBufPos += xLength; in xMBTCPPortRxPoll()
291 if (pxClientInfo->usTCPBufPos >= MB_TCP_FUNC) { in xMBTCPPortRxPoll()
296 if (pxClientInfo->usTCPBufPos < (MB_TCP_UID + xLength)) { in xMBTCPPortRxPoll()
298 … pxClientInfo->usTCPFrameBytesLeft = xLength + MB_TCP_UID - pxClientInfo->usTCPBufPos; in xMBTCPPortRxPoll()
299 } else if (pxClientInfo->usTCPBufPos == (MB_TCP_UID + xLength)) { in xMBTCPPortRxPoll()
301 … prvvMBTCPLogFrame(TAG, (UCHAR*)&pxClientInfo->pucTCPBuf[0], pxClientInfo->usTCPBufPos); in xMBTCPPortRxPoll()
305 xRet = pxClientInfo->usTCPBufPos; in xMBTCPPortRxPoll()
[all …]
Dport_tcp_slave.h70 USHORT usTCPBufPos; /*!< buffer active position */ member