Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
#include <stdlib.h>
#include "functions/naibrd_modCommon.h"
#include "functions/naibrd_scg.h"
#include "maps/nai_map_modCommon.h"
#include "maps/nai_map_scg.h"
#include "naibrd_config.h"
#include "boards/naibrd_gen5.h"
Functions | |
NAIBRDFUNC int32_t NAIAPI | naibrd_SCG_GetChannelCount (uint32_t modid) |
Returns the number of channels for the specified SCG Module ID. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_SetControl (int32_t cardIndex, int32_t module, int32_t channel, nai_scg_control_t control, bool_t enable) |
Sets the control operation for the specified SCG channel. Operations can be OR'd together to enable/disable multiple operations at once. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetControl (int32_t cardIndex, int32_t module, int32_t channel, nai_scg_control_t control, bool_t *p_outenable) |
Retrieves the controls' state for the specified SCG channel. Operations can be OR'd together to access multiple operations at once. A return value of TRUE indicates ALL operations specifed are enabled, FALSE indicates at least one operation specified is disabled. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_SetTxData (int32_t cardIndex, int32_t module, int32_t channel, uint32_t txData) |
Sets the data that is to be serialized and shifted out for the specified channel. Only bits B0-B16 are valid, all others are ignored. The actual data pattern that is outputted is the data in this register with a hard-coded 7 bit preamble. Data is shifted out from B16 (first) to B0 (last). | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetTxData (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outtxData) |
Retrieves the data that is to be serialized and shifted out for the specified channel. Only bits B0-B16 are valid, all others are ignored. The actual data pattern that is outputted is the data in this register with a hard-coded 7 bit preamble. Data is shifted out from B16 (first) to B0 (last). | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetBITStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_status_access_type_t type, bool_t *p_outBITStatus) |
Retrieves the BIT status for the specified SCG channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_ClearBITStatus (int32_t cardIndex, int32_t module, int32_t channel) |
Clears the specified latched BIT Status bits for the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetChannelStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_status_access_type_t type, nai_scg_status_t *p_outchannelStatus) |
Retrieves the status for the specified SCG channel with the output specified as follows: | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_ClearChannelStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_scg_status_t chanStatus) |
Clears the specified latched Channel Status bits from chanStatus. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_SetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_scg_status_t intEnable) |
Sets the Interrupt Enable register value for the specified SCG channel. Setting the bits to 1 enables interrupts. Status is reported in the Interrupt Status register. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, nai_scg_status_t *p_outIntEnable) |
Retrieves the Interrupt Enable register value for the specified SCG channel. Setting the bits to 1 enabled interrupts. Status is reported in the Interrupt Status register. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_SetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, uint32_t edgeLevel) |
Sets the Interrupt Edge/Level register value for the specified SCG channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outEdgeLevel) |
Retrieves the Interrupt Edge/Level register value for the specified SCG channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_SetInterruptVector (int32_t cardIndex, int32_t module, int32_t channel, uint32_t vector) |
Sets the interrupt vector for the specified SCG channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetInterruptVector (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outvector) |
Retrieves the interrupt vector for the specified SCG channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_SetInterruptSteering (int32_t cardIndex, int32_t module, int32_t channel, naibrd_int_steering_t steering) |
Sets the Interrupt Steering which indicates the interrupt direction for the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SCG_GetInterruptSteering (int32_t cardIndex, int32_t module, int32_t channel, naibrd_int_steering_t *p_outsteering) |
Retrieves the Interrupt Steering which indicates the interrupt direction for the specified channel. | |