|
static int32_t | Run_DT_BasicOps (int32_t cardIndex, int32_t module, uint32_t modid) |
| Run_DT_BasicOps prompts the user for the card, module and channel to use for the application and calls Cfg_DT_Channel if the card, module, channel is valid for as a discrete module.
|
|
static void | Verify_DT_ParamCnt (int32_t paramCnt) |
| Verify_DT_ParamCnt verifies parameter count and displays error message if invalid.
|
|
static void | Cfg_DT_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel) |
| Cfg_DT_Channel handles calling the Display_DT_ChannelCfg routine to display the discrete channel configuration and calling the routines associated with the user's menu commands.
|
|
static void | Display_DT_ChannelCfg (int32_t cardIndex, int32_t module, int32_t chan, uint32_t ModuleID) |
| Display_DT_ChannelCfg illustrate the methods to call in the naibrd library to retrieve the configuration states for basic operation.
|
|
static nai_status_t | Display_DT_Status (int32_t paramCnt, int32_t *p_params) |
| Display_DT_Status illustrate the methods to call in the naibrd library to retrieve the status states.
|
|
static nai_status_t | Configure_DT_IOFormat (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_IOFormat handles the user request to configure the Input/Output configuration for the selected channel and calls the method in the naibrd library to set the Input/Output mode.
|
|
static nai_status_t | Configure_DT_OutputState (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_OutputState handles the user request to set the Output state for the selected channel and calls the method in the naibrd library to set the Output state.
|
|
static nai_status_t | Configure_DT_MinLoThreshold (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_MinLoThreshold calls the Configure_DT_Threshold() routine for Min Low Threshold configuration.
|
|
static nai_status_t | Configure_DT_LowThreshold (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_LowThreshold calls the Configure_DT_Threshold() routine for Lower Threshold configuration.
|
|
static nai_status_t | Configure_DT_UpperThreshold (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_UpperThreshold calls the Configure_DT_Threshold() routine for Upper Threshold configuration.
|
|
static nai_status_t | Configure_DT_MaxHiThreshold (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_MaxHiThreshold calls the Configure_DT_Threshold() routine for Max High Threshold configuration.
|
|
static nai_status_t | Configure_DT_Threshold (int32_t paramCnt, int32_t *p_params, naibrd_dt_thresh_type_t thresholdtype, int8_t *thresholdtext) |
| Configure_DT_Threshold handles the user request to configure the selected threshold configuration and channel and calls the method in the naibrd library to set the threshold voltage.
|
|
static nai_status_t | Configure_DT_Debounce (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_Threshold handles the user request to configure the selected threshold configuration and channel and calls the method in the naibrd library to set the threshold voltage.
|
|
static nai_status_t | Configure_DT_Floating (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_Floating handles the user request to set the floating point enable and calls the method in the naibrd library to set the floating point state.
|
|
static nai_status_t | Configure_DT_BITThresholds (int32_t paramCnt, int32_t *p_params) |
| Configure_DT_BITThresholds() allows the user to set and get the BIT error thresholds. This is an advanced feature.
|
|
static nai_status_t | Configure_DT_ChannelStatusEnable (int32_t paramCount, int32_t *params) |
| This function Enables\Disables the reporting of the Channel Status. When enabled, the user will get status updates. When disabled, the statuses will not report and status-based interrupts will not assert.
|
|
static nai_status_t | Configure_DT_CheckPBITComplete (int32_t paramCount, int32_t *p_params) |
| Configure_DT_CheckPBITComplete handles the user request to check the module power-on BIT completed state and calls the method in the naibrd library to check the power-on BIT completed state. If the power-on BIT completed state is set, meaning that power-on BIT has completed, the Latched BIT Status of each channel is checked by calling the method in the naibrd library to read the BIT Status.
|
|
static nai_status_t | Configure_DT_ClearModuleBITLogic (int32_t paramCount, int32_t *p_params) |
| Configure_DT_ClearModuleBITLogic handles the user request to clear the module BIT logic, which resets the Continuous BIT internal circuitry and counter, and calls the method in the naibrd library to clear the module BIT logic.
|
|
static bool_t | configurable_DT_IOFormat (uint32_t ModuleID, int32_t chan) |
| configurable_DT_IOFormat determines whether the channel selected for the given Discrete Module ID is capable of being programmed for high side and push-pull output configurations.
|
|
static bool_t | configurable_DT_Output (uint32_t ModuleID, int32_t chan) |
| configurable_DT_Output determines whether the channel selected for the given Discrete Module ID is capable of being configured as an output channel.
|
|
static nai_status_t | Configure_DT_ModulePowerResetMenu (int32_t paramCount, int32_t *p_params) |
| Handle_DT_ModulePowerResetMenu displays the menu for module power reset commands.
|
|
static nai_status_t | Configure_DT_ClearModulePowerResetStatus (int32_t paramCount, int32_t *p_params) |
| Handle_DT_ClearModulePowerResetStatus handles the user request to clear the module power reset status and calls the method in the naibrd library to clear the module power reset status. The user is prompted for the module power reset status type to clear.
|
|
static nai_status_t | Configure_DT_SetModulePowerReset (int32_t paramCount, int32_t *p_params) |
| Handle_DT_SetModulePowerReset handles the user request to set the module power reset request and calls the method in the naibrd library to set the module power reset request. The user is prompted for the module power reset request type to set, and then the user is prompted to set or reset the request bit.
|
|
static nai_status_t | Handle_DT_WatchdogShowMenu (int32_t paramCount, int32_t *params) |
| This function displays the menu for watchdog commands.
|
|
static nai_status_t | Handle_DT_WatchDogQuietTime (int32_t paramCount, int32_t *params) |
| This function sets the watchdog quiet time for the module. The user is prompted for the value in ms.
|
|
static nai_status_t | Handle_DT_WatchDogWindowTime (int32_t paramCount, int32_t *params) |
| This function sets the watchdog window time for the module. The user is prompted for the value in ms.
|
|
static nai_status_t | Handle_DT_DisplayWatchdog (int32_t paramCount, int32_t *params) |
| This function displays the DT Watchdog Operations data.
|
|
static nai_status_t | Handle_DT_StrobeWatchdog (int32_t paramCount, int32_t *params) |
| This function will start a thread to continuously Strobe the watchdog. The user is prompted for the value in ms. NOTE: When this thread/application exits the module will shut off all outputs and will need to be power cycled in order to be operational.
|
|
static nai_status_t | Handle_DT_kill_WDStrobe_Thread (int32_t paramCount, int32_t *params) |
| This function will terminate the WD Strobing thread. Module will shut off outputs at this state and will need to be power cycled to be operational.
|
|
static void | naiapp_kill_WDStrobe_Thread () |
| This function will terminate the WD strobing thread. Module will shut off outputs at this state and will need to be power cycled to be operational.
|
|
DWORD WINAPI | WD_Strobe_ThreadEntryPoint (LPVOID param) void *WD_Strobe_ThreadEntryPoint(void *param) static int WD_Strobe_ThreadEntryPoint(int32_t param) |
| This function will continuously loop, strobing the watchdog every QuietTime + Window/2.
|
|
void * | WD_Strobe_ThreadEntryPoint (void *arg) |
|
static int | WD_Strobe_ThreadEntryPoint (int32_t nParam) |
|
int32_t | DT_BasicOps (void) |
| The purpose of the DT_BasicOps is to illustrate the methods to call in the naibrd library to perform basic operations with the discrete modules for configuration setup, controlling the drive outputs, and reading the channels.
|
|