STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
|
Can Driver More...
#include "Can_Types.h"
Go to the source code of this file.
Data Structures | |
struct | _CanIf_CtrlCfgType |
CanIf controller type. More... | |
struct | _CanIf_ConfigType |
Configuration structure for the CAN interface. More... | |
Typedefs | |
typedef enum _CanIf_PduModeType | CanIf_PduModeType |
Pdu mode type. | |
typedef enum _CanIf_NotifStatusType | CanIf_NotifStatusType |
Notification status type. | |
typedef struct _CanIf_CtrlCfgType | CanIf_CtrlCfgType |
CanIf controller type. | |
typedef struct _CanIf_ConfigType | CanIf_ConfigType |
Configuration structure for the CAN interface. | |
Enumerations | |
enum | _CanIf_PduModeType { CANIF_OFFLINE = 0x00 , CANIF_TX_OFFLINE = 0x01 , CANIF_TX_OFFLINE_ACTIVE = 0x02 , CANIF_ONLINE = 0x03 } |
Pdu mode type. More... | |
enum | _CanIf_NotifStatusType { CANIF_NO_NOTIFICATION = 0x00 , CANIF_TX_RX_NOTIFICATION = 0x01 } |
Notification status type. More... | |
Can Driver
The header contains the type definitions that are used by the Can module. The file is implemnted as a means of abstraction from the hardware, this way we can avoid to include Arch headers in the actual driver header, making the low level interfaces available for upper layers.
typedef struct _CanIf_ConfigType CanIf_ConfigType |
Configuration structure for the CAN interface.
This type defines a data structure for the post build parameters of the CAN interface for all underlying CAN drivers. At initialization the CanIf gets a pointer to a structure of this type to get access to its configuration data, which is necessary for initialization.
typedef struct _CanIf_CtrlCfgType CanIf_CtrlCfgType |
CanIf controller type.
This container contains the configuration (parameters) of an adressed CAN controller by an underlying CAN Driver module. This container is configurable per CAN controller
typedef enum _CanIf_NotifStatusType CanIf_NotifStatusType |
typedef enum _CanIf_PduModeType CanIf_PduModeType |
Pdu mode type.
The PduMode of a channel defines its transmit or receive activity. Communication direction (transmission and/or reception) of the channel can be controlled separately or together by upper layers.
Notification status type.
Return value of CAN L-PDU notification status.
Enumerator | |
---|---|
CANIF_NO_NOTIFICATION | No transmit or receive event occurred for the requested L-PDU |
CANIF_TX_RX_NOTIFICATION | The requested Rx/Tx CAN L-PDU was successfully transmitted or received. |
enum _CanIf_PduModeType |
Pdu mode type.
The PduMode of a channel defines its transmit or receive activity. Communication direction (transmission and/or reception) of the channel can be controlled separately or together by upper layers.