AGHAF
4.5.5
Annecy electronique Generic Hardware Access Framework
|
API to use DoKLine on exxotest devices. More...
typedef void * | AGHAF_DoKLine_Channel |
handle on a DoKLine channel | |
typedef void(* | AGHAF_DoKLine_onMsgTx) (uint64_t timestamp, uint8_t flags, uint32_t headerSize, uint8_t const *header, uint32_t footerSize, uint8_t const *footer, uint32_t dataLen, uint8_t const *data, void *userContext) |
callback called when a frame is transmitted on a DoKLine channel More... | |
typedef void(* | AGHAF_DoKLine_onMsgRx) (uint64_t timestamp, uint8_t flags, uint32_t headerSize, uint8_t const *header, uint32_t footerSize, uint8_t const *footer, uint32_t dataLen, uint8_t const *data, void *userContext) |
callback called when a frame is received on a DoKLine channel More... | |
typedef void(* | AGHAF_DoKLine_onMsgTxErr) (uint64_t timestamp, AGHAF_DoKLine_Error error, void *userContext) |
callback called when a transmission errors happens on a DoKLine channel More... | |
void | AGHAF_DoKLine_setOnMsgTxCallback (AGHAF_DoKLine_Channel channel, AGHAF_DoKLine_onMsgTx callback, void *userContext) |
set the callback on a transmission event More... | |
void | AGHAF_DoKLine_setOnMsgRxCallback (AGHAF_DoKLine_Channel channel, AGHAF_DoKLine_onMsgRx callback, void *userContext) |
set the callback on a reception event More... | |
void | AGHAF_DoKLine_setOnMsgTxErrCallback (AGHAF_DoKLine_Channel channel, AGHAF_DoKLine_onMsgTxErr callback, void *userContext) |
set the callback a transmission error event More... | |
AGHAF_Status | AGHAF_DoKLine_getChannelCount (AGHAF_KLine kline, uint8_t *count) |
Provide the number of channels available on the bus. More... | |
AGHAF_Status | AGHAF_DoKLine_getFreeChannelCount (AGHAF_KLine kline, uint8_t *count) |
Return the number of free channels still available. More... | |
AGHAF_DoKLine_Channel | AGHAF_DoKLine_createChannel (AGHAF_KLine kline) |
Create a channel. More... | |
void | AGHAF_DoKLine_releaseChannel (AGHAF_DoKLine_Channel channel) |
Release the channel. More... | |
AGHAF_DoKLine_Channel | AGHAF_DoKLine_getChannelByIndex (AGHAF_KLine kline, uint8_t index) |
return the index corrsponding to the index in parameter (nullptr if the index is not found) More... | |
uint8_t | AGHAF_DoKLine_Channel_getIndex (AGHAF_DoKLine_Channel channel) |
Return the intern index from the channel. More... | |
AGHAF_Status | AGHAF_DoKLine_Channel_setParam (AGHAF_DoKLine_Channel channel, AGHAF_DoKLine_ChannelParam param, uint32_t value) |
Set the parameter from a channel. More... | |
AGHAF_Status | AGHAF_DoKLine_Channel_getParam (AGHAF_DoKLine_Channel channel, AGHAF_DoKLine_ChannelParam param, uint32_t *value) |
Provide the value from a channel parameter. More... | |
AGHAF_Status | AGHAF_DoKLine_Channel_start (AGHAF_DoKLine_Channel channel) |
Start a channel. More... | |
AGHAF_Status | AGHAF_DoKLine_Channel_stop (AGHAF_DoKLine_Channel channel) |
Stop a channel. More... | |
AGHAF_Status | AGHAF_DoKLine_Channel_send (AGHAF_DoKLine_Channel channel, uint8_t flags, uint32_t dataLen, uint8_t const *data) |
Send on the DoKLine channel in parameter. More... | |
API to use DoKLine on exxotest devices.
below, the description of channel state management:
Symbol | Description |
---|---|
![]() | Forbidden |
![]() | Authorized |
![]() | Next state |
Function | Stop | Start |
---|---|---|
AGHAF_DoKLine_Channel_setParam | ![]() | ![]() |
AGHAF_DoKLine_Channel_getParam | ![]() | ![]() |
AGHAF_DoKLine_Channel_start | ![]() | ![]() |
AGHAF_DoKLine_Channel_stop | ![]() | ![]() |
AGHAF_DoKLine_Channel_send | ![]() | ![]() |
typedef void(* AGHAF_DoKLine_onMsgRx) (uint64_t timestamp, uint8_t flags, uint32_t headerSize, uint8_t const *header, uint32_t footerSize, uint8_t const *footer, uint32_t dataLen, uint8_t const *data, void *userContext) |
callback called when a frame is received on a DoKLine channel
timestamp | timestamp of the event |
flags | corresponding to AGHAF_DoKLine_MSG_FLAGS |
headerSize | header size |
header | header data |
footerSize | footer size |
footer | footer data |
dataLen | size of the datas received |
data | datas received |
userContext | context given when setting the callback in the system |
typedef void(* AGHAF_DoKLine_onMsgTx) (uint64_t timestamp, uint8_t flags, uint32_t headerSize, uint8_t const *header, uint32_t footerSize, uint8_t const *footer, uint32_t dataLen, uint8_t const *data, void *userContext) |
callback called when a frame is transmitted on a DoKLine channel
timestamp | timestamp of the event |
flags | corresponding to AGHAF_DoKLine_MSG_FLAGS |
headerSize | header size |
header | header data |
footerSize | footer size |
footer | footer data |
dataLen | size of the datas transmitted |
data | datas transmitted |
userContext | context given when setting the callback in the system |
typedef void(* AGHAF_DoKLine_onMsgTxErr) (uint64_t timestamp, AGHAF_DoKLine_Error error, void *userContext) |
callback called when a transmission errors happens on a DoKLine channel
timestamp | timestamp of the event |
error | value of the error |
userContext | context given when setting the callback in the system |
uint8_t AGHAF_DoKLine_Channel_getIndex | ( | AGHAF_DoKLine_Channel | channel | ) |
Return the intern index from the channel.
channel |
AGHAF_Status AGHAF_DoKLine_Channel_getParam | ( | AGHAF_DoKLine_Channel | channel, |
AGHAF_DoKLine_ChannelParam | param, | ||
uint32_t * | value | ||
) |
Provide the value from a channel parameter.
channel | handle on the channel |
param | parameter to get |
value | value to get |
AGHAF_Status AGHAF_DoKLine_Channel_send | ( | AGHAF_DoKLine_Channel | channel, |
uint8_t | flags, | ||
uint32_t | dataLen, | ||
uint8_t const * | data | ||
) |
Send on the DoKLine channel in parameter.
channel | handle on the channel |
flags | AGHAF_DoKLine_MSG_FLAGS |
dataLen | length from the datas |
data | pointer on data |
AGHAF_Status AGHAF_DoKLine_Channel_setParam | ( | AGHAF_DoKLine_Channel | channel, |
AGHAF_DoKLine_ChannelParam | param, | ||
uint32_t | value | ||
) |
Set the parameter from a channel.
channel | handle on the channel |
param | parameter to set |
value | value to set |
AGHAF_Status AGHAF_DoKLine_Channel_start | ( | AGHAF_DoKLine_Channel | channel | ) |
Start a channel.
channel | handle on the channel |
AGHAF_Status AGHAF_DoKLine_Channel_stop | ( | AGHAF_DoKLine_Channel | channel | ) |
Stop a channel.
channel | handle on the channel |
AGHAF_DoKLine_Channel AGHAF_DoKLine_createChannel | ( | AGHAF_KLine | kline | ) |
Create a channel.
kline | handle on the bus |
AGHAF_DoKLine_Channel AGHAF_DoKLine_getChannelByIndex | ( | AGHAF_KLine | kline, |
uint8_t | index | ||
) |
return the index corrsponding to the index in parameter (nullptr if the index is not found)
kline | bus on which is the channel |
index | index from the channel |
AGHAF_Status AGHAF_DoKLine_getChannelCount | ( | AGHAF_KLine | kline, |
uint8_t * | count | ||
) |
Provide the number of channels available on the bus.
kline | handle on the bus |
count | pointer to fill with the data |
AGHAF_Status AGHAF_DoKLine_getFreeChannelCount | ( | AGHAF_KLine | kline, |
uint8_t * | count | ||
) |
Return the number of free channels still available.
kline | handle on the bus |
count | number of free channels still available |
void AGHAF_DoKLine_releaseChannel | ( | AGHAF_DoKLine_Channel | channel | ) |
Release the channel.
channel | handle on the channel to release |
void AGHAF_DoKLine_setOnMsgRxCallback | ( | AGHAF_DoKLine_Channel | channel, |
AGHAF_DoKLine_onMsgRx | callback, | ||
void * | userContext | ||
) |
set the callback on a reception event
channel | handle on a DoKLine channel |
callback | callback to be used for the event |
userContext | context provided by the user for custom datas |
void AGHAF_DoKLine_setOnMsgTxCallback | ( | AGHAF_DoKLine_Channel | channel, |
AGHAF_DoKLine_onMsgTx | callback, | ||
void * | userContext | ||
) |
set the callback on a transmission event
channel | handle on a DoKLine channel |
callback | callback to be used for the event |
userContext | context provided by the user for custom datas |
void AGHAF_DoKLine_setOnMsgTxErrCallback | ( | AGHAF_DoKLine_Channel | channel, |
AGHAF_DoKLine_onMsgTxErr | callback, | ||
void * | userContext | ||
) |
set the callback a transmission error event
channel | handle on a DoKLine channel |
callback | callback to be used for the event |
userContext | context provided by the user for custom datas |