Software Library API naibrd 1.62
See all documentation at naii.docs.com
Raw Register Access Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetRaw (int32_t cardIndex, int32_t module, nai_sg_raw_t type, uint32_t rawdata)
 Sets the raw data value in the register associated to the register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetRaw (int32_t cardIndex, int32_t module, nai_sg_raw_t type, uint32_t *outrawdata)
 Retrieves the raw digital data value in the register associated to the register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_raw_channel_t type, uint32_t rawdata)
 Sets the raw data value in the register associated to the channel and register type specified. Note: values written to data output registers will have no effect; only the excitation voltage selection is valid.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_sg_raw_channel_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the register associated to the channel and register type specified. Note: Data format may be in floating point or signed integer, depending on the selection of the data type being accessed.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetStatusRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t *outrawdata)
 Retrieves the raw status data value in the register associated to the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ClearStatusRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t rawdata)
 Clears the bits set in the rawdata parameter in the status register associated to the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB corresponding to the max SG Channel.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetIntEnableRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t rawdata)
 Sets the raw interrupt enable data value in the register associated to the status type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetIntEnableRaw (int32_t cardIndex, int32_t module, nai_sg_status_type_t type, uint32_t *outrawdata)
 Retrieves the raw interrupt enable data value in the register associated to the status type specified.
 

Detailed Description


Function Documentation

◆ naibrd_SG_ClearStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_ClearStatusRaw ( int32_t cardIndex,
int32_t module,
nai_sg_status_type_t type,
uint32_t rawdata )

Clears the bits set in the rawdata parameter in the status register associated to the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB corresponding to the max SG Channel.

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) Status Type: refer to nai_sg_status_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_GetChannelRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetChannelRaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_sg_raw_channel_t type,
uint32_t * outrawdata )

Retrieves the raw data value in the register associated to the channel and register type specified. Note: Data format may be in floating point or signed integer, depending on the selection of the data type being accessed.

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]).
type: (Input) Channel Register Type: refer to nai_sg_raw_channel_t type 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_CHANNEL when invalid channel parameter.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_GetIntEnableRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetIntEnableRaw ( int32_t cardIndex,
int32_t module,
nai_sg_status_type_t type,
uint32_t * outrawdata )

Retrieves the raw interrupt enable data value in the register associated to the status 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) Status Type: refer to nai_sg_status_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_GetRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetRaw ( int32_t cardIndex,
int32_t module,
nai_sg_raw_t type,
uint32_t * outrawdata )

Retrieves the raw digital data value in the register associated to the 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) Module Register Type: refer to nai_sg_raw_module_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_GetStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_GetStatusRaw ( int32_t cardIndex,
int32_t module,
nai_sg_status_type_t type,
uint32_t * outrawdata )

Retrieves the raw status data value in the register associated to the status 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) Status Type: refer to nai_sg_status_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_SetChannelRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetChannelRaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_sg_raw_channel_t type,
uint32_t rawdata )

Sets the raw data value in the register associated to the channel and register type specified. Note: values written to data output registers will have no effect; only the excitation voltage selection is valid.

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]).
type: (Input) Channel Register Type: refer to nai_sg_raw_channel_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_CHANNEL when invalid channel parameter.
  • NAI_ERROR_INVALID_VALUE when invalid type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_SetIntEnableRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetIntEnableRaw ( int32_t cardIndex,
int32_t module,
nai_sg_status_type_t type,
uint32_t rawdata )

Sets the raw interrupt enable data value in the register associated to the status 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) Status Type: refer to nai_sg_status_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SG_SetRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SG_SetRaw ( int32_t cardIndex,
int32_t module,
nai_sg_raw_t type,
uint32_t rawdata )

Sets the raw data value in the register associated to the 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) Module Register Type: refer to nai_sg_raw_module_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 type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.