Lines Matching refs:ucMBFrame

91     UCHAR                 *ucMBFrame;  in eMBMasterReqReadCoils()  local
98 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterReqReadCoils()
100 ucMBFrame[MB_PDU_FUNC_OFF] = MB_FUNC_READ_COILS; in eMBMasterReqReadCoils()
101 ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] = usCoilAddr >> 8; in eMBMasterReqReadCoils()
102 ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] = usCoilAddr; in eMBMasterReqReadCoils()
103 ucMBFrame[MB_PDU_REQ_READ_COILCNT_OFF ] = usNCoils >> 8; in eMBMasterReqReadCoils()
104 ucMBFrame[MB_PDU_REQ_READ_COILCNT_OFF + 1] = usNCoils; in eMBMasterReqReadCoils()
116 UCHAR *ucMBFrame; in eMBMasterFuncReadCoils() local
131 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterFuncReadCoils()
132 usRegAddress = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] << 8 ); in eMBMasterFuncReadCoils()
133 usRegAddress |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] ); in eMBMasterFuncReadCoils()
136 usCoilCount = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_COILCNT_OFF] << 8 ); in eMBMasterFuncReadCoils()
137 usCoilCount |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_COILCNT_OFF + 1] ); in eMBMasterFuncReadCoils()
197 UCHAR *ucMBFrame; in eMBMasterReqWriteCoil() local
205 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterReqWriteCoil()
207 ucMBFrame[MB_PDU_FUNC_OFF] = MB_FUNC_WRITE_SINGLE_COIL; in eMBMasterReqWriteCoil()
208 ucMBFrame[MB_PDU_REQ_WRITE_ADDR_OFF] = usCoilAddr >> 8; in eMBMasterReqWriteCoil()
209 ucMBFrame[MB_PDU_REQ_WRITE_ADDR_OFF + 1] = usCoilAddr; in eMBMasterReqWriteCoil()
210 ucMBFrame[MB_PDU_REQ_WRITE_VALUE_OFF ] = usCoilData >> 8; in eMBMasterReqWriteCoil()
211 ucMBFrame[MB_PDU_REQ_WRITE_VALUE_OFF + 1] = usCoilData; in eMBMasterReqWriteCoil()
291 UCHAR *ucMBFrame; in eMBMasterReqWriteMultipleCoils() local
301 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterReqWriteMultipleCoils()
303 ucMBFrame[MB_PDU_FUNC_OFF] = MB_FUNC_WRITE_MULTIPLE_COILS; in eMBMasterReqWriteMultipleCoils()
304 ucMBFrame[MB_PDU_REQ_WRITE_MUL_ADDR_OFF] = usCoilAddr >> 8; in eMBMasterReqWriteMultipleCoils()
305 ucMBFrame[MB_PDU_REQ_WRITE_MUL_ADDR_OFF + 1] = usCoilAddr; in eMBMasterReqWriteMultipleCoils()
306 ucMBFrame[MB_PDU_REQ_WRITE_MUL_COILCNT_OFF] = usNCoils >> 8; in eMBMasterReqWriteMultipleCoils()
307 ucMBFrame[MB_PDU_REQ_WRITE_MUL_COILCNT_OFF + 1] = usNCoils ; in eMBMasterReqWriteMultipleCoils()
316 ucMBFrame[MB_PDU_REQ_WRITE_MUL_BYTECNT_OFF] = ucByteCount; in eMBMasterReqWriteMultipleCoils()
317 ucMBFrame += MB_PDU_REQ_WRITE_MUL_VALUES_OFF; in eMBMasterReqWriteMultipleCoils()
320 *ucMBFrame++ = pucDataBuffer[usRegIndex++]; in eMBMasterReqWriteMultipleCoils()
336 UCHAR *ucMBFrame; in eMBMasterFuncWriteMultipleCoils() local
344 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterFuncWriteMultipleCoils()
352 ucByteCount = ucMBFrame[MB_PDU_REQ_WRITE_MUL_BYTECNT_OFF]; in eMBMasterFuncWriteMultipleCoils()
367 eMBMasterRegCoilsCB( &ucMBFrame[MB_PDU_REQ_WRITE_MUL_VALUES_OFF], in eMBMasterFuncWriteMultipleCoils()