AGHAF
4.5.1
Annecy electronique Generic Hardware Access Framework
|
Go to the source code of this file.
typedef void * | AGHAF_LIN |
handle on a LIN bus | |
AGHAF_Status | AGHAF_LIN_activate (AGHAF_LIN lin) |
Start the communication with the LIN. More... | |
AGHAF_Status | AGHAF_LIN_configureFrame (AGHAF_LIN lin, uint8_t fid, AGHAF_LIN_FrameKind kind, uint8_t publishFlags, uint8_t dataLen, uint8_t const *initialData) |
Configure the frame associated with the frame identifier. More... | |
AGHAF_Status | AGHAF_LIN_deactivate (AGHAF_LIN lin) |
Stop the communication with the LIN. More... | |
AGHAF_LIN | AGHAF_LIN_get (AGHAF_Device device, uint8_t index) |
Return the LIN bus at the index specified. More... | |
uint8_t | AGHAF_LIN_getCount (AGHAF_Device device) |
Return the number of LINs available on a device. More... | |
uint8_t | AGHAF_LIN_getIndex (AGHAF_LIN lin) |
Return the index from a LIN. More... | |
AGHAF_Status | AGHAF_LIN_getParam (AGHAF_LIN lin, AGHAF_LIN_Param param, uint32_t *value) |
Get a parameter from a LIN. More... | |
AGHAF_Status | AGHAF_LIN_isActivated (AGHAF_LIN lin, AGHAF_BOOL *isActivated) |
Allow to know if the communication on the LIN is started or not. More... | |
typedef void(* | AGHAF_LIN_onBusStateChanged) (uint64_t timestamp, AGHAF_LIN_BusState state, void *userContext) |
callback called when a wake up is received More... | |
typedef void(* | AGHAF_LIN_onError) (uint64_t timestamp, AGHAF_LIN_Error error, void *userContext) |
callback called when an error happens on a bus LIN More... | |
typedef void(* | AGHAF_LIN_onMessageRx) (uint64_t timestamp, uint8_t fid, uint8_t datalen, uint8_t const *data, void *userContext) |
callback function called when a message is received on a LIN bus More... | |
typedef void(* | AGHAF_LIN_onMessageTx) (uint64_t timestamp, uint8_t fid, uint8_t datalen, uint8_t const *data, void *userContext) |
callback function called when a message is transmitted on a LIN bus More... | |
typedef void(* | AGHAF_LIN_onWakeUpSent) (uint64_t timestamp, void *userContext) |
callback called when a wake has been sent More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_addEventTriggered (AGHAF_LIN lin, uint8_t scheduleIndex, uint8_t timeBaseCount, uint8_t eventTriggerId, uint8_t collisionTable) |
Add an event triggered in a schedule. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_addSporadic (AGHAF_LIN lin, uint8_t scheduleIndex, uint8_t timeBaseCount, uint8_t nbSpo, uint8_t *idList) |
Add a sporadic frame in a schedule. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_addUnconditional (AGHAF_LIN lin, uint8_t scheduleIndex, uint8_t fid, uint8_t timeBaseCount) |
Add an unconditionale frame in a schedule. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_addWakeUp (AGHAF_LIN lin, uint8_t scheduleIndex, uint8_t timeBaseCount) |
Add a wake in a schedule. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_clearDatas (AGHAF_LIN lin, uint8_t scheduleIndex) |
Clear the datas associated to a schedule index. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_configure (AGHAF_LIN lin, uint8_t scheduleIndex, AGHAF_LIN_ScheduleKind kind) |
AGHAF_LIN_SCHEDULE_configure. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_getCount (AGHAF_LIN lin, uint8_t *count) |
Number of LIN schedule that can be configured. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_start (AGHAF_LIN lin, uint8_t scheduleIndex) |
Start a schedule. More... | |
AGHAF_Status | AGHAF_LIN_SCHEDULE_stop (AGHAF_LIN lin) |
Stop the schedule currently executed on the LIN. More... | |
AGHAF_Status | AGHAF_LIN_sendHeader (AGHAF_LIN lin, uint8_t fid) |
Write header on the LIN. More... | |
void | AGHAF_LIN_setOnBusStateChangedCallback (AGHAF_LIN lin, AGHAF_LIN_onBusStateChanged callback, void *userContext) |
Set the callback called on a bus state changed event. More... | |
void | AGHAF_LIN_setOnErrorCallback (AGHAF_LIN lin, AGHAF_LIN_onError callback, void *userContext) |
Set the callback called on an error event. More... | |
void | AGHAF_LIN_setOnMessageRxCallback (AGHAF_LIN lin, AGHAF_LIN_onMessageRx callback, void *userContext) |
Set the callback called on rx event. More... | |
void | AGHAF_LIN_setOnMessageTxCallback (AGHAF_LIN lin, AGHAF_LIN_onMessageTx callback, void *userContext) |
Set the callback called on tx event. More... | |
void | AGHAF_LIN_setOnWakeUpSentCallback (AGHAF_LIN lin, AGHAF_LIN_onWakeUpSent callback, void *userContext) |
Set the callback called on a wake up sent event. More... | |
AGHAF_Status | AGHAF_LIN_setParam (AGHAF_LIN lin, AGHAF_LIN_Param param, uint32_t value) |
Set a parameter from a LIN. More... | |
AGHAF_Status | AGHAF_LIN_updateFrame (AGHAF_LIN lin, uint8_t fid, uint8_t dataLen, uint8_t const *data) |
Update the datas associated to a frame identifier. More... | |
AGHAF_Status | AGHAF_LIN_wakeUp (AGHAF_LIN lin) |
Send a wake up request on the bus LIN. More... | |