Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
static int32_t | GetChannelCount (uint32_t modId) |
Returns the number of CAN channels for the specified Module ID. | |
static int32_t | GetMaxPayloadCountForProtocol (naibrd_ar_can_protocol_type_t protocol) |
Returns the maximum payload count for specified protocol. | |
static int32_t | GetMaxFifoCount (uint32_t modId) |
Returns the maximum size the CAN Fifo's can hold. | |
static int32_t | GetFrameMinByteCount (uint32_t modId) |
Returns the Minimum CAN frame count for the specified Module ID. | |
static int32_t | GetMaxFilterCount (uint32_t modId) |
Returns the maximum number of filters that can be configured for the given Module ID. | |
static nai_status_t | verify_channel (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_WaitForCanControlOptionToFinish (int32_t cardIndex, int32_t module, int32_t channel, 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). | |
static nai_status_t | GetCmdBufferAddress (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_cmdBufferAddr) |
Returns what address to use for the Cmd Fifo. Newer baremetal implementations have a separate Cmd Fifo while previous versions made use of the Tx Fifo. | |
static nai_status_t | GetCmdBufferCountAddress (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_cmdBufferCountAddr) |
Returns what address to use for the Cmd Fifo Count. Newer baremetal implementations have a separate Cmd Fifo while previous versions made use of the Tx Fifo. | |
static nai_status_t | ResetCmdFifoIfNotEmpty (int32_t cardIndex, int32_t module, int32_t channel) |
Resets the cmd FIFO to make sure. | |
NAIBRDFUNC int32_t NAIAPI | naibrd_AR_CAN_GetChannelCount (uint32_t modId) |
Returns the number of channels for the specified CAN Module ID. | |
NAIBRDFUNC int32_t NAIAPI | naibrd_AR_CAN_GetChannelCountForModule (uint32_t cardIndex, uint32_t module) |
Returns the number of channels for the specified card and CAN Module Index. | |
NAIBRDFUNC int32_t NAIAPI | naibrd_AR_CAN_GetMaxFifoCount (uint32_t modId) |
Returns the max Fifo count for the specified CAN Module ID. | |
NAIBRDFUNC int32_t NAIAPI | naibrd_AR_CAN_GetMinFrameByteCount (uint32_t modId) |
Returns the minimum frame byte count for the specified CAN Module ID. | |
|
static |
Returns the number of CAN channels for the specified Module ID.
modId | : (Input) CAN Module ID |
|
static |
Returns what address to use for the Cmd Fifo. Newer baremetal implementations have a separate Cmd Fifo while previous versions made use of the Tx Fifo.
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]). |
p_cmdBufferAddr | : (Output) Address to be used to access Cmd Fifo. |
|
static |
Returns what address to use for the Cmd Fifo Count. Newer baremetal implementations have a separate Cmd Fifo while previous versions made use of the Tx Fifo.
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]). |
p_cmdBufferCountAddr | : (Output) Address to be used to access Cmd Fifo Count. |
|
static |
Returns the Minimum CAN frame count for the specified Module ID.
modId | : (Input) CAN Module ID |
|
static |
Returns the maximum size the CAN Fifo's can hold.
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 |
|
static |
Returns the maximum payload count for specified protocol.
protocol | : (Input) Protocol of which to get maximum payload count for |
NAIBRDFUNC int32_t NAIAPI naibrd_AR_CAN_GetChannelCount | ( | uint32_t | modId | ) |
Returns the number of channels for the specified CAN Module ID.
modId | : (Input) CAN Module ID |
NAIBRDFUNC int32_t NAIAPI naibrd_AR_CAN_GetChannelCountForModule | ( | uint32_t | cardIndex, |
uint32_t | module ) |
Returns the number of channels for the specified card and CAN Module Index.
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_AR_CAN_GetMaxFifoCount | ( | uint32_t | modId | ) |
Returns the max Fifo count for the specified CAN Module ID.
modId | : (Input) CAN Module ID |
NAIBRDFUNC int32_t NAIAPI naibrd_AR_CAN_GetMinFrameByteCount | ( | uint32_t | modId | ) |
Returns the minimum frame byte count for the specified CAN Module ID.
modId | : (Input) CAN Module ID |
|
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]). |
checkConfigEdit | : (Input) NAI_TRUE indicates to only attempt to wait if the control bit signaling editing configuration is not set. |
controlBitsToWaitOn | : (Input) Control Bits to wait on. |
|
static |
Resets the cmd FIFO to make sure.
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]). |
|
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]). |