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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetAllChan (int32_t cardIndex, int32_t module, naibrd_dt_all_chan_type_t type, uint32_t rawdata)
 Sets the raw data value in the register associated to the type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetAllChan (int32_t cardIndex, int32_t module, naibrd_dt_all_chan_type_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the register associated to the group and register type specified.
 

Detailed Description

Function Documentation

◆ naibrd_DT_GetAllChan()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_GetAllChan ( int32_t cardIndex,
int32_t module,
naibrd_dt_all_chan_type_t type,
uint32_t * outrawdata )

Retrieves the raw data value in the register associated to the group and register type 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]).
type: (Input) Group Register Type: refer to naibrd_dt_all_chan_type_t definition.
outrawdata: (Output) Raw Data Code.
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 group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_DT_SetAllChan()

NAIBRDFUNC nai_status_t NAIAPI naibrd_DT_SetAllChan ( int32_t cardIndex,
int32_t module,
naibrd_dt_all_chan_type_t type,
uint32_t rawdata )

Sets the raw data value in the register associated to the type 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]).
type: (Input) Register Type: refer to naibrd_dt_all_chan_type_t definition.
rawdata: (Input) Raw Data Code.
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 group register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.