STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
|
Can Stack types More...
Go to the source code of this file.
Data Structures | |
struct | _Can_HwType |
This type defines a data structure which clearly provides an Hardware Object Handle including its corresponding CAN Controller and therefore CanDrv as well as the specific CanId. More... | |
struct | _Can_PduType |
This type unites PduId (swPduHandle), SduLength (length), SduData (sdu), and Can Id (id) for any CAN L-SDU. More... | |
struct | _Can_TimeStampType |
CAN Controller Tiemstamp More... | |
Typedefs | |
typedef uint32 | Can_IdType |
Represents the Identifier of an L-PDU. The two most significant bits specify the frame type: 00 CAN message with Standard CAN ID 01 CAN FD frame with Standard CAN ID 10 CAN message with Extended CAN ID 11 CAN FD frame with Extended CAN ID. | |
typedef uint16 | Can_HwHandleType |
Represents the hardware object handles of a CAN hardware unit. For CAN hardware units with more than 255 HW objects use extended range. | |
typedef struct _Can_HwType | Can_HwType |
This type defines a data structure which clearly provides an Hardware Object Handle including its corresponding CAN Controller and therefore CanDrv as well as the specific CanId. | |
typedef struct _Can_PduType | Can_PduType |
This type unites PduId (swPduHandle), SduLength (length), SduData (sdu), and Can Id (id) for any CAN L-SDU. | |
typedef enum _Can_ErrorStateType | Can_ErrorStateType |
Error states of a CAN controller. | |
typedef enum _Can_ControllerStateType | Can_ControllerStateType |
States that are used by the several ControllerMode functions. | |
typedef enum _Can_ErrorType | Can_ErrorType |
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report. That means not all CAN HW will be able to support the complete set. | |
typedef struct _Can_TimeStampType | Can_TimeStampType |
CAN Controller Tiemstamp | |
Enumerations | |
enum | _Can_ErrorStateType { CAN_ERRORSTATE_ACTIVE = 0x01 , CAN_ERRORSTATE_PASSIVE , CAN_ERRORSTATE_BUSOFF } |
Error states of a CAN controller. More... | |
enum | _Can_ControllerStateType { CAN_CS_UNINIT = 0x01 , CAN_CS_STARTED , CAN_CS_STOPPED , CAN_CS_SLEEP , CAN_CS_WAKEUP , CAN_CS_READY } |
States that are used by the several ControllerMode functions. More... | |
enum | _Can_ErrorType { CAN_ERROR_BIT_MONITORING1 = 0x01 , CAN_ERROR_BIT_MONITORING0 , CAN_ERROR_BIT , CAN_ERROR_CHECK_ACK_FAILED , CAN_ERROR_ACK_DELIMITER , CAN_ERROR_ARBITRATION_LOST , CAN_ERROR_OVERLOAD , CAN_ERROR_CHECK_FORM_FAILED , CAN_ERROR_CHECK_STUFFING_FAILED , CAN_ERROR_CHECK_CRC_FAILED , CAN_ERROR_BUS_LOCK } |
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report. That means not all CAN HW will be able to support the complete set. More... | |
Can Stack types
This is the implementation of the Can Stack types
typedef enum _Can_ControllerStateType Can_ControllerStateType |
States that are used by the several ControllerMode functions.
typedef enum _Can_ErrorStateType Can_ErrorStateType |
Error states of a CAN controller.
typedef enum _Can_ErrorType Can_ErrorType |
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report. That means not all CAN HW will be able to support the complete set.
typedef uint16 Can_HwHandleType |
Represents the hardware object handles of a CAN hardware unit. For CAN hardware units with more than 255 HW objects use extended range.
typedef struct _Can_HwType Can_HwType |
This type defines a data structure which clearly provides an Hardware Object Handle including its corresponding CAN Controller and therefore CanDrv as well as the specific CanId.
typedef uint32 Can_IdType |
Represents the Identifier of an L-PDU. The two most significant bits specify the frame type: 00 CAN message with Standard CAN ID 01 CAN FD frame with Standard CAN ID 10 CAN message with Extended CAN ID 11 CAN FD frame with Extended CAN ID.
typedef struct _Can_PduType Can_PduType |
This type unites PduId (swPduHandle), SduLength (length), SduData (sdu), and Can Id (id) for any CAN L-SDU.
typedef struct _Can_TimeStampType Can_TimeStampType |
CAN Controller Tiemstamp
Variables of this type are used to express time stamps based on relative time. Value range: * Seconds: 0 .. 4.294.967.295 s (circa 136 years) * Nanoseconds: 0 .. 999.999.999 ns
States that are used by the several ControllerMode functions.
enum _Can_ErrorStateType |
Error states of a CAN controller.
enum _Can_ErrorType |
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report. That means not all CAN HW will be able to support the complete set.