arduino-emulator
|
Public Member Functions | |
virtual size_t | available ()=0 |
virtual bool | begin (CanBitRate const can_bitrate)=0 |
virtual void | end ()=0 |
virtual CanMsg | read ()=0 |
virtual int | write (CanMsg const &msg)=0 |
Determine if any messages have been received and buffered.
Initialize the CAN controller.
can_bitrate | the bus bit rate |
Disable the CAN controller.
Whether any messages that are buffered will be sent is implementation defined.
Returns the first message received, or an empty message if none are available.
Messages must be returned in the order received.
Enqueue a message for transmission to the CAN bus.
This call returns when the message has been enqueued for transmission. Due to bus arbitration and error recovery there may be a substantial delay before the message is actually sent.
An implementation must ensure that all messages with the same CAN priority are sent in the order in which they are enqueued.
It is implementation defined whether multiple messages can be enqueued for transmission, and if messages with higher CAN priority can preempt the transmission of previously enqueued messages. The default configuration for and implementation should not allow multiple messages to be enqueued.
msg | the message to send |