ChibiOS/RT Architecture - Reference Manual - Guides |
CAN Driver macros and structures. More...
#include "can_lld.h"
Go to the source code of this file.
Defines | |
#define | CAN_LIMIT_WARNING 1 |
Errors rate warning. | |
#define | CAN_LIMIT_ERROR 2 |
Errors rate error. | |
#define | CAN_BUS_OFF_ERROR 4 |
Bus off condition reached. | |
#define | CAN_FRAMING_ERROR 8 |
Framing error of some kind on the CAN bus. | |
#define | CAN_OVERFLOW_ERROR 16 |
Overflow in receive queue. | |
#define | CAN_USE_SLEEP_MODE TRUE |
Sleep mode related APIs inclusion switch. | |
#define | canAddFlagsI(canp, mask) ((canp)->cd_status |= (mask)) |
Adds some flags to the CAN status mask. | |
Enumerations | |
enum | canstate_t { CAN_UNINIT = 0, CAN_STOP = 1, CAN_STARTING = 2, CAN_READY = 3, CAN_SLEEP = 4 } |
Driver state machine possible states. More... | |
Functions | |
void | canInit (void) |
CAN Driver initialization. | |
void | canObjectInit (CANDriver *canp) |
Initializes the standard part of a CANDriver structure. | |
void | canStart (CANDriver *canp, const CANConfig *config) |
Configures and activates the CAN peripheral. | |
void | canStop (CANDriver *canp) |
Deactivates the CAN peripheral. | |
msg_t | canTransmit (CANDriver *canp, const CANTxFrame *ctfp, systime_t timeout) |
Can frame transmission. | |
msg_t | canReceive (CANDriver *canp, CANRxFrame *crfp, systime_t timeout) |
Can frame receive. | |
canstatus_t | canGetAndClearFlags (CANDriver *canp) |
Returns the current status mask and clears it. |
CAN Driver macros and structures.
Definition in file can.h.