![]() |
Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
static void | Run_TTL_PWM (int32_t cardIndex, int32_t module, uint32_t modid) |
Run_TTL_PWM prompts the user for the card, module and channel to use for the application and calls Cfg_TTL_PWM_Channel if the card, module, channel is valid for as a discrete module. | |
static void | Cfg_TTL_PWM_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel) |
Cfg_TTL_PWM_Channel handles calling the Display_TTL_PWM_ChannelCfg routine to display the discrete channel configuration and calling the routines associated with the user's menu commands. | |
static nai_status_t | Display_TTL_PWM_Configuration (int32_t paramCnt, int32_t *p_params) |
Display_TTL_PWM_Configuration illustrate the methods to call in the naibrd library to retrieve the PWM configuration settings. | |
static nai_status_t | Display_TTL_Status (int32_t paramCnt, int32_t *p_params) |
Display_TTL_Status illustrate the methods to call in the naibrd library to retrieve the status settings. | |
static nai_status_t | Configure_TTL_PWM_Mode (int32_t paramCnt, int32_t *p_params) |
Configure_TTL_PWM_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 | Configure_TTL_PWM_Polarity (int32_t paramCnt, int32_t *p_params) |
Configure_TTL_PWM_Polarity handles the user request to select the PWM output polarity for the selected channel and calls the method in the naibrd library for the setting. | |
static nai_status_t | Configure_TTL_PWM_Period (int32_t paramCnt, int32_t *p_params) |
Configure_TTL_PWM_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_TTL_PWM_Pulsewidth (int32_t paramCnt, int32_t *p_params) |
Configure_TTL_PWM_Pulsewidth handles the user request to configure the time values for pulsewidth on the selected channel and calls the method in the naibrd library to set the width. | |
static nai_status_t | Configure_TTL_PWM_Burstcount (int32_t paramCnt, 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 void | Verify_TTL_ParamCnt (int32_t paramCnt) |
Verify_TTL_ParamCnt verifies parameter count and displays error message if invalid. | |
int32_t | TTL_PWM (void) |
The purpose of the TTL_PWM is to illustrate the methods to call in the naibrd library to perform configuration setup for output in PWM operation mode. Pulse period, pulse width, pulse polarity settings are configurable. | |
Variables | |
static const int8_t * | DEF_CONFIG_FILE = (const int8_t *)"default_TTL_PWM.txt" |
static const int32_t | DEF_TTL_CARD_INDEX = 0 |
static const int32_t | DEF_TTL_MODULE = 1 |
static const int32_t | DEF_TTL_CHANNEL = 1 |
static naiapp_cmdtbl_params_t | TTL_PWM_MenuCmds [] |
enum ttl_pwm_commands |
|
static |
Cfg_TTL_PWM_Channel handles calling the Display_TTL_PWM_ChannelCfg routine to display the discrete channel configuration and calling the routines associated with the user's menu commands.
|
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_TTL_PWM_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_TTL_PWM_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_TTL_PWM_Polarity handles the user request to select the PWM output polarity for the selected channel and calls the method in the naibrd library for the setting.
|
static |
Configure_TTL_PWM_Pulsewidth handles the user request to configure the time values for pulsewidth on the selected channel and calls the method in the naibrd library to set the width.
|
static |
Display_TTL_PWM_Configuration illustrate the methods to call in the naibrd library to retrieve the PWM configuration settings.
|
static |
Display_TTL_Status illustrate the methods to call in the naibrd library to retrieve the status settings.
|
static |
Run_TTL_PWM prompts the user for the card, module and channel to use for the application and calls Cfg_TTL_PWM_Channel if the card, module, channel is valid for as a discrete module.
int32_t TTL_PWM | ( | void | ) |
The purpose of the TTL_PWM is to illustrate the methods to call in the naibrd library to perform configuration setup for output in PWM operation mode. Pulse period, pulse width, pulse polarity settings are 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 TTL routines.
|
static |
Verify_TTL_ParamCnt verifies parameter count and displays error message if invalid.
|
static |
|
static |
|
static |
|
static |
|
static |