| CANSocketBCM::read |
( |
struct CANFrameInfo & |
message, |
|
|
unsigned int |
timeout = 1000 |
|
) |
| |
|
virtual |
Try to read CAN frame
- Parameters
-
| message | Buffer for CAN frame with additional information |
| timeout | Timeout for reading in [ms]. |
- Returns
- Reading operation status code.
Reimplemented from CANSocket.
| CANSocketBCM::registerCyclicMessageForReceive |
( |
int |
canId, |
|
|
double |
minCycleTime, |
|
|
double |
maxCycleTime |
|
) |
| |
|
virtual |
Registers CAN ID of a cyclic message for receiving
- Parameters
-
| canId | CAN ID of the message. |
| minCycleTime | Minimal interval between messages in seconds. Set to 0 if not used. |
| maxCycleTime | Maximum interval between messages for timeout detection in seconds. Set to 0 if no timeout detection is necessary. |
- Returns
- True if registration succeeds.
Reimplemented from CANSocket.
| CANSocketBCM::start |
( |
const char * |
ifName | ) |
|
|
virtual |
Opens and initialize CAN socket
- Parameters
-
| ifName | Name of the CAN bus network interface. |
- Returns
- True if no error occurs.
Implements CANSocket.
| CANSocketBCM::unregisterMessageForReceive |
( |
int |
canId | ) |
|
|
virtual |
Unregisters CAN ID for receiving
- Parameters
-
| canId | CAN ID of the message. |
- Returns
- True if de-registration succeeds.
Reimplemented from CANSocket.
Writes CAN frame using the socket
- Parameters
-
| message | CAN frame with additional information |
| bytesWritten | Number of written bytes. |
- Returns
- True if no error occurs.
Reimplemented from CANSocket.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/automotive-message-broker-0.15/plugins/common/cansocketbcm.h