Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
void | Run_DIF_FIFO (int32_t cardIndex, int32_t module, int32_t ModuleID) |
Run_DIF_FIFO prompts the user for the card, module and channel to use for the application and calls Cfg_DIF_Channel if the card, module, channel is valid for as a discrete module. | |
void | Cfg_DIF_FIFO_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel) |
Cfg_DIF_FIFO_Channel handles calling the Display_DIF_ChannelCfg routine to display the discrete channel configuration and calling the routines associated with the user's menu commands. | |
static void | Display_DIF_ChannelCfg (int32_t cardIndex, int32_t module, int32_t chan, uint32_t ModuleID) |
Display_DIF_ChannelCfg illustrate the methods to call in the naibrd library to retrieve the configuration states for measurement operation. | |
nai_status_t | Configure_DIF_FIFO_Mode (int32_t paramCount, int32_t *p_params) |
Configure_DIF_FIFO_Mode handles the user request to select the FIFO mode for the selected channel and calls the method in the naibrd library to set the mode. | |
nai_status_t | Start_DIF_FIFO (int32_t paramCount, int32_t *p_params) |
Start_DIF_FIFO must be called in order to start the FIFO in a particular mode. | |
nai_status_t | Clear_DIF_FIFO (int32_t paramCount, int32_t *p_params) |
Clear_DIF_FIFO should be called before naibrd_DIF_StartMeasurement to clear out old data. | |
nai_status_t | Get_DIF_FIFO_Data (int32_t paramCount, int32_t *p_params) |
Get_DIF_FIFO_Data reads back the data on the FIFO. | |
nai_status_t | Configure_DIF_Counter_Interval (int32_t paramCount, int32_t *p_params) |
Configure_DIF_Counter_Interval will configure DIF module gating interval for measurement of counts within the user defined interval. | |
nai_status_t | Get_DIF_FIFO_Status (int32_t paramCount, int32_t *p_params) |
Get_DIF_FIFO_Status will read back the value of the counter if the FIFO is configured for opmode 6,7, or 8. | |
nai_status_t | Get_DIF_FIFO_Count (int32_t paramCount, int32_t *p_params) |
Get_DIF_FIFO_Count will read back the value of the counter if the FIFO is configured for opmode 6,7, or 8. | |
int32_t | DIF_FIFO (void) |
The purpose of the DIF_FIFO is to illustrate the methods to call in the naibrd library to perform DIF enhanced FIFO mode. This example code will configure DIF FIFO to desired mode, start, stop and display the DIF FIFO. | |
Variables | |
static const int8_t * | CONFIG_FILE = (int8_t *)"default_DIF_Measure.txt" |
static const int32_t | DEF_DIF_CARD_INDEX = 0 |
static const int32_t | DEF_DIF_MODULE = 1 |
static const int32_t | DEF_DIF_CHANNEL = 1 |
naiapp_cmdtbl_params_t | DIF_FIFO_MenuCmds [] |
enum dif_fifo_commands |
void Cfg_DIF_FIFO_Channel | ( | int32_t | cardIndex, |
int32_t | module, | ||
uint32_t | ModuleID, | ||
int32_t | MaxChannel ) |
Cfg_DIF_FIFO_Channel handles calling the Display_DIF_ChannelCfg routine to display the discrete channel configuration and calling the routines associated with the user's menu commands.
nai_status_t Clear_DIF_FIFO | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Clear_DIF_FIFO should be called before naibrd_DIF_StartMeasurement to clear out old data.
nai_status_t Configure_DIF_Counter_Interval | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Configure_DIF_Counter_Interval will configure DIF module gating interval for measurement of counts within the user defined interval.
nai_status_t Configure_DIF_FIFO_Mode | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Configure_DIF_FIFO_Mode handles the user request to select the FIFO mode for the selected channel and calls the method in the naibrd library to set the mode.
int32_t DIF_FIFO | ( | void | ) |
The purpose of the DIF_FIFO is to illustrate the methods to call in the naibrd library to perform DIF enhanced FIFO mode. This example code will configure DIF FIFO to desired mode, start, stop and display the DIF FIFO.
The following system configuration routines from the nai_sys_cfg.c file are called to assist with the configuration setup for this program prior to calling the naibrd DIF routines.
|
static |
Display_DIF_ChannelCfg illustrate the methods to call in the naibrd library to retrieve the configuration states for measurement operation.
nai_status_t Get_DIF_FIFO_Count | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Get_DIF_FIFO_Count will read back the value of the counter if the FIFO is configured for opmode 6,7, or 8.
nai_status_t Get_DIF_FIFO_Data | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Get_DIF_FIFO_Data reads back the data on the FIFO.
nai_status_t Get_DIF_FIFO_Status | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Get_DIF_FIFO_Status will read back the value of the counter if the FIFO is configured for opmode 6,7, or 8.
void Run_DIF_FIFO | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | ModuleID ) |
Run_DIF_FIFO prompts the user for the card, module and channel to use for the application and calls Cfg_DIF_Channel if the card, module, channel is valid for as a discrete module.
nai_status_t Start_DIF_FIFO | ( | int32_t | paramCount, |
int32_t * | p_params ) |
Start_DIF_FIFO must be called in order to start the FIFO in a particular mode.
|
static |
|
static |
|
static |
|
static |
naiapp_cmdtbl_params_t DIF_FIFO_MenuCmds[] |