STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Can_GeneralTypes.h
Go to the documentation of this file.
1
8#ifndef CAN_GENERAL_TYPES_H__
9#define CAN_GENERAL_TYPES_H__
10
19
27
35/* cppcheck-suppress misra-c2012-2.3 ; the enum name it is neccesary */
36typedef struct _Can_HwType
37{ /* cppcheck-suppress misra-c2012-2.4 ; the enum name it is neccesary */
43
57
63/* cppcheck-suppress misra-c2012-2.3 ; the enum name it is neccesary */
71
77/* cppcheck-suppress misra-c2012-2.3 ; the enum name it is neccesary */
87
94/* cppcheck-suppress misra-c2012-2.3 ; the enum name it is neccesary */
111
126
127#endif /* CAN_GENERAL_TYPES_H__ */
_Can_ControllerStateType
States that are used by the several ControllerMode functions.
Definition Can_GeneralTypes.h:79
@ CAN_CS_UNINIT
Definition Can_GeneralTypes.h:80
@ CAN_CS_WAKEUP
Definition Can_GeneralTypes.h:84
@ CAN_CS_STOPPED
Definition Can_GeneralTypes.h:82
@ CAN_CS_SLEEP
Definition Can_GeneralTypes.h:83
@ CAN_CS_STARTED
Definition Can_GeneralTypes.h:81
@ CAN_CS_READY
Definition Can_GeneralTypes.h:85
_Can_ErrorStateType
Error states of a CAN controller.
Definition Can_GeneralTypes.h:65
@ CAN_ERRORSTATE_PASSIVE
Definition Can_GeneralTypes.h:67
@ CAN_ERRORSTATE_ACTIVE
Definition Can_GeneralTypes.h:66
@ CAN_ERRORSTATE_BUSOFF
Definition Can_GeneralTypes.h:69
enum _Can_ErrorType Can_ErrorType
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report....
struct _Can_TimeStampType Can_TimeStampType
CAN Controller Tiemstamp
struct _Can_PduType Can_PduType
This type unites PduId (swPduHandle), SduLength (length), SduData (sdu), and Can Id (id) for any CAN ...
enum _Can_ControllerStateType Can_ControllerStateType
States that are used by the several ControllerMode functions.
_Can_ErrorType
The enumeration represents a superset of CAN Error Types which typical CAN HW is able to report....
Definition Can_GeneralTypes.h:96
@ CAN_ERROR_CHECK_ACK_FAILED
Definition Can_GeneralTypes.h:101
@ CAN_ERROR_BIT
Definition Can_GeneralTypes.h:99
@ CAN_ERROR_CHECK_CRC_FAILED
Definition Can_GeneralTypes.h:108
@ CAN_ERROR_ACK_DELIMITER
Definition Can_GeneralTypes.h:102
@ CAN_ERROR_CHECK_FORM_FAILED
Definition Can_GeneralTypes.h:106
@ CAN_ERROR_OVERLOAD
Definition Can_GeneralTypes.h:104
@ CAN_ERROR_CHECK_STUFFING_FAILED
Definition Can_GeneralTypes.h:107
@ CAN_ERROR_ARBITRATION_LOST
Definition Can_GeneralTypes.h:103
@ CAN_ERROR_BIT_MONITORING1
Definition Can_GeneralTypes.h:97
@ CAN_ERROR_BIT_MONITORING0
Definition Can_GeneralTypes.h:98
@ CAN_ERROR_BUS_LOCK
Definition Can_GeneralTypes.h:109
uint32 Can_IdType
Represents the Identifier of an L-PDU. The two most significant bits specify the frame type: 00 CAN m...
Definition Can_GeneralTypes.h:18
struct _Can_HwType Can_HwType
This type defines a data structure which clearly provides an Hardware Object Handle including its cor...
enum _Can_ErrorStateType Can_ErrorStateType
Error states of a CAN controller.
uint16 Can_HwHandleType
Represents the hardware object handles of a CAN hardware unit. For CAN hardware units with more than ...
Definition Can_GeneralTypes.h:26
uint8 PduIdType
This type is used within the entire AUTOSAR Com Stack except for bus drivers.
Definition ComStack_Types.h:28
unsigned short uint16
Definition Platform_Types.h:96
unsigned int uint32
Definition Platform_Types.h:98
unsigned char uint8
Definition Platform_Types.h:94
This type defines a data structure which clearly provides an Hardware Object Handle including its cor...
Definition Can_GeneralTypes.h:37
uint8 ControllerId
Definition Can_GeneralTypes.h:40
Can_HwHandleType Hoh
Definition Can_GeneralTypes.h:39
Can_IdType CanId
Definition Can_GeneralTypes.h:38
This type unites PduId (swPduHandle), SduLength (length), SduData (sdu), and Can Id (id) for any CAN ...
Definition Can_GeneralTypes.h:51
PduIdType swPduHandle
Definition Can_GeneralTypes.h:52
Can_IdType id
Definition Can_GeneralTypes.h:54
uint8 * sdu
Definition Can_GeneralTypes.h:55
uint8 length
Definition Can_GeneralTypes.h:53
CAN Controller Tiemstamp
Definition Can_GeneralTypes.h:122
uint32 seconds
Definition Can_GeneralTypes.h:124
uint32 nanoseconds
Definition Can_GeneralTypes.h:123