ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

Data Structures | Defines | Typedefs | Functions

can_lld.h File Reference

CAN Driver subsystem low level driver header template. More...

Go to the source code of this file.

Data Structures

struct  CANTxFrame
 CAN transmission frame. More...
struct  CANRxFrame
 CAN received frame. More...
struct  CANFilter
 CAN filter. More...
struct  CANConfig
 Driver configuration structure. More...
struct  CANDriver
 Structure representing an CAN driver. More...

Defines

#define CAN_SUPPORTS_SLEEP   TRUE
 This switch defines whether the driver implementation supports a low power switch mode with automatic an wakeup feature.
#define CAN_USE_SLEEP_MODE   TRUE
 Sleep mode related APIs inclusion switch.

Typedefs

typedef uint32_t canstatus_t
 CAN status flags.

Functions

void can_lld_init (void)
 Low level CAN driver initialization.
void can_lld_start (CANDriver *canp)
 Configures and activates the CAN peripheral.
void can_lld_stop (CANDriver *canp)
 Deactivates the CAN peripheral.
bool_t can_lld_can_transmit (CANDriver *canp)
 Determines whether a frame can be transmitted.
void can_lld_transmit (CANDriver *canp, const CANTxFrame *ctfp)
 Inserts a frame into the transmit queue.
bool_t can_lld_can_receive (CANDriver *canp)
 Determines whether a frame has been received.
void can_lld_receive (CANDriver *canp, CANRxFrame *crfp)
 Receives a frame from the input queue.

Detailed Description

CAN Driver subsystem low level driver header template.

Definition in file templates/can_lld.h.


Generated on Sun Oct 24 2010 09:40:38 for ChibiOS/RT by doxygen 1.7.1