예제 #1
0
void MrIpcCmdGetStatusData(MrIpcCmdType *Data, unsigned char *Buf)
{
   if (Data != (MrIpcCmdType *)NULL)
   {
      memcpy(Buf, MrIpcGetRawData(Data), MR_CS2_NUM_CAN_BYTES);
   }
}
예제 #2
0
void MrIpcCmdSetStatusData(MrIpcCmdType *Data, unsigned char *Buf)
{
   if (Data != (MrIpcCmdType *)NULL)
   {
      MrIpcSetCommand(Data, MrIpcCmdStatusData);
      memcpy(MrIpcGetRawData(Data), Buf, MR_CS2_NUM_CAN_BYTES);
   }
}
예제 #3
0
void MrIpcCmdGetCanBootldr(MrIpcCmdType *Data, unsigned char *Dlc,
                           char *CanData)
{
   *Dlc = MrIpcGetRawDlc(Data);
   memcpy(CanData, MrIpcGetRawData(Data), MR_CS2_NUM_CAN_BYTES);
}