11 #ifndef CARMA_CANBUS_CANDIO_H
12 #define CARMA_CANBUS_CANDIO_H
68 bool terminate =
true );
81 bool terminate =
true );
99 CanDio(
const std::vector< DevTermPair > & devTermPairs,
125 std::map<busIdType, carma::canbus::busStatusType>
144 const bool terminate_;
145 std::auto_ptr< carma::canbus::Dio > dio_;
146 std::auto_ptr< carma::canbus::CanIo > cio_;
151 #endif // CARMA_CANBUS_CANDIO_H
Class to control the CARMA specialized Janz CAN/DIO card.
Class to encapsulate a CAN message.
bool isTerminated()
Return termination state.
Declaration of carma::canbus::CanIo interface.
void queueMessage(const Message &msg)
Queue CAN message to be read for simulation purposes.
CanDio()
Default constructor.
void setTimestampEchoLatency(int tsLatency, busIdType busId)
Set timestamp echo latency.
const long pulseWidth_
Reset pulsewidth.
void echoAll(bool enable)
Enable or disable echoing sent messages back through the read interface.
::std::pair< int, int > BoardSlotPair
Pair containing boardId (first) and slotId (second).
Declaration of carma::canbus::Dio class.
txPriorityType
CAN Tx priority type.
void clearReadQueue()
Clear any underlying read buffers.
unsigned short busIdType
Carma Bus Id type.
carma::canbus::Message getMessage()
Retrieve a CAN message.
::std::pair< BoardSlotPair, bool > DevTermPair
Pair for board & slot (first) and termination setting (second).
void postMessage(const carma::canbus::Message &msg, carma::canbus::txPriorityType prio=carma::canbus::NORMAL)
Post a CAN message.