![]() |
Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
| NAIBRDFUNC int32_t NAIAPI | naibrd_CAN_GetChannelCount (uint32_t modId) |
| Retrieves the number of channels for the specified CAN Module ID. | |
| NAIBRDFUNC int32_t NAIAPI | naibrd_CAN_GetChannelCountForModule (uint32_t cardIndex, uint32_t module) |
| Returns the number of channels for the specified card and CAN Module. | |
| NAIBRDFUNC int32_t NAIAPI | naibrd_CAN_GetMaxFIFOCount (uint32_t modId) |
| Returns the max FIFO count for the specified CAN Module ID. | |
| NAIBRDFUNC int32_t NAIAPI | naibrd_CAN_GetFrameByteCount (uint32_t modId) |
| Returns the number of bytes that make up a CAN frame for the specified CAN Module ID. | |
| static nai_status_t | naibrd_CAN_VerifyChannel (uint32_t modId, int32_t channel) |
| Returns whether the given channel (1-based) is valid for the specified Module ID. | |
| static nai_status_t | naibrd_CAN_VerifyFilter (uint32_t modId, int32_t filter) |
| Returns whether the given filter is valid for the specified Module ID. | |
| static int32_t | naibrd_CAN_GetMaxAcceptFilterCountForModule (uint32_t modId) |
| Returns the maximum number of filters that can be configured for the given Module ID. | |
| static nai_status_t | naibrd_CAN_WaitForCanControlOptionToFinish (int32_t cardIndex, int32_t module, int32_t channel, uint32_t moduleVer, bool_t checkConfigEdit, uint32_t controlBitsToWaitOn) |
| Performs wait logic for CAN control options. Each control option request bit is set to a one (1) requesting an action to take place. When the task is finished, the bits are set back to a zero (0). | |
| NAIBRDFUNC int32_t NAIAPI naibrd_CAN_GetChannelCount | ( | uint32_t | modId | ) |
Retrieves the number of channels for the specified CAN Module ID.
| modId | : (Input) CAN Module ID |
| NAIBRDFUNC int32_t NAIAPI naibrd_CAN_GetChannelCountForModule | ( | uint32_t | cardIndex, |
| uint32_t | module ) |
Returns the number of channels for the specified card and CAN Module.
| cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| NAIBRDFUNC int32_t NAIAPI naibrd_CAN_GetFrameByteCount | ( | uint32_t | modId | ) |
Returns the number of bytes that make up a CAN frame for the specified CAN Module ID.
| modId | : (Input) CAN Module ID |
|
static |
Returns the maximum number of filters that can be configured for the given Module ID.
| modId | : (Input) CAN Module ID |
| NAIBRDFUNC int32_t NAIAPI naibrd_CAN_GetMaxFIFOCount | ( | uint32_t | modId | ) |
Returns the max FIFO count for the specified CAN Module ID.
| modId | : (Input) CAN Module ID |
|
static |
Returns whether the given channel (1-based) is valid for the specified Module ID.
| modId | : (Input) CAN Module ID |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
|
static |
Returns whether the given filter is valid for the specified Module ID.
| modId | : (Input) CAN Module ID |
| filter | : (Input) Filter value (1-Based) |
|
static |
Performs wait logic for CAN control options. Each control option request bit is set to a one (1) requesting an action to take place. When the task is finished, the bits are set back to a zero (0).
| cardIndex | : (Input) Logical Card Index assigned to connect with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
| moduleVer | : (Input) Version of module baremetal code |
| checkConfigEdit | : (Input) NAI_TRUE indicates to only attempt to wait if the control bit signaling editing configuration is not set. |
| configBitsToWaitOn | : (Input) Config Bits to wait on. |