Description of all data structures, definitions and functions in the bus layer:
Prototype
· CANBUS_DATA CAN BUS OBJECT
· CANBUS_PARA BUS CONFIGURATION
Prototype
· CanBusInit() INITIALIZE CAN BUS MANAGEMENT
· CanBusIoCtl() CAN BUS I/O CONTROL
· CanBusRead() RECEIVE CAN FRAME
· CanBusWrite() SEND CAN FRAME
· CanBusEnable() ENABLE CAN BUS
· CanBusDisable() DISABLE CAN BUS
· CanBusTxHandler() CAN TX INTERRUPT HANDLER
· CanBusRxHandler() CAN RX INTERRUPT HANDLER
· CanBusNSHandler() CAN STATUS-CHANGE INTERRUPT HANDLERThis layer implements the buffered CAN message handling for one or more busses. All access to the CAN controller shall be done with this layer.
Panel | ||||
---|---|---|---|---|
| ||||
The CAN bus layer is configurable during compile time to minimize memory footprint and optimize performance. The following list shows the configuration parameters and their functionality:
Configuration | Meaning | Range | Default |
---|---|---|---|
| This parameter enables (1) or disables (0) the CAN bus management, e.g. the usage of μC/CAN. | 0 / 1 | 1 |
| This parameter defines the maximal number of managed CAN busses. | 1 ... 255 | 1 |
| This parameter enables (1) or disables (0) the argument checking of the CAN bus API functions. | 0 / 1 | 1 |
| This parameter enables (1) or disables (0) the usage of function | 0 / 1 | 1 |
| This parameter enables (1) or disables (0) the usage of function | 0 / 1 | 1 |
| This parameter enables (1) or disables (0) the usage of function | 0 / 1 | 1 |
| This parameter enables (1) or disables (0) the statistic information collection. | 0 / 1 | 0 |
| The size of the receive queues in CAN frames. | 1 ... 65535 | 2 |
| The size of the transmit queues in CAN frames. | 1 ... 65535 | 2 |
| Enable node status handler hook function. | 0 / 1 | 0 |
| Enable receive handler hook function. | 0 / 1 | 0 |