AGHAF  4.5.5
Annecy electronique Generic Hardware Access Framework
aghaf_can_enums.h
Go to the documentation of this file.
1 
5 #ifndef AGHAF_CAN_ENUMS_H
6 #define AGHAF_CAN_ENUMS_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
14 
18 #define AGHAF_CAN_PERIODIC_NO_RESTART (1 << 0)
20 
24 #define AGHAF_CAN_MSG_XTD (1 << 0)
25 #define AGHAF_CAN_MSG_RTR \
26  (1 << 1)
28 #define AGHAF_CAN_MSG_FDF (1 << 2)
29 #define AGHAF_CAN_MSG_BRS \
30  (1 << 3)
31 #define AGHAF_CAN_MSG_ESI \
32  (1 << 4)
33 #define AGHAF_CAN_MSG_EVENT_DATA \
34  (1 << 5)
37 
39 typedef enum {
44 
46 typedef enum {
49  (1 << 1),
52 
54 typedef enum {
64 
66 typedef enum {
69  1,
71  2,
74 
76 typedef enum {
80 
82 typedef enum {
86 
88 typedef enum {
90  0,
92  1,
94  2,
98 
100 typedef enum {
116 
118 typedef enum {
123 
128 
134 
136 typedef enum {
141 
146 
151 
156 
162 
167 
173 
179 
185 
192 
202 
204 
205 #ifdef __cplusplus
206 }
207 #endif
208 
209 #endif
AGHAF_CAN_FilterMode
enumerator to choose the type of the filter: accept or reject
Definition: aghaf_can_enums.h:82
@ AGHAF_CAN_FILTER_MODE_ACCEPT
Accept mode for a can filter.
Definition: aghaf_can_enums.h:83
@ AGHAF_CAN_FILTER_MODE_REJECT
Reject mode for a can filter.
Definition: aghaf_can_enums.h:84
AGHAF_CAN_GlobalFilterCaps
Global CAN filtering capabilities flags.
Definition: aghaf_can_enums.h:46
@ AGHAF_CAN_GFLTRCAPS_RTR
Remote frames filter.
Definition: aghaf_can_enums.h:50
@ AGHAF_CAN_GFLTRCAPS_NMF
Non-matching frames with filters list filter.
Definition: aghaf_can_enums.h:48
@ AGHAF_CAN_GFLTRCAPS_ID
Identifier format filter.
Definition: aghaf_can_enums.h:47
AGHAF_CAN_RejectType
enumerator to choose the type of exclusion filter
Definition: aghaf_can_enums.h:66
@ AGHAF_CAN_REJECT_NONE
Accept all the frames.
Definition: aghaf_can_enums.h:72
@ AGHAF_CAN_REJECT_ALL
Reject all non matching frames.
Definition: aghaf_can_enums.h:67
@ AGHAF_CAN_REJECT_STD
Reject all non matching frames with a standard can Id.
Definition: aghaf_can_enums.h:68
@ AGHAF_CAN_REJECT_EXT
Reject all non matching frames with an extended can Id.
Definition: aghaf_can_enums.h:70
AGHAF_CAN_Param
List of parameters used to configure a CAN bus.
Definition: aghaf_can_enums.h:136
@ CAN_PARAM_TERMINATION_LS
Definition: aghaf_can_enums.h:191
@ CAN_PARAM_TERMINATION
Definition: aghaf_can_enums.h:184
@ CAN_PARAM_LISTEN_ONLY
Definition: aghaf_can_enums.h:178
@ CAN_PARAM_MODE
Definition: aghaf_can_enums.h:140
@ CAN_PARAM_BAUDRATE_FD
Definition: aghaf_can_enums.h:150
@ CAN_PARAM_NO_EVENT
Definition: aghaf_can_enums.h:200
@ CAN_PARAM_SAMPLEPOINT_FD
Definition: aghaf_can_enums.h:161
@ CAN_PARAM_BAUDRATE
Definition: aghaf_can_enums.h:145
@ CAN_PARAM_SYNCJUMP_WIDTH_FD
Definition: aghaf_can_enums.h:172
@ CAN_PARAM_SAMPLEPOINT
Definition: aghaf_can_enums.h:155
@ CAN_PARAM_SYNCJUMP_WIDTH
Definition: aghaf_can_enums.h:166
AGHAF_CAN_FilterId
enumerator to choose the identifier type for can filter
Definition: aghaf_can_enums.h:76
@ AGHAF_CAN_FILTER_ID_XTD
filter for frames with an extended can Id
Definition: aghaf_can_enums.h:78
@ AGHAF_CAN_FILTER_ID_STD
Filter for frames with standard can Id.
Definition: aghaf_can_enums.h:77
AGHAF_CAN_Mode
Possible modes for CAN.
Definition: aghaf_can_enums.h:118
@ AGHAF_CAN_MODE_LS
Definition: aghaf_can_enums.h:132
@ AGHAF_CAN_MODE_FD
Definition: aghaf_can_enums.h:122
@ AGHAF_CAN_MODE_HS
Definition: aghaf_can_enums.h:127
AGHAF_CAN_FilterCaps
CAN filtering capabilities flags.
Definition: aghaf_can_enums.h:54
@ AGHAF_CAN_FLTRCAPS_TYPE_RANGE
Range filter.
Definition: aghaf_can_enums.h:62
@ AGHAF_CAN_FLTRCAPS_MODE_ACCEPT
Acceptance filter.
Definition: aghaf_can_enums.h:57
@ AGHAF_CAN_FLTRCAPS_MODE_REJECT
Rejection filter.
Definition: aghaf_can_enums.h:58
@ AGHAF_CAN_FLTRCAPS_ID_STD
Standard ident filter.
Definition: aghaf_can_enums.h:55
@ AGHAF_CAN_FLTRCAPS_ID_EXT
Extended ident filter.
Definition: aghaf_can_enums.h:56
@ AGHAF_CAN_FLTRCAPS_TYPE_SINGLE
Single ident filter.
Definition: aghaf_can_enums.h:60
@ AGHAF_CAN_FLTRCAPS_TYPE_DUAL
Dual ident filter.
Definition: aghaf_can_enums.h:61
@ AGHAF_CAN_FLTRCAPS_TYPE_CLASSIC
Classic filter/mask.
Definition: aghaf_can_enums.h:59
AGHAF_CAN_ChipState
Enumeration of the chip states.
Definition: aghaf_can_enums.h:39
@ AGHAF_CAN_CHIP_BUSOFF
Bus off state.
Definition: aghaf_can_enums.h:42
@ AGHAF_CAN_CHIP_PASSIVE
Passive error state.
Definition: aghaf_can_enums.h:41
@ AGHAF_CAN_CHIP_ACTIVE
Active error state.
Definition: aghaf_can_enums.h:40
AGHAF_CAN_Error
Enumerator to describe the error on the bus.
Definition: aghaf_can_enums.h:100
@ AGHAF_CAN_ERROR_NONE
No error.
Definition: aghaf_can_enums.h:101
@ AGHAF_CAN_ERROR_STUFF
Definition: aghaf_can_enums.h:102
@ AGHAF_CAN_ERROR_BIT1
Definition: aghaf_can_enums.h:109
@ AGHAF_CAN_ERROR_FORM
Definition: aghaf_can_enums.h:105
@ AGHAF_CAN_ERROR_ACK
Definition: aghaf_can_enums.h:107
@ AGHAF_CAN_ERROR_CRC
Definition: aghaf_can_enums.h:113
@ AGHAF_CAN_ERROR_BIT0
Definition: aghaf_can_enums.h:111
AGHAF_CAN_FILTER_Type
type of the filter
Definition: aghaf_can_enums.h:88
@ AGHAF_CAN_FILTER_TYPE_CLASSIC
id1 is the identifier and id2 is the mask
Definition: aghaf_can_enums.h:89
@ AGHAF_CAN_FILTER_TYPE_DUAL
id1 is an identifier and id2 is an identifier too
Definition: aghaf_can_enums.h:93
@ AGHAF_CAN_FILTER_TYPE_SINGLE
id1 is the identifier you want to filter. id2 is not used.
Definition: aghaf_can_enums.h:91
@ AGHAF_CAN_FILTER_TYPE_RANGE
Definition: aghaf_can_enums.h:95