|
int32_t | Run_DIF_BasicOps (int32_t cardIndex, int32_t module, int32_t ModuleID) |
| Run_DIF_BasicOps 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.
|
|
static void | Cfg_DIF_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel) |
| Cfg_DIF_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 basic operation.
|
|
static nai_status_t | Display_DIF_Status (int32_t paramCount, int32_t *p_params) |
| Display_DIF_Status illustrate the methods to call in the naibrd library to retrieve the status states.
|
|
static nai_status_t | Clear_DIF_Status (int32_t paramCount, int32_t *p_params) |
| Clear_DIF_Status illustrate the methods to call in the naibrd library to clear the latched status states.
|
|
static nai_status_t | Configure_DIF_IOFormat (int32_t paramCount, int32_t *p_params) |
| Configure_DIF_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_DIF_OutputState (int32_t paramCount, int32_t *p_params) |
| Configure_DIF_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.
|
|
int32_t | DIF_BasicOps (void) |
| The purpose of the DIF_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.
|
|
int32_t DIF_BasicOps |
( |
void | | ) |
|
The purpose of the DIF_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.
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.
- ClearDeviceCfg
- QuerySystemCfg
- DisplayDeviceCfg
- GetBoardSNModCfg
- SaveDeviceCfg