Home
last modified time | relevance | path

Searched refs:pucMBTCPFrame (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/freemodbus/modbus/tcp/
Dmbtcp_m.c104 UCHAR *pucMBTCPFrame; in eMBMasterTCPReceive() local
108 if( xMBMasterTCPPortGetRequest( &pucMBTCPFrame, &usLength ) != FALSE ) in eMBMasterTCPReceive()
110 usPID = pucMBTCPFrame[MB_TCP_PID] << 8U; in eMBMasterTCPReceive()
111 usPID |= pucMBTCPFrame[MB_TCP_PID + 1]; in eMBMasterTCPReceive()
115 *ppucFrame = &pucMBTCPFrame[MB_TCP_FUNC]; in eMBMasterTCPReceive()
136 UCHAR *pucMBTCPFrame = ( UCHAR * ) pucFrame - MB_TCP_FUNC; in eMBMasterTCPSend() local
145 pucMBTCPFrame[MB_TCP_LEN] = ( usLength + 1 ) >> 8U; in eMBMasterTCPSend()
146 pucMBTCPFrame[MB_TCP_LEN + 1] = ( usLength + 1 ) & 0xFF; in eMBMasterTCPSend()
147 if( xMBMasterTCPPortSendResponse( pucMBTCPFrame, usTCPLength ) == FALSE ) in eMBMasterTCPSend()
Dmbtcp.c105 UCHAR *pucMBTCPFrame; in eMBTCPReceive() local
109 if( xMBTCPPortGetRequest( &pucMBTCPFrame, &usLength ) != FALSE ) in eMBTCPReceive()
111 usPID = pucMBTCPFrame[MB_TCP_PID] << 8U; in eMBTCPReceive()
112 usPID |= pucMBTCPFrame[MB_TCP_PID + 1]; in eMBTCPReceive()
116 *ppucFrame = &pucMBTCPFrame[MB_TCP_FUNC]; in eMBTCPReceive()
137 UCHAR *pucMBTCPFrame = ( UCHAR * ) pucFrame - MB_TCP_FUNC; in eMBTCPSend() local
146 pucMBTCPFrame[MB_TCP_LEN] = ( usLength + 1 ) >> 8U; in eMBTCPSend()
147 pucMBTCPFrame[MB_TCP_LEN + 1] = ( usLength + 1 ) & 0xFF; in eMBTCPSend()
148 if( xMBTCPPortSendResponse( pucMBTCPFrame, usTCPLength ) == FALSE ) in eMBTCPSend()
/hal_espressif-3.6.0/components/freemodbus/tcp_slave/port/
Dport_tcp_slave.c693 xMBTCPPortSendResponse( UCHAR * pucMBTCPFrame, USHORT usTCPLength ) in xMBTCPPortSendResponse() argument
716 pucMBTCPFrame[MB_TCP_TID] = (UCHAR)(xConfig.pxCurClientInfo->usTidCnt >> 8U); in xMBTCPPortSendResponse()
717 pucMBTCPFrame[MB_TCP_TID + 1] = (UCHAR)(xConfig.pxCurClientInfo->usTidCnt & 0xFF); in xMBTCPPortSendResponse()
720 xErr = send(xConfig.pxCurClientInfo->xSockId, pucMBTCPFrame, usTCPLength, TCP_NODELAY); in xMBTCPPortSendResponse()
727 vxMBTCPPortRespQueueSend(xConfig.xRespQueueHandle, (void*)pucMBTCPFrame); in xMBTCPPortSendResponse()
731 vxMBTCPPortRespQueueSend(xConfig.xRespQueueHandle, (void*)pucMBTCPFrame); in xMBTCPPortSendResponse()
/hal_espressif-3.6.0/components/freemodbus/modbus/include/
Dmbport.h231 BOOL xMBTCPPortSendResponse( UCHAR *pucMBTCPFrame, USHORT usTCPLength );
246 BOOL xMBMasterTCPPortSendResponse( UCHAR *pucMBTCPFrame, USHORT usTCPLength );
/hal_espressif-3.6.0/components/freemodbus/tcp_master/port/
Dport_tcp_master.c948 int xMBMasterTCPPortWritePoll(MbSlaveInfo_t* pxInfo, const UCHAR * pucMBTCPFrame, USHORT usTCPLengt… in xMBMasterTCPPortWritePoll() argument
958 xRes = send(pxInfo->xSockId, pucMBTCPFrame, usTCPLength, TCP_NODELAY); in xMBMasterTCPPortWritePoll()
967 xMBMasterTCPPortSendResponse( UCHAR * pucMBTCPFrame, USHORT usTCPLength ) in xMBMasterTCPPortSendResponse() argument
981 pucMBTCPFrame[MB_TCP_TID] = (UCHAR)(pxInfo->usTidCnt >> 8U); in xMBMasterTCPPortSendResponse()
982 pucMBTCPFrame[MB_TCP_TID + 1] = (UCHAR)(pxInfo->usTidCnt & 0xFF); in xMBMasterTCPPortSendResponse()
983 … int xRes = xMBMasterTCPPortWritePoll(pxInfo, pucMBTCPFrame, usTCPLength, MB_TCP_SEND_TIMEOUT_MS); in xMBMasterTCPPortSendResponse()