Lines Matching refs:ucMBFrame
75 UCHAR *ucMBFrame; in eMBMasterReqReadDiscreteInputs() local
82 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterReqReadDiscreteInputs()
84 ucMBFrame[MB_PDU_FUNC_OFF] = MB_FUNC_READ_DISCRETE_INPUTS; in eMBMasterReqReadDiscreteInputs()
85 ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] = usDiscreteAddr >> 8; in eMBMasterReqReadDiscreteInputs()
86 ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] = usDiscreteAddr; in eMBMasterReqReadDiscreteInputs()
87 ucMBFrame[MB_PDU_REQ_READ_DISCCNT_OFF ] = usNDiscreteIn >> 8; in eMBMasterReqReadDiscreteInputs()
88 ucMBFrame[MB_PDU_REQ_READ_DISCCNT_OFF + 1] = usNDiscreteIn; in eMBMasterReqReadDiscreteInputs()
102 UCHAR *ucMBFrame; in eMBMasterFuncReadDiscreteInputs() local
114 vMBMasterGetPDUSndBuf(&ucMBFrame); in eMBMasterFuncReadDiscreteInputs()
115 usRegAddress = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF] << 8 ); in eMBMasterFuncReadDiscreteInputs()
116 usRegAddress |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_ADDR_OFF + 1] ); in eMBMasterFuncReadDiscreteInputs()
119 usDiscreteCnt = ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_DISCCNT_OFF] << 8 ); in eMBMasterFuncReadDiscreteInputs()
120 usDiscreteCnt |= ( USHORT )( ucMBFrame[MB_PDU_REQ_READ_DISCCNT_OFF + 1] ); in eMBMasterFuncReadDiscreteInputs()