18 #ifndef CANMSG_INCLUDEDEF_H 19 #define CANMSG_INCLUDEDEF_H 32 typedef unsigned char BYTE;
60 void set(BYTE Data0=0, BYTE Data1=0, BYTE Data2=0, BYTE Data3=0, BYTE Data4=0, BYTE Data5=0, BYTE Data6=0, BYTE Data7=0)
83 void get(BYTE* pData0, BYTE* pData1, BYTE* pData2, BYTE* pData3, BYTE* pData4, BYTE* pData5, BYTE* pData6, BYTE* pData7)
112 std::cout <<
"ID= " << m_iID <<
" " <<
"Cmd= " <<
getCmd() <<
" " <<
"Msg_OK" << std::endl;
117 std::cout <<
"ID= " << m_iID <<
" " <<
"Cmd= " <<
getCmd() <<
" " <<
"Msg_Error" << std::endl;
127 std::cout <<
"id= " << m_iID <<
" type= " << m_iType <<
" len= " << m_iLen <<
" data= " <<
128 (int)m_bDat[0] <<
" " << (
int)m_bDat[1] <<
" " << (int)m_bDat[2] <<
" " << (
int)m_bDat[3] <<
" " <<
129 (int)m_bDat[4] <<
" " << (
int)m_bDat[5] <<
" " << (int)m_bDat[6] <<
" " << (
int)m_bDat[7] << std::endl;
138 return (
int)(m_bDat[7] & 0x0003);
146 return (m_bDat[7] >> 2);
165 if( (0 <=
id) && (
id <= 2047) )
184 if( (0 <= len) && (len <= 8) )
void setAt(BYTE data, int iNr)
int printCanIdentMsgStatus()
unsigned char BYTE
Include typedefs from windows.h.