AGHAF  4.5.5
Annecy electronique Generic Hardware Access Framework
aghaf_docan_v2.h File Reference
#include <ghap/aghaf_docan_enums.h>
#include "aghaf_can_v2.h"
#include "aghaf_global.h"
Include dependency graph for aghaf_docan_v2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

typedef void(* AGHAF_DoCAN_onMessageRx) (uint64_t timestamp, uint32_t canIdent, uint8_t canFlags, uint32_t dataLen, uint8_t const *data, void *userContext)
 callback function called when a message is received on a DoCAN channel More...
 
typedef void(* AGHAF_DoCAN_onMessageRxError) (uint64_t timestamp, AGHAF_DoCan_Error error, void *userContext)
 callback function called when an error happens on the reception from a DoCAN channel More...
 
typedef void(* AGHAF_DoCAN_onMessageRxFF) (uint64_t timestamp, uint32_t canIdent, uint8_t canFlags, void *userContext)
 callback function called when a first frame is received on a DoCAN channel More...
 
typedef void(* AGHAF_DoCAN_onMessageTx) (uint64_t timestamp, uint32_t canIdent, uint8_t canFlags, uint32_t dataLen, uint8_t const *data, void *userContext)
 callback function called when a message is transmitted on a DoCAN channel More...
 
typedef void(* AGHAF_DoCAN_onMessageTxError) (uint64_t timestamp, AGHAF_DoCan_Error error, void *userContext)
 callback function called when an error happens on the transmission from a DoCAN channel More...
 
typedef void * AGHAF_DoCAN_v2_Channel
 Handle to a DoCAN channel.
 
void AGHAF_DoCAN_v2_Channel_activateTrace (AGHAF_DoCAN_v2_Channel channel, AGHAF_BOOL value)
 Activate the CAN trace. More...
 
AGHAF_Status AGHAF_DoCAN_v2_Channel_getParam (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_ChannelParam param, uint32_t *value)
 Provide the value from a channel parameter. More...
 
AGHAF_Status AGHAF_DoCAN_v2_Channel_send (AGHAF_DoCAN_v2_Channel channel, uint32_t dataLen, uint8_t const *data)
 Send on the DoCAN channel in parameter. More...
 
AGHAF_Status AGHAF_DoCAN_v2_Channel_setParam (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_ChannelParam param, uint32_t value)
 Set the parameter from a channel. More...
 
AGHAF_Status AGHAF_DoCAN_v2_Channel_start (AGHAF_DoCAN_v2_Channel channel)
 Start a channel. More...
 
AGHAF_Status AGHAF_DoCAN_v2_Channel_stop (AGHAF_DoCAN_v2_Channel channel)
 Stop a channel. More...
 
AGHAF_DoCAN_v2_Channel AGHAF_DoCAN_v2_createChannel (AGHAF_CAN bus)
 Create a channel. More...
 
AGHAF_Status AGHAF_DoCAN_v2_getChannelCount (AGHAF_CAN bus, uint8_t *count)
 Provide the number of channels available on the bus. More...
 
AGHAF_Status AGHAF_DoCAN_v2_getFreeChannelCount (AGHAF_CAN bus, uint8_t *count)
 Return the number of free channels still available. More...
 
AGHAF_Status AGHAF_DoCAN_v2_releaseChannel (AGHAF_DoCAN_v2_Channel channel)
 Release the channel. More...
 
void AGHAF_DoCAN_v2_setOnMessageRxCallback (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_onMessageRx callback, void *userContext)
 set the callback called on a reception event More...
 
void AGHAF_DoCAN_v2_setOnMessageRxErrorCallback (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_onMessageRxError callback, void *userContext)
 set the callback called on a reception error event More...
 
void AGHAF_DoCAN_v2_setOnMessageRxFFCallback (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_onMessageRxFF callback, void *userContext)
 set the callback called on the reception from a first frame event More...
 
void AGHAF_DoCAN_v2_setOnMessageTxCallback (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_onMessageTx callback, void *userContext)
 set the callback called on a transmission event More...
 
void AGHAF_DoCAN_v2_setOnMessageTxErrorCallback (AGHAF_DoCAN_v2_Channel channel, AGHAF_DoCAN_onMessageTxError callback, void *userContext)
 set the callback called on a transmission error event More...