AGHAF  4.5.5
Annecy electronique Generic Hardware Access Framework
aghaf_can.h
Go to the documentation of this file.
1 // Copyright (c) 2019 by ANNECY ELECTRONIQUE, Chavanod, France
2 
6 
7 #ifndef EXXOTEST_AGHAF_CAN_H
8 #define EXXOTEST_AGHAF_CAN_H
9 
10 #include "aghaf_can_common.h"
11 #include "aghaf_global.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
19 
21 typedef enum {
25 
27 typedef enum {
30  1
33 
35 typedef enum {
41 
43 typedef enum {
49  4,
52 
54 typedef void *AGHAF_CAN_Bus;
55 
57 typedef void *AGHAF_CAN_Frame;
58 
60 typedef void *AGHAF_CAN_Event;
61 
63 typedef void const *AGHAF_CAN_Event_busInfo;
64 
74 typedef void (*AGHAF_CAN_Callback)(AGHAF_CAN_Event event, void *userContext);
75 
76 /* Structures */
77 #pragma pack(push, 1)
78 
80 typedef struct AGHAF_CAN_Identifier {
82  union {
83  uint16_t std : 11;
84  uint32_t xtd : 29;
85  } id;
87 
88 #pragma pack(pop)
89 
90 /* Accessing bus */
91 AGHAF_PUBLIC_FUNCTION(AGHAF_CAN_Bus, AGHAF_CAN_getBus,
92  (AGHAF_Device device, uint8_t index));
93 AGHAF_PUBLIC_FUNCTION(uint8_t, AGHAF_CAN_getBusIndex, (AGHAF_CAN_Bus bus));
94 AGHAF_PUBLIC_FUNCTION(uint8_t, AGHAF_CAN_getBusCount, (AGHAF_Device device));
95 
96 /* Event handling */
97 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_registerCallback,
98  (AGHAF_CAN_Bus bus, AGHAF_CAN_Callback callback,
99  void *userContext));
100 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_deregisterCallback,
101  (AGHAF_CAN_Bus bus, AGHAF_CAN_Callback callback));
102 
103 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_getParam,
104  (AGHAF_CAN_Bus bus, AGHAF_CAN_Param param,
105  uint32_t *value));
106 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_setParam,
107  (AGHAF_CAN_Bus bus, AGHAF_CAN_Param param,
108  uint32_t value));
109 
110 /* Functions for bus configuration */
111 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_supportedModes,
112  (AGHAF_CAN_Bus bus, AGHAF_CAN_Mode **modes,
113  uint8_t *nbModes));
114 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_Bus_freeSupportedModes,
115  (AGHAF_CAN_Mode * modes));
116 
117 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_state,
118  (AGHAF_CAN_Bus bus, AGHAF_CAN_BusState *canBusState));
119 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_BusOn, (AGHAF_CAN_Bus bus));
120 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_activate,
121  (AGHAF_CAN_Bus bus));
122 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_deactivate,
123  (AGHAF_CAN_Bus bus));
124 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_isActivated,
125  (AGHAF_CAN_Bus bus, AGHAF_BOOL *isActivated));
126 
128  (AGHAF_CAN_Bus bus, uint32_t **terminations,
129  uint32_t *nbTerminations));
131  (AGHAF_CAN_Bus bus, uint32_t **terminations,
132  uint32_t *nbTerminations));
133 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_Bus_freeSupportedTerminations,
134  (uint32_t * terminations));
135 
136 /* Functions for perdiodic frames */
137 AGHAF_PUBLIC_FUNCTION(uint8_t, AGHAF_CAN_Bus_getPeriodicCount,
138  (AGHAF_CAN_Bus bus));
139 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_sendPeriodic,
140  (AGHAF_CAN_Bus bus, AGHAF_CAN_Frame frame, uint8_t index,
141  uint8_t flags, uint32_t period));
142 
143 /* Functions for filters */
144 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_addFilter,
145  (AGHAF_CAN_Bus bus, AGHAF_CAN_FilterId idType,
147  uint32_t id1, uint32_t id2));
148 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_clearFilters,
149  (AGHAF_CAN_Bus bus));
150 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_filtersCount,
151  (AGHAF_CAN_Bus bus, AGHAF_CAN_FilterId idType,
152  uint16_t *count));
153 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_supportedFilters,
154  (AGHAF_CAN_Bus bus, uint16_t *globalFilterCaps,
155  AGHAF_CAN_FilterDesc **values, uint16_t *size));
156 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_Bus_freeSupportedFilters,
157  (AGHAF_CAN_FilterDesc * values));
158 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Bus_reject,
159  (AGHAF_CAN_Bus bus, AGHAF_CAN_RejectType rejectType,
160  AGHAF_BOOL rtr));
161 
162 /* Functions for CAN frames */
163 AGHAF_PUBLIC_FUNCTION(AGHAF_CAN_Frame, AGHAF_CAN_Frame_new, (void));
164 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_Frame_delete, (AGHAF_CAN_Frame frame));
165 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Frame_setId,
166  (AGHAF_CAN_Frame frame,
167  AGHAF_CAN_Identifier *identifier));
168 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Frame_id,
169  (AGHAF_CAN_Frame frame,
170  AGHAF_CAN_Identifier *identifier));
171 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Frame_setFrameType,
172  (AGHAF_CAN_Frame frame, AGHAF_CAN_FrameType type));
173 AGHAF_PUBLIC_FUNCTION(AGHAF_CAN_FrameType, AGHAF_CAN_Frame_frameType,
174  (AGHAF_CAN_Frame frame));
175 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Frame_setFDF,
176  (AGHAF_CAN_Frame frame, AGHAF_BOOL fdf, AGHAF_BOOL esi,
177  AGHAF_BOOL brs));
178 AGHAF_PUBLIC_FUNCTION(AGHAF_BOOL, AGHAF_CAN_Frame_fdf, (AGHAF_CAN_Frame frame));
179 AGHAF_PUBLIC_FUNCTION(AGHAF_BOOL, AGHAF_CAN_Frame_esi, (AGHAF_CAN_Frame frame));
180 AGHAF_PUBLIC_FUNCTION(AGHAF_BOOL, AGHAF_CAN_Frame_brs, (AGHAF_CAN_Frame frame));
181 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Frame_setData,
182  (AGHAF_CAN_Frame frame, const void *data, int64_t size));
183 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_Frame_data,
184  (AGHAF_CAN_Frame frame, void *data, int64_t size));
185 AGHAF_PUBLIC_FUNCTION(int64_t, AGHAF_CAN_Frame_dataSize,
186  (AGHAF_CAN_Frame frame));
187 
188 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_sendFrame,
189  (AGHAF_CAN_Bus bus, AGHAF_CAN_Frame frame));
190 AGHAF_PUBLIC_FUNCTION(AGHAF_Status, AGHAF_CAN_sendMessage,
191  (AGHAF_CAN_Bus bus, uint32_t ident, uint8_t flags,
192  uint16_t dataLen, uint8_t const *data));
193 
194 /* Event functions */
195 AGHAF_PUBLIC_FUNCTION(AGHAF_CAN_Frame, AGHAF_CAN_Event_frame,
196  (AGHAF_CAN_Event event));
197 AGHAF_PUBLIC_FUNCTION(AGHAF_CAN_EventType, AGHAF_CAN_typeEvent,
198  (AGHAF_EventInfo event));
200  (AGHAF_CAN_Event event));
201 AGHAF_PUBLIC_FUNCTION(uint8_t, AGHAF_CAN_getEventBusIndex,
202  (AGHAF_CAN_Event event));
203 AGHAF_PUBLIC_FUNCTION(uint32_t, AGHAF_CAN_Event_chipState,
204  (AGHAF_CAN_Event_busInfo busState));
205 AGHAF_PUBLIC_FUNCTION(uint32_t, AGHAF_CAN_Event_busLoad,
206  (AGHAF_CAN_Event_busInfo busState));
207 AGHAF_PUBLIC_FUNCTION(uint32_t, AGHAF_CAN_Event_busError,
208  (AGHAF_CAN_Event_busInfo busState));
209 
210 /* asynchronous API */
220  uint32_t id,
221  void *userContext);
222 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_asyncSendFrame_registerCallback,
223  (AGHAF_CAN_Bus bus,
225  void *userContext));
226 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_asyncSendFrame_deregisterCallback,
227  (AGHAF_CAN_Bus bus,
229 AGHAF_PUBLIC_FUNCTION(void, AGHAF_CAN_asyncSendFrame,
230  (AGHAF_CAN_Bus bus, AGHAF_CAN_Frame frame, uint32_t *id));
231 
233 
234 #ifdef __cplusplus
235 }
236 #endif
237 
238 #endif
@ AGHAF_CAN_BUS_PASSIVE
Passive error state.
Definition: aghaf_can.h:38
@ AGHAF_CAN_BUS_BUSOFF
Bus off state.
Definition: aghaf_can.h:39
@ AGHAF_CAN_BUS_ACTIVE
active error state
Definition: aghaf_can.h:37
@ AGHAF_CAN_BUS_UNKNOW
Invalide mode.
Definition: aghaf_can.h:36
@ AGHAF_CAN_EVENT_BUSCHANGE
Chip state has chaged active or passive error ou bus off.
Definition: aghaf_can.h:48
@ AGHAF_CAN_EVENT_ERROR
Bus error.
Definition: aghaf_can.h:47
@ AGHAF_CAN_EVENT_MSGRX
Message has been received.
Definition: aghaf_can.h:46
@ AGHAF_CAN_EVENT_BUSLOAD
Bus load information.
Definition: aghaf_can.h:50
@ AGHAF_CAN_EVENT_MSGTX
End of transmission.
Definition: aghaf_can.h:45
@ AGHAF_CAN_EVENT_UNKNOW
Unknown type of event.
Definition: aghaf_can.h:44
@ AGHAF_CAN_RemoteFrame
Definition: aghaf_can.h:29
@ AGHAF_CAN_DataFrame
standard frame of data
Definition: aghaf_can.h:28
AGHAF_CAN_FilterMode
enumerator to choose the type of the filter: accept or reject
Definition: aghaf_can_enums.h:82
AGHAF_CAN_RejectType
enumerator to choose the type of exclusion filter
Definition: aghaf_can_enums.h:66
AGHAF_CAN_Param
List of parameters used to configure a CAN bus.
Definition: aghaf_can_enums.h:136
AGHAF_CAN_FilterId
enumerator to choose the identifier type for can filter
Definition: aghaf_can_enums.h:76
AGHAF_CAN_Mode
Possible modes for CAN.
Definition: aghaf_can_enums.h:118
AGHAF_CAN_FILTER_Type
type of the filter
Definition: aghaf_can_enums.h:88
AGHAF_CAN_Frame AGHAF_CAN_Frame_new(void)
Return a handle on a CAN frame.
Definition: aghaf_can.cpp:354
AGHAF_BOOL AGHAF_CAN_Frame_esi(AGHAF_CAN_Frame frame)
AGHAF_CAN_Frame_esi.
Definition: aghaf_can.cpp:445
AGHAF_Status AGHAF_CAN_Bus_deactivate(AGHAF_CAN_Bus bus)
deactivate a CAN bus
Definition: aghaf_can.cpp:175
AGHAF_Status AGHAF_CAN_Bus_isActivated(AGHAF_CAN_Bus bus, AGHAF_BOOL *isActivated)
Request if a CAN bus is yet activated or not.
Definition: aghaf_can.cpp:186
void AGHAF_CAN_deregisterCallback(AGHAF_CAN_Bus bus, AGHAF_CAN_Callback callback)
deregister a callback
Definition: aghaf_can.cpp:57
AGHAF_Status AGHAF_CAN_Bus_reject(AGHAF_CAN_Bus bus, AGHAF_CAN_RejectType rejectType, AGHAF_BOOL rtr)
Set a global filter.
Definition: aghaf_can.cpp:342
void * AGHAF_CAN_Bus
handle to a CAN bus
Definition: aghaf_can.h:54
AGHAF_CAN_FrameType AGHAF_CAN_Frame_frameType(AGHAF_CAN_Frame frame)
Get the type from the frame.
Definition: aghaf_can.cpp:410
AGHAF_CAN_Bus AGHAF_CAN_getBus(AGHAF_Device device, uint8_t index)
return the CAN bus at index in parameter
Definition: aghaf_can.cpp:15
AGHAF_Status AGHAF_CAN_Bus_addFilter(AGHAF_CAN_Bus bus, AGHAF_CAN_FilterId idType, AGHAF_CAN_FILTER_Type type, AGHAF_CAN_FilterMode mode, uint32_t id1, uint32_t id2)
add a filter to the CAN bus
Definition: aghaf_can.cpp:275
AGHAF_Status AGHAF_CAN_Frame_data(AGHAF_CAN_Frame frame, void *data, int64_t size)
Provide the data contained in a frame.
Definition: aghaf_can.cpp:485
AGHAF_CAN_IdentifierType
enumerator to choose the type of CAN identifier
Definition: aghaf_can.h:21
AGHAF_Status AGHAF_CAN_Bus_supportedTerminationsLs(AGHAF_CAN_Bus bus, uint32_t **terminations, uint32_t *nbTerminations)
Request the supported low speed terminations from a CAN bus.
Definition: aghaf_can.cpp:220
AGHAF_Status AGHAF_CAN_Bus_state(AGHAF_CAN_Bus bus, AGHAF_CAN_BusState *canBusState)
AGHAF_CAN_Bus_state.
Definition: aghaf_can.cpp:144
struct AGHAF_CAN_Identifier AGHAF_CAN_Identifier
structure to represent an indentifier CAN in the AGHAF library
uint8_t AGHAF_CAN_getBusIndex(AGHAF_CAN_Bus bus)
return the index from a CAN bus
Definition: aghaf_can.cpp:25
void AGHAF_CAN_Bus_freeSupportedTerminations(uint32_t *terminations)
Free the memory allocated with AGHAF_CAN_Bus_supportedTerminations or AGHAF_CAN_Bus_supportedTerminat...
Definition: aghaf_can.cpp:232
AGHAF_Status AGHAF_CAN_Bus_supportedFilters(AGHAF_CAN_Bus bus, uint16_t *globalFilterCaps, AGHAF_CAN_FilterDesc **values, uint16_t *size)
Provide the supported filters from a CAN bus.
Definition: aghaf_can.cpp:319
AGHAF_CAN_BusState
enumerator for the state of the bus
Definition: aghaf_can.h:35
AGHAF_CAN_EventType
enumerator to tell the type of the event
Definition: aghaf_can.h:43
AGHAF_Status AGHAF_CAN_Bus_sendPeriodic(AGHAF_CAN_Bus bus, AGHAF_CAN_Frame frame, uint8_t index, uint8_t flags, uint32_t period)
Add a periodic message to send.
Definition: aghaf_can.cpp:256
void AGHAF_CAN_asyncSendFrame(AGHAF_CAN_Bus bus, AGHAF_CAN_Frame frame, uint32_t *id)
AGHAF_CAN_asyncSendFrame.
Definition: aghaf_can.cpp:542
AGHAF_CAN_Frame AGHAF_CAN_Event_frame(AGHAF_CAN_Event event)
return the frame contained in an event
Definition: aghaf_can.cpp:553
void AGHAF_CAN_registerCallback(AGHAF_CAN_Bus bus, AGHAF_CAN_Callback callback, void *userContext)
Register a callback for the CAN events from a bus.
Definition: aghaf_can.cpp:46
AGHAF_BOOL AGHAF_CAN_Frame_fdf(AGHAF_CAN_Frame frame)
AGHAF_CAN_Frame_fdf.
Definition: aghaf_can.cpp:435
AGHAF_Status AGHAF_CAN_sendFrame(AGHAF_CAN_Bus bus, AGHAF_CAN_Frame frame)
send a frame on a CAN bus
Definition: aghaf_can.cpp:514
void const * AGHAF_CAN_Event_busInfo
Handle to a CAN event bus info.
Definition: aghaf_can.h:63
AGHAF_Status AGHAF_CAN_Frame_setId(AGHAF_CAN_Frame frame, AGHAF_CAN_Identifier *identifier)
Set the identifier from a CAN frame.
Definition: aghaf_can.cpp:371
AGHAF_Status AGHAF_CAN_Frame_setData(AGHAF_CAN_Frame frame, const void *data, int64_t size)
Set the data from a frame.
Definition: aghaf_can.cpp:468
uint8_t AGHAF_CAN_getBusCount(AGHAF_Device device)
return the number of CAN bus from a device
Definition: aghaf_can.cpp:35
uint8_t AGHAF_CAN_Bus_getPeriodicCount(AGHAF_CAN_Bus bus)
Return the number of periodic message available on a CAN bus.
Definition: aghaf_can.cpp:241
AGHAF_Status AGHAF_CAN_Frame_id(AGHAF_CAN_Frame frame, AGHAF_CAN_Identifier *identifier)
Get the identifier from a CAN frame.
Definition: aghaf_can.cpp:384
AGHAF_Status AGHAF_CAN_Bus_BusOn(AGHAF_CAN_Bus bus)
reactivate the bus after an error
Definition: aghaf_can.cpp:155
AGHAF_Status AGHAF_CAN_sendMessage(AGHAF_CAN_Bus bus, uint32_t ident, uint8_t flags, uint16_t dataLen, uint8_t const *data)
send data on a CAN bus
Definition: aghaf_can.cpp:528
AGHAF_Status AGHAF_CAN_Bus_clearFilters(AGHAF_CAN_Bus bus)
clear the filters from a bus
Definition: aghaf_can.cpp:289
void(* AGHAF_CAN_Callback)(AGHAF_CAN_Event event, void *userContext)
Callback function type to recieve CAN events.
Definition: aghaf_can.h:74
uint8_t AGHAF_CAN_getEventBusIndex(AGHAF_CAN_Event event)
return the index from the bus on which occured the event
Definition: aghaf_can.cpp:582
void AGHAF_CAN_Bus_freeSupportedModes(AGHAF_CAN_Mode *modes)
Free the memory allocated with AGHAF_CAN_Bus_supportedModes.
Definition: aghaf_can.cpp:133
void AGHAF_CAN_Frame_delete(AGHAF_CAN_Frame frame)
Free the memory from a CAN frame.
Definition: aghaf_can.cpp:360
uint32_t AGHAF_CAN_Event_busLoad(AGHAF_CAN_Event_busInfo busState)
return the bus load
Definition: aghaf_can.cpp:602
AGHAF_Status AGHAF_CAN_Bus_supportedModes(AGHAF_CAN_Bus bus, AGHAF_CAN_Mode **modes, uint8_t *nbModes)
Request the supported modes from the CAN bus in parameter.
Definition: aghaf_can.cpp:122
AGHAF_Status AGHAF_CAN_Frame_setFrameType(AGHAF_CAN_Frame frame, AGHAF_CAN_FrameType type)
Set the type from the frame.
Definition: aghaf_can.cpp:398
AGHAF_CAN_FrameType
type of frame
Definition: aghaf_can.h:27
int64_t AGHAF_CAN_Frame_dataSize(AGHAF_CAN_Frame frame)
return the size from the data
Definition: aghaf_can.cpp:503
AGHAF_Status AGHAF_CAN_Bus_supportedTerminations(AGHAF_CAN_Bus bus, uint32_t **terminations, uint32_t *nbTerminations)
Request the supported terminations from a CAN bus.
Definition: aghaf_can.cpp:204
AGHAF_CAN_Event_busInfo AGHAF_CAN_getEventBusInfo(AGHAF_CAN_Event event)
return the bus informations from an event
Definition: aghaf_can.cpp:572
AGHAF_Status AGHAF_CAN_Bus_filtersCount(AGHAF_CAN_Bus bus, AGHAF_CAN_FilterId idType, uint16_t *count)
Provide the current number of filters.
Definition: aghaf_can.cpp:301
void AGHAF_CAN_asyncSendFrame_deregisterCallback(AGHAF_CAN_Bus bus, AGHAF_CAN_asyncSendFrame_Callback callback)
AGHAF_CAN_asyncSendFrame_deregisterCallback.
Definition: aghaf_can.cpp:81
AGHAF_Status AGHAF_CAN_Bus_getParam(AGHAF_CAN_Bus bus, AGHAF_CAN_Param param, uint32_t *value)
Provide the value from a CAN parameter.
Definition: aghaf_can.cpp:94
uint32_t AGHAF_CAN_Event_chipState(AGHAF_CAN_Event_busInfo busState)
return the chipstate
Definition: aghaf_can.cpp:592
AGHAF_Status AGHAF_CAN_Frame_setFDF(AGHAF_CAN_Frame frame, AGHAF_BOOL fdf, AGHAF_BOOL esi, AGHAF_BOOL brs)
AGHAF_CAN_Frame_setFDF.
Definition: aghaf_can.cpp:423
void * AGHAF_CAN_Event
Handle to a CAN event.
Definition: aghaf_can.h:60
AGHAF_Status AGHAF_CAN_Bus_setParam(AGHAF_CAN_Bus bus, AGHAF_CAN_Param param, uint32_t value)
Set the value from a CAN parameter.
Definition: aghaf_can.cpp:107
uint32_t AGHAF_CAN_Event_busError(AGHAF_CAN_Event_busInfo busState)
return the value from the error
Definition: aghaf_can.cpp:612
AGHAF_CAN_EventType AGHAF_CAN_typeEvent(AGHAF_EventInfo event)
return the type from the event
Definition: aghaf_can.cpp:563
void(* AGHAF_CAN_asyncSendFrame_Callback)(AGHAF_Status status, uint32_t id, void *userContext)
Callback function type to recieve CAN events.
Definition: aghaf_can.h:219
AGHAF_BOOL AGHAF_CAN_Frame_brs(AGHAF_CAN_Frame frame)
AGHAF_CAN_Frame_brs.
Definition: aghaf_can.cpp:456
void AGHAF_CAN_Bus_freeSupportedFilters(AGHAF_CAN_FilterDesc *values)
Free the memory allocated with AGHAF_CAN_Bus_supportedFilters.
Definition: aghaf_can.cpp:331
void AGHAF_CAN_asyncSendFrame_registerCallback(AGHAF_CAN_Bus bus, AGHAF_CAN_asyncSendFrame_Callback callback, void *userContext)
AGHAF_CAN_asyncSendFrame_registerCallback.
Definition: aghaf_can.cpp:69
AGHAF_Status AGHAF_CAN_Bus_activate(AGHAF_CAN_Bus bus)
activate a CAN bus
Definition: aghaf_can.cpp:165
void * AGHAF_CAN_Frame
Handle to a CAN frame.
Definition: aghaf_can.h:57
@ AGHAF_CAN_IdStd
Standard 11 bit identifier.
Definition: aghaf_can.h:22
@ AGHAF_CAN_IdXtd
Extended 29 bit identifier.
Definition: aghaf_can.h:23
AGHAF_Status
enumerator to define the error type in aghaf functions
Definition: aghaf_global.h:120
AGHAF_BOOL
enumerator to get a bool definition
Definition: aghaf_global.h:114
void * AGHAF_Device
handle on an exxotest device
Definition: aghaf_global.h:175
structure to represent an indentifier CAN in the AGHAF library
Definition: aghaf_can.h:80
union AGHAF_CAN_Identifier::@0 id
Identifier.
uint16_t std
Standard identifier.
Definition: aghaf_can.h:83
AGHAF_CAN_IdentifierType type
Identifier type.
Definition: aghaf_can.h:81
uint32_t xtd
Extended identifier.
Definition: aghaf_can.h:84
generic stucture to read an event in a callback
Definition: aghaf_global.h:229