Software Library API naibrd 1.62
See all documentation at naii.docs.com

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_InitiateBIT (int32_t cardIndex, int32_t module, int32_t channel, bool_t waitForResult)
 Executes the AR-429 Initiated Built-in Test and returns the result. If the user chooses to wait for the result (waitForResult = NAI_TRUE) then the result of the test is returned in the status, either as NAI_SUCCESS or NAI_ERROR_BIT_FAILED. If the user chooses not to wait for the result, they can call naibrd_AR_CheckBITComplete() and naibrd_AR_GetStatus() at a later time to verify the test has completed and fetch the BIT status.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CheckBITComplete (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outbitComplete)
 Retrieves the BIT status (complete or incomplete) of the channel specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CheckPowerOnBITComplete (int32_t cardIndex, int32_t module, bool_t *p_outpbitComplete)
 Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified channel. The PBIT result will be in the BIT status register.
 

Detailed Description


Function Documentation

◆ naibrd_AR_CheckBITComplete()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CheckBITComplete ( int32_t cardIndex,
int32_t module,
int32_t channel,
bool_t * p_outbitComplete )

Retrieves the BIT status (complete or incomplete) of the channel specified.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection 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_outbitComplete: (Output) NAI_FALSE = BIT not done, NAI_TRUE = BIT complete.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_AR_CheckPowerOnBITComplete()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_CheckPowerOnBITComplete ( int32_t cardIndex,
int32_t module,
bool_t * p_outpbitComplete )

Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified channel. The PBIT result will be in the BIT status register.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
module: (Input) Module Number of the module to access (1 - [max modules for board]).
p_outpbitComplete: (Output) NAI_TRUE = PBIT complete, NAI_FALSE = PBIT not complete.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_NOT_SUPPORTED when the module does not support Power-On BIT.

◆ naibrd_AR_InitiateBIT()

NAIBRDFUNC nai_status_t NAIAPI naibrd_AR_InitiateBIT ( int32_t cardIndex,
int32_t module,
int32_t channel,
bool_t waitForResult )

Executes the AR-429 Initiated Built-in Test and returns the result. If the user chooses to wait for the result (waitForResult = NAI_TRUE) then the result of the test is returned in the status, either as NAI_SUCCESS or NAI_ERROR_BIT_FAILED. If the user chooses not to wait for the result, they can call naibrd_AR_CheckBITComplete() and naibrd_AR_GetStatus() at a later time to verify the test has completed and fetch the BIT status.

Warning
This test will interrupt operation of the specified channel for approximately 3 ms and will clear out all FIFO buffers. The user must take this into consideration if this function is used.
Parameters
cardIndex: (Input) Logical Card Index assigned to connection 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]).
waitForResult: (Input) This allows this API to either wait for the BIT result before returning or return immediately after BIT is initiated. When returning immediately, please allow more than 3mS for the BIT to complete. Calling naibrd_AR_GetChanMappedStatus() after BIT is complete will return the results of the last executed test, regardless if this API returns immediately or after the test is complete. (NAI_TRUE to wait, NAI_FALSE to return immediately)
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid module parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_CHANNEL when invalid channel parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.
  • NAI_ERROR_TIMEOUT when BIT times out (does not finish in time allotted or user forgot to disable respective channels).
  • NAI_ERROR_BIT_FAILED when the BIT indicates a failure.