Searched refs:xRet (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.4.0/components/freemodbus/tcp_slave/port/ |
D | port_tcp_slave.c | 240 int xRet = ERR_CLSD; in xMBTCPPortRxPoll() local 254 xRet = select(pxClientInfo->xSockId + 1, &xReadSet, NULL, NULL, &xTimeVal); in xMBTCPPortRxPoll() 255 if (xRet == -1) in xMBTCPPortRxPoll() 258 xRet = ERR_CLSD; in xMBTCPPortRxPoll() 260 } else if (xRet == 0) { in xMBTCPPortRxPoll() 264 xRet = ERR_TIMEOUT; in xMBTCPPortRxPoll() 279 xRet = (err_t)xLength; in xMBTCPPortRxPoll() 285 xRet = ERR_CLSD; in xMBTCPPortRxPoll() 305 xRet = pxClientInfo->usTCPBufPos; in xMBTCPPortRxPoll() 311 xRet = ERR_BUF; in xMBTCPPortRxPoll() [all …]
|
/hal_espressif-3.4.0/components/freemodbus/tcp_master/port/ |
D | port_tcp_master.c | 326 int xRet = 0; in vMBTCPPortMasterReadPacket() local 333 xRet = xMBTCPPortMasterGetBuf(pxInfo, &pxInfo->pucRcvBuf[0], MB_TCP_UID); in vMBTCPPortMasterReadPacket() 334 if (xRet < 0) { in vMBTCPPortMasterReadPacket() 335 pxInfo->xRcvErr = xRet; in vMBTCPPortMasterReadPacket() 336 return xRet; in vMBTCPPortMasterReadPacket() 337 } else if (xRet != MB_TCP_UID) { in vMBTCPPortMasterReadPacket() 339 … pxInfo->xSockId, pxInfo->pcIpAddr, xRet); in vMBTCPPortMasterReadPacket() 346 xRet = xMBTCPPortMasterGetBuf(pxInfo, &pxInfo->pucRcvBuf[MB_TCP_UID], xLength); in vMBTCPPortMasterReadPacket() 347 if (xRet < 0) { in vMBTCPPortMasterReadPacket() 348 pxInfo->xRcvErr = xRet; in vMBTCPPortMasterReadPacket() [all …]
|