Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
LL2_basic_ops.c File Reference

Enumerations

enum  LL2_basicOpsMenu_commands {
  LL2_BASICMENU_CMD_CONFIG_DLV_DATA , LL2_BASICMENU_CMD_SEND_DLV_DATA , LL2_BASICMENU_CMD_REQUEST_LVD_DATA , LL2_BASICMENU_CMD_SET_UPDATE_RATE ,
  LL2_BASICMENU_CMD_RESET_CRC_ERROR_COUNT , LL2_BASICMENU_CMD_COUNT
}
 

Functions

static nai_status_t Run_LL2BasicMenu (int32_t cardIndex, int32_t module, uint32_t modId)
 Run_LVDTBasicMenu illustrates the channel configuration and prepares the menu which will handle user command requests. Returns NAI_TRUE if the user enters the Quit Command at any point within its scope.
 
static nai_status_t LL2BasicMenu_displayInfo (int32_t cardIndex, int32_t module, uint32_t modId)
 
static nai_status_t LL2BasicMenu_ConfigDLVCmdData (int32_t paramCount, int32_t *p_params)
 
static nai_status_t LL2BasicMenu_SendDLVData (int32_t paramCount, int32_t *p_params)
 
static nai_status_t LL2BasicMenu_RequestLVDData (int32_t paramCount, int32_t *p_params)
 
static nai_status_t LL2BasicMenu_SetUpdateRate (int32_t paramCount, int32_t *p_params)
 
static nai_status_t LL2BasicMenu_ResetCRCErrorCount (int32_t paramCount, int32_t *p_params)
 
int32_t LL2_BasicOps (void)
 The purpose of the LVDT_BasicOpsMenu is to illustrate the methods to call in the naibrd library to perform basic operations with the LVDT modules for configuration setup and reading the channels.
 

Variables

static const int8_t * DEF_CONFIG_FILE = (const int8_t *)"default_LL2_BasicOps.txt"
 
static naiapp_cmdtbl_params_t LL2_BasicOpMenuCmds []
 

Enumeration Type Documentation

◆ LL2_basicOpsMenu_commands

Enumerator
LL2_BASICMENU_CMD_CONFIG_DLV_DATA 
LL2_BASICMENU_CMD_SEND_DLV_DATA 
LL2_BASICMENU_CMD_REQUEST_LVD_DATA 
LL2_BASICMENU_CMD_SET_UPDATE_RATE 
LL2_BASICMENU_CMD_RESET_CRC_ERROR_COUNT 
LL2_BASICMENU_CMD_COUNT 

Function Documentation

◆ LL2_BasicOps()

int32_t LL2_BasicOps ( void )

The purpose of the LVDT_BasicOpsMenu is to illustrate the methods to call in the naibrd library to perform basic operations with the LVDT modules for configuration setup 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 LVDT routines.

  • ConfigDevice
  • DisplayDeviceCfg
  • GetBoardSNModCfg
  • CheckModule

◆ LL2BasicMenu_ConfigDLVCmdData()

static nai_status_t LL2BasicMenu_ConfigDLVCmdData ( int32_t paramCount,
int32_t * p_params )
static

◆ LL2BasicMenu_displayInfo()

static nai_status_t LL2BasicMenu_displayInfo ( int32_t cardIndex,
int32_t module,
uint32_t modId )
static

◆ LL2BasicMenu_RequestLVDData()

static nai_status_t LL2BasicMenu_RequestLVDData ( int32_t paramCount,
int32_t * p_params )
static

◆ LL2BasicMenu_ResetCRCErrorCount()

static nai_status_t LL2BasicMenu_ResetCRCErrorCount ( int32_t paramCount,
int32_t * p_params )
static

◆ LL2BasicMenu_SendDLVData()

static nai_status_t LL2BasicMenu_SendDLVData ( int32_t paramCount,
int32_t * p_params )
static

◆ LL2BasicMenu_SetUpdateRate()

static nai_status_t LL2BasicMenu_SetUpdateRate ( int32_t paramCount,
int32_t * p_params )
static

◆ Run_LL2BasicMenu()

static nai_status_t Run_LL2BasicMenu ( int32_t cardIndex,
int32_t module,
uint32_t modId )
static

Run_LVDTBasicMenu illustrates the channel configuration and prepares the menu which will handle user command requests. Returns NAI_TRUE if the user enters the Quit Command at any point within its scope.

Variable Documentation

◆ DEF_CONFIG_FILE

const int8_t* DEF_CONFIG_FILE = (const int8_t *)"default_LL2_BasicOps.txt"
static

◆ LL2_BasicOpMenuCmds

naiapp_cmdtbl_params_t LL2_BasicOpMenuCmds[]
static
Initial value:
=
{
{"DLV_Config", "Configure DLV Data", LL2_BASICMENU_CMD_CONFIG_DLV_DATA, LL2BasicMenu_ConfigDLVCmdData },
{"LVD_Request","Request LVD Data", LL2_BASICMENU_CMD_REQUEST_LVD_DATA, LL2BasicMenu_RequestLVDData },
{"UpdateRate", "Set Update Rate", LL2_BASICMENU_CMD_SET_UPDATE_RATE, LL2BasicMenu_SetUpdateRate },
}
static nai_status_t LL2BasicMenu_RequestLVDData(int32_t paramCount, int32_t *p_params)
Definition LL2_basic_ops.c:309
static nai_status_t LL2BasicMenu_ConfigDLVCmdData(int32_t paramCount, int32_t *p_params)
Definition LL2_basic_ops.c:193
@ LL2_BASICMENU_CMD_SEND_DLV_DATA
Definition LL2_basic_ops.c:38
@ LL2_BASICMENU_CMD_RESET_CRC_ERROR_COUNT
Definition LL2_basic_ops.c:41
@ LL2_BASICMENU_CMD_SET_UPDATE_RATE
Definition LL2_basic_ops.c:40
@ LL2_BASICMENU_CMD_CONFIG_DLV_DATA
Definition LL2_basic_ops.c:37
@ LL2_BASICMENU_CMD_REQUEST_LVD_DATA
Definition LL2_basic_ops.c:39
static nai_status_t LL2BasicMenu_SetUpdateRate(int32_t paramCount, int32_t *p_params)
Definition LL2_basic_ops.c:351
static nai_status_t LL2BasicMenu_SendDLVData(int32_t paramCount, int32_t *p_params)
Definition LL2_basic_ops.c:267
static nai_status_t LL2BasicMenu_ResetCRCErrorCount(int32_t paramCount, int32_t *p_params)
Definition LL2_basic_ops.c:370