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

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetRaw (int32_t cardIndex, int32_t module, nai_ttl_raw_module_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_TTL_GetRaw (int32_t cardIndex, int32_t module, nai_ttl_raw_module_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the register associated to the register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetGroupRaw (int32_t cardIndex, int32_t module, int32_t group, nai_ttl_raw_group_t type, uint32_t rawdata)
 Sets the raw data value in the group register associated to the register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupRaw (int32_t cardIndex, int32_t module, int32_t group, nai_ttl_raw_group_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the group register associated to the register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_ttl_raw_channel_t type, uint32_t rawdata)
 Sets the raw data value in the register associated to the channel and register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, nai_ttl_raw_channel_t type, uint32_t *outrawdata)
 Retrieves the raw data value in the register associated to the channel and register type specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupInputStateRaw (int32_t cardIndex, int32_t module, int32_t group, uint32_t *outstateRaw)
 Retrieves the Input State for all channels within the specified group of the TTL module. 'state' has one bit per channel, where the LSB is the 1st channel in 'group'.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupStatusRaw (int32_t cardIndex, int32_t module, int32_t group, nai_ttl_status_type_t type, uint32_t *outstatusRaw)
 Retrieves the status of the specified type for the specified group. The status of a channel is flagged and latched until read. Reading any status bit will cause that bit to be unlatched.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_ClearGroupStatusRaw (int32_t cardIndex, int32_t module, int32_t group, nai_ttl_status_type_t type, uint32_t statusRaw)
 Clears the status of the specified type for the specified group. The status of a channel is flagged and latched until a "1" is written to the bit. Writing a "1" to the status bit will cause that bit to be unlatched.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetGroupInterruptEnableRaw (int32_t cardIndex, int32_t module, int32_t group, nai_ttl_status_type_t type, uint32_t enableRaw)
 Sets the Interrupt Enable state for the specified type and group.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupInterruptEnableRaw (int32_t cardIndex, int32_t module, int32_t group, nai_ttl_status_type_t type, uint32_t *outenableRaw)
 Retrieves the Interrupt Enable state for the specified type and group.
 

Detailed Description


Function Documentation

◆ naibrd_TTL_ClearGroupStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_ClearGroupStatusRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_ttl_status_type_t type,
uint32_t statusRaw )

Clears the status of the specified type for the specified group. The status of a channel is flagged and latched until a "1" is written to the bit. Writing a "1" to the status bit will cause that bit to be unlatched.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_ttl_status_type_t definitions.
statusRaw: (Input) .
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group or type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_GetChannelRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetChannelRaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ttl_raw_channel_t type,
uint32_t * outrawdata )

Retrieves the raw data value in the register associated to the channel 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]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Channel Register Type: refer to nai_ttl_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 card 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 channel or channel type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_GetGroupInputStateRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupInputStateRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
uint32_t * outstateRaw )

Retrieves the Input State for all channels within the specified group of the TTL module. 'state' has one bit per channel, where the LSB is the 1st channel in 'group'.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
outstateRaw: (Output) for each bit, 1 = logical high and 0 = logical low.
Channel bit mapping is as follows:
   D0  is for the 1st channel in 'group',
   D1  is for the 2nd channel in 'group',
   :                  :
   :                  :
   D31 is for the 32nd channel in 'group'
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_GetGroupInterruptEnableRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupInterruptEnableRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_ttl_status_type_t type,
uint32_t * outenableRaw )

Retrieves the Interrupt Enable state for the specified type and group.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_ttl_status_type_t definitions (Latched types only).
outenableRaw: (Input) 0 to disable, 1 to enable interrupt.
Channel bit mapping is as follows:
   D0  is for the 1st channel in 'group',
   D1  is for the 2nd channel in 'group',
   :                  :
   :                  :
   D31 is for the 32nd channel in 'group'
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group parameter.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_GetGroupRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_ttl_raw_group_t type,
uint32_t * outrawdata )

Retrieves the raw data value in the group 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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Module Register Type: refer to nai_ttl_raw_group_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 card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_GetGroupStatusRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetGroupStatusRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_ttl_status_type_t type,
uint32_t * outstatusRaw )

Retrieves the status of the specified type for the specified group. The status of a channel is flagged and latched until read. Reading any status bit will cause that bit to be unlatched.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_ttl_status_type_t definitions.
outstatusRaw: (Output) for each bit, 0 for Normal, 1 Failure Detected.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group or type parameter is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_GetRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetRaw ( int32_t cardIndex,
int32_t module,
nai_ttl_raw_module_t type,
uint32_t * outrawdata )

Retrieves 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_ttl_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 card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_SetChannelRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetChannelRaw ( int32_t cardIndex,
int32_t module,
int32_t channel,
nai_ttl_raw_channel_t type,
uint32_t rawdata )

Sets the raw data value in the register associated to the channel 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]).
channel: (Input) Channel Number of the channel to access (1 - [max channels for module]).
type: (Input) Channel Register Type: refer to nai_ttl_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 card 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 channel or channel type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_SetGroupInterruptEnableRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetGroupInterruptEnableRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_ttl_status_type_t type,
uint32_t enableRaw )

Sets the Interrupt Enable state for the specified type and group.

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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Status Type: refer to nai_ttl_status_type_t definitions.
enableRaw: (Input) 0 to disable, 1 to enable interrupt.
Channel bit mapping is as follows:
   D0  is for the 1st channel in 'group',
   D1  is for the 2nd channel in 'group',
   :                  :
   :                  :
   D31 is for the 32nd channel in 'group'
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.
  • NAI_ERROR_INVALID_MODULE when invalid card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid group parameter.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_SetGroupRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetGroupRaw ( int32_t cardIndex,
int32_t module,
int32_t group,
nai_ttl_raw_group_t type,
uint32_t rawdata )

Sets the raw data value in the group 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]).
group: (Input) Channel Group Number to access (1 - [max channel groups for module]).
type: (Input) Module Register Type: refer to nai_ttl_raw_group_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 card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_TTL_SetRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetRaw ( int32_t cardIndex,
int32_t module,
nai_ttl_raw_module_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_ttl_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 card parameter is specified.
  • NAI_ERROR_NOT_OPEN when handle to board is invalid.
  • NAI_ERROR_INVALID_VALUE when invalid register type is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.