Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
void | Run_DIF_PatternGenerator (int32_t cardIndex, int32_t module, int32_t ModuleID) |
Run_DIF_PatternGenerator prompts the user for the card, module and channel to use for the application and calls Cfg_DIF_PatternGen_Channel if the card, module, channel is valid for as a TLL module. | |
void | Cfg_DIF_PatternGen_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel) |
Cfg_DIF_PatternGen_Channel handles calling the Display_DIF_PatternGen_ChannelCfg routine to display the DIF channel configuration and calling the routines associated with the user's menu commands. | |
void | Display_DIF_PatternGen_ChannelCfg (int32_t cardIndex, int32_t module, int32_t chan, uint32_t ModuleID) |
Display_DIF_PatternGen_ChannelCfg illustrate the methods to call in the naibrd library to retrieve the configuration states for basic operation. | |
static nai_status_t | Configure_DIF_PatternGen_StartAddr (int32_t paramCount, int32_t *p_params) |
Configure_DIF_PatternGen_StartAddr handles the user request to configure the time values for period on the selected channel and calls the method in the naibrd library to set the period. | |
static nai_status_t | Configure_DIF_PatternGen_EndAddr (int32_t paramCount, int32_t *p_params) |
Configure_DIF_PatternGen_EndAddr handles the user request to configure the time values for period on the selected channel and calls the method in the naibrd library to set the period. | |
static nai_status_t | Configure_DIF_PatternGen_Period (int32_t paramCount, int32_t *p_params) |
Configure_DIF_PatternGen_Period handles the user request to configure the time values for period on the selected channel and calls the method in the naibrd library to set the period. | |
static nai_status_t | Configure_DIF_PatternGen_Burstcount (int32_t paramCount, int32_t *p_params) |
Handles the user request to set the burst count value for the number of pulses to be issued upon trigger in PWM burst mode operation on the selected channel, calling the method in the naibrd library to set the burst number. | |
static nai_status_t | Configure_DIF_PatternGen_Mode (int32_t paramCount, int32_t *p_params) |
Configure_DIF_PatternGen_Mode handles the user request to select the PWM mode for the selected channel and calls the method in the naibrd library to set the mode. | |
static nai_status_t | Load_DIF_PatternGenArray (int32_t paramCount, int32_t *p_params) |
Load_DIF_PatternGenArray loads the pattern from a file and illustrate the methods to call in the naibrd library to set the pattern data. Channel independent, array covers all channels. | |
static nai_status_t | Configure_DIF_ControlEnable (int32_t paramCount, int32_t *p_params) |
Configure_DIF_ControlEnable handles the user request to change the switch state for the selected channel and calls the method in the naibrd library to set the state. | |
static nai_status_t | Configure_DIF_ControlPause (int32_t paramCount, int32_t *p_params) |
Configure_DIF_ControlPause handles the user request to change the switch state for the selected channel and calls the method in the naibrd library to set the state. | |
static nai_status_t | Display_DIF_PatternGen_Configuration (int32_t paramCount, int32_t *p_params) |
Display_DIF_PatternGen_Configuration illustrate the methods to call in the naibrd library to retrieve the PWM configuration settings. | |
static nai_status_t | Display_DIF_Status (int32_t paramCount, int32_t *p_params) |
Display_DSW_Status illustrate the methods to call in the naibrd library to retrieve the status states. | |
int32_t | DIF_PatternGenerator (void) |
The purpose of the DIF_PatternGenerator is to illustrate the methods to call in the naibrd library to perform configuration setup for output in Pattern Generator operation mode. Pattern generator period setting is configurable. | |
Variables | |
static const int8_t * | CONFIG_FILE = (int8_t *)"default_DIF_PatternGenerator.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_PatternGen_MenuCmds [] |
void Cfg_DIF_PatternGen_Channel | ( | int32_t | cardIndex, |
int32_t | module, | ||
uint32_t | ModuleID, | ||
int32_t | MaxChannel ) |
Cfg_DIF_PatternGen_Channel handles calling the Display_DIF_PatternGen_ChannelCfg routine to display the DIF channel configuration and calling the routines associated with the user's menu commands.
|
static |
Configure_DIF_ControlEnable handles the user request to change the switch state for the selected channel and calls the method in the naibrd library to set the state.
|
static |
Configure_DIF_ControlPause handles the user request to change the switch state for the selected channel and calls the method in the naibrd library to set the state.
|
static |
Handles the user request to set the burst count value for the number of pulses to be issued upon trigger in PWM burst mode operation on the selected channel, calling the method in the naibrd library to set the burst number.
|
static |
Configure_DIF_PatternGen_EndAddr handles the user request to configure the time values for period on the selected channel and calls the method in the naibrd library to set the period.
|
static |
Configure_DIF_PatternGen_Mode handles the user request to select the PWM mode for the selected channel and calls the method in the naibrd library to set the mode.
|
static |
Configure_DIF_PatternGen_Period handles the user request to configure the time values for period on the selected channel and calls the method in the naibrd library to set the period.
|
static |
Configure_DIF_PatternGen_StartAddr handles the user request to configure the time values for period on the selected channel and calls the method in the naibrd library to set the period.
int32_t DIF_PatternGenerator | ( | void | ) |
The purpose of the DIF_PatternGenerator is to illustrate the methods to call in the naibrd library to perform configuration setup for output in Pattern Generator operation mode. Pattern generator period setting is configurable.
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.
void Display_DIF_PatternGen_ChannelCfg | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | chan, | ||
uint32_t | ModuleID ) |
Display_DIF_PatternGen_ChannelCfg illustrate the methods to call in the naibrd library to retrieve the configuration states for basic operation.
|
static |
Display_DIF_PatternGen_Configuration illustrate the methods to call in the naibrd library to retrieve the PWM configuration settings.
|
static |
Display_DSW_Status illustrate the methods to call in the naibrd library to retrieve the status states.
|
static |
Load_DIF_PatternGenArray loads the pattern from a file and illustrate the methods to call in the naibrd library to set the pattern data. Channel independent, array covers all channels.
void Run_DIF_PatternGenerator | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | ModuleID ) |
Run_DIF_PatternGenerator prompts the user for the card, module and channel to use for the application and calls Cfg_DIF_PatternGen_Channel if the card, module, channel is valid for as a TLL module.
|
static |
|
static |
|
static |
|
static |
naiapp_cmdtbl_params_t DIF_PatternGen_MenuCmds[] |