|
static void | Verify_TTL_ParamCnt (int32_t paramCnt) |
| Verify_TTL_ParamCnt verifies parameter count and displays error message if invalid.
|
|
static int32_t | Run_TTL_FIFO (int32_t cardIndex, int32_t module, uint32_t modid) |
| Run_TTL_FIFO prompts the user for the card, module and channel to use for the application and calls Cfg_TTL_Channel if the card, module, channel is valid for as a discrete module.
|
|
void | Cfg_TTL_FIFO_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel) |
| Cfg_TTL_FIFO_Channel handles calling the Display_TTL_ChannelCfg routine to display the discrete channel configuration and calling the routines associated with the user's menu commands.
|
|
static void | Display_TTL_ChannelCfg (int32_t cardIndex, int32_t module, int32_t chan) |
| Display_TTL_ChannelCfg illustrate the methods to call in the naibrd library to retrieve the configuration states for measurement operation.
|
|
static nai_status_t | Configure_TTL_Counter_Interval (int32_t paramCnt, int32_t *p_params) |
| Configure_TTL_Counter_Interval will configure DT module gating interval for measurement of counts within the user defined interval.
|
|
static nai_status_t | Configure_TTL_FIFO_Mode (int32_t paramCnt, int32_t *p_params) |
| Configure_TTL_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.
|
|
static nai_status_t | Get_TTL_FIFO_Data (int32_t paramCnt, int32_t *p_params) |
| Get_TTL_FIFO_Data reads back the data on the FIFO.
|
|
static nai_status_t | Get_TTL_FIFO_Status (int32_t paramCnt, int32_t *p_params) |
| Get_TTL_FIFO_Status will read back the value of the counter if the FIFO is configured for opmode 6,7, or 8.
|
|
static nai_status_t | Configure_TTL_Debounce (int32_t paramCnt, int32_t *p_params) |
| Configure_TTL_Debounce handles the user request to configure the values for debounce time on the selected channel and calls the method in the naibrd library to set the debounce.
|
|
int32_t | TTL_Measure (void) |
| The purpose of the TTL_Measure 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 TTL_Measure |
( |
void | | ) |
|
The purpose of the TTL_Measure 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 DT routines.
- ClearDeviceCfg
- QuerySystemCfg
- DisplayDeviceCfg
- GetBoardSNModCfg
- SaveDeviceCfg