23 #include <sys/types.h> 88 for (
int i = 0; i < CMsg.
getLength(); i++)
131 if (
m_reader.
read(&frame, boost::chrono::milliseconds(10)))
142 while ((i < iNrOfRetry && bRet !=
true));
157 if (
m_reader.
read(&frame, boost::chrono::microseconds(nMicroSecTimeout)))
170 std::cout <<
"ERROR: state=" << std::endl;
void listen(CommInterfaceSharedPtr interface)
bool transmitMsg(CanMsg CMsg, bool bBlocking=true)
boost::array< value_type, 8 > data
boost::shared_ptr< CommInterface > CommInterfaceSharedPtr
bool receiveMsgRetry(CanMsg *pCMsg, int iNrOfRetry)
can::BufferedReader m_reader
bool read(can::Frame *msg, const DurationType &duration)
bool receiveMsgTimeout(CanMsg *pCMsg, int nMicroSecTimeout)
enum can::State::DriverState driver_state
bool receiveMsg(CanMsg *pCMsg)
SocketCan(const char *device, int baudrate)
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)
can::ThreadedSocketCANInterfaceSharedPtr m_handle
unsigned int internal_error
void print_error(const can::State &state)
boost::system::error_code error_code