|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetModuleBITEnable (int32_t cardIndex, int32_t module, nai_sd_test_enable_t type, bool_t bitEnable) |
| Enables/Disables the BIT test specified by the type parameter. BITs are described as follows:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetModuleBITEnable (int32_t cardIndex, int32_t module, nai_sd_test_enable_t type, bool_t *p_outbitEnable) |
| Retrieves the state (Enabled or disabled) of the BIT test specified by the type parameter. BITs are described as follows:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_CheckPowerOnBITComplete (int32_t cardIndex, int32_t module, bool_t *p_outpbitComplete) |
| Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified module. The PBIT result will be in the BIT status register. Feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetTestAngle (int32_t cardIndex, int32_t module, float64_t testangle) |
| Sets the Test Angle used for the D0 Test.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetTestAngle (int32_t cardIndex, int32_t module, float64_t *outtestangle) |
| Retrieves the Test Angle used for the D0 Test.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetD2TestVerifyValue (int32_t cardIndex, int32_t module, uint32_t value) |
| Sets the D2 Test Verify value. When the D2 test is enabled, the board will set the D2 Test Verify register to 0x55. An external application can write a value to the D2 Test Verify register and then read it after 30 seconds to verify that the background bit testing (D2 test) is activated.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetD2TestVerifyValue (int32_t cardIndex, int32_t module, uint32_t *outvalue) |
| Retrieves the D2 Test Verify value. When the D2 test is enabled, the board will set the D2 Test Verify register to 0x55. An external application can write a value to the D2 Test Verify register and then read it after 30 seconds to verify that the background bit testing (D2 test) is activated.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetBITErrorLimit (int32_t cardIndex, int32_t module, int32_t channel, float64_t bitErrorLimit) |
| Sets the BIT Test Error Limit for the specified SD channel. Feature supported in FPGA Version >= 9.28.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetBITErrorLimit (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outbitErrorLimit) |
| Retrieves the BIT Test Error Limit for the specified SD channel. Feature supported in FPGA Version >= 9.28.
|
|
Retrieves the state (Enabled or disabled) of the BIT test specified by the type parameter. BITs are described as follows:
UBIT (D0) - An off-line test that is used to check the card and interface. This will disconnect all channels from the I/O and connect them across an internal stimulus. Test parameters are controlled by the user and are entered in the D0 Test Level and D0 Test Polarity registers. The outputs from the channels are monitored internally for proper conversion. External stimulus is not required.
IBIT (D3) - An off-line test that starts an initiated BIT test that disconnects all channels from the I/O and then connects them across an internal stimulus. Each channel will be checked to a pre-determined test accuracy. Test cycle is completed when D3 changes from 1 to 0. Results can be read from the Status registers. The test can be enabled or disabled at any time. Function NAI_SD_TEST_ENABLE_D2 not supported Bare Metal revision >= 9.25
- 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]). |
type | : (Input) The BIT type to check. Refer to nai_sd_test_enable_t definition. |
p_outbitEnable | : (Output) BIT Enabled (0 = disabled, 1 = enabled). |
- 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_VALUE when invalid type parameter is specified.
- NAI_ERROR_NOT_SUPPORTED when function is not supported.
Enables/Disables the BIT test specified by the type parameter. BITs are described as follows:
UBIT (D0) - An off-line test that is used to check the card and interface. This will disconnect all channels from the I/O and connect them across an internal stimulus. Test parameters are controlled by the user and are entered in the D0 Test Level and D0 Test Polarity registers. The outputs from the channels are monitored internally for proper conversion. External stimulus is not required.
IBIT (D3) - An off-line test that starts an initiated BIT test that disconnects all channels from the I/O and then connects them across an internal stimulus. Each channel will be checked to a pre-determined test accuracy. Test cycle is completed when D3 changes from 1 to 0. Results can be read from the Status registers. The test can be enabled or disabled at any time. Function NAI_SD_TEST_ENABLE_D2 not supported Bare Metal revision >= 9.25
- 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]). |
type | : (Input) The BIT type to enable/disable. Refer to nai_sd_test_enable_t definition. |
bitEnable | : (Input) BIT Enable (0 = disable, 1 = enable). |
- 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_VALUE when invalid type parameter or invalid bitEnable parameter is specified.
- NAI_ERROR_NOT_SUPPORTED when the function is not supported.