Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetChannelMappedStatus (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t *outstatus) |
Retrieves either the BIT status or Summary (Receive Data Available) status for the module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_ClearChannelMappedStatus (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t inStatus) |
Clears the latched BIT status or latched Summary (Rx Data Available) status. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetChannelMappedInterruptEnable (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t intEnable) |
Sets the Interrupt Enable register value for the specified statusType. Setting any of the bits to a (1) enables the interrupt on the channel in that bit position. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetChannelMappedInterruptEnable (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t *outIntEnable) |
Gets the Interrupt Enable register value for the specified statusType. A (1) indicates the interrupt is enabled for that channel, a (0) indicates it is not set. Each bit represents a channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetChannelMappedInterruptTriggerType (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t triggerType) |
Sets the Interrupt trigger type (edge/level) register value for the specified statusType. Setting any of the bits to a (0) sets the trigger type to edge, setting any of the bits to a (1) sets the trigger type to level. Each bit represents a channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetChannelMappedInterruptTriggerType (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t *outTriggerType) |
Gets the Interrupt trigger type (edge/level) register value for the specified statusType. A (0) indicates the trigger type is set to edge for that channel, a (1) indicates the trigger type is set to level. Each bit represents a channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetChannelMappedInterruptVector (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t vector) |
Sets the interrupt vector for the specified statusType interrupt. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetChannelMappedInterruptVector (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, uint32_t *outVector) |
Gets the interrupt vector for the specified statusType interrupt. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_SetChannelMappedInterruptSteering (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, naibrd_int_steering_t steering) |
Sets the interrupt steering for the specified statusType interrupt, this specifies the interrupt direction for each interrupt. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SER_GetChannelMappedInterruptSteering (int32_t cardIndex, int32_t module, nai_ser_chan_mapped_status_type_t statusType, naibrd_int_steering_t *outSteering) |
Gets the interrupt steering for the specified statusType interrupt, this specifies the interrupt direction for each interrupt. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ClearChannelMappedStatus | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t | inStatus ) |
Clears the latched BIT status or latched Summary (Rx Data Available) status.
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]). |
statusType | : (Input) The latched channel mapped status to clear: BIT or Summary. |
inStatus | : (Input) Mask of channels to clear. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelMappedInterruptEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t * | outIntEnable ) |
Gets the Interrupt Enable register value for the specified statusType. A (1) indicates the interrupt is enabled for that channel, a (0) indicates it is not set. Each bit represents a channel.
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]). |
statusType | : (Input) The type of interrupt to enable. |
statusType | : (Input) The type of interrupt to retrieve. |
outIntEnable | : (Output) Bitmask of channels that have interrupts enabled. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelMappedInterruptSteering | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
naibrd_int_steering_t * | outSteering ) |
Gets the interrupt steering for the specified statusType interrupt, this specifies the interrupt direction for each interrupt.
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]). |
statusType | : (Input) The type of interrupt to enable. |
outSteering | : (Output) Interrupt steering. Refer to naibrd_int_steering_t |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelMappedInterruptTriggerType | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t * | outTriggerType ) |
Gets the Interrupt trigger type (edge/level) register value for the specified statusType. A (0) indicates the trigger type is set to edge for that channel, a (1) indicates the trigger type is set to level. Each bit represents a channel.
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]). |
statusType | : (Input) The type of interrupt to get the trigger type of. |
outTriggerType | : (Output) Bitmask of the channels trigger type. (0) for edge, (1) for level. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelMappedInterruptVector | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t * | outVector ) |
Gets the interrupt vector for the specified statusType interrupt.
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]). |
statusType | : (Input) The type of interrupt to get the vector of. |
outVector | : (Output) Unique interrupt vector to be used to identify the interrupt in the Interrupt Service Routine (ISR). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelMappedStatus | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t * | outstatus ) |
Retrieves either the BIT status or Summary (Receive Data Available) status for the module.
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]). |
statusType | : (Input) The channel mapped status to read: BIT realtime/latched or Summary realtime/latched. |
outstatus | : (Output) BIT status for the module (0 = PASS, 1 = FAIL) or Receive Data Available Status (0 = No data, 1 = Rx Data Available). Values are bit-mapped by channel. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetChannelMappedInterruptEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t | intEnable ) |
Sets the Interrupt Enable register value for the specified statusType. Setting any of the bits to a (1) enables the interrupt on the channel in that bit position.
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]). |
statusType | : (Input) The type of interrupt to enable. |
intEnable | : (Input) Bitmask of channels to enable the specified interrupt on. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetChannelMappedInterruptSteering | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
naibrd_int_steering_t | steering ) |
Sets the interrupt steering for the specified statusType interrupt, this specifies the interrupt direction for each interrupt.
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]). |
statusType | : (Input) The type of interrupt to set the steering on. |
steering | : (Input) Interrupt steering. Refer to naibrd_int_steering_t |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetChannelMappedInterruptTriggerType | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t | triggerType ) |
Sets the Interrupt trigger type (edge/level) register value for the specified statusType. Setting any of the bits to a (0) sets the trigger type to edge, setting any of the bits to a (1) sets the trigger type to level. Each bit represents a channel.
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]). |
statusType | : (Input) The type of interrupt to set the trigger type on. |
triggerType | : (Input) Bitmask of channels to set the trigger type on. (0) for edge, (1) for level. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetChannelMappedInterruptVector | ( | int32_t | cardIndex, |
int32_t | module, | ||
nai_ser_chan_mapped_status_type_t | statusType, | ||
uint32_t | vector ) |
Sets the interrupt vector for the specified statusType interrupt.
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]). |
statusType | : (Input) The type of interrupt to set the vector on. |
vector | : (Input) Unique interrupt vector to be used to identify the interrupt in the Interrupt Service Routine (ISR). |