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

Enumerations

enum  dl_basicOpsMenu_commands {
  DL_BASICMENU_CMD_SET_CHAN_STATUS_ENABLE , DL_BASICMENU_CMD_SET_POWER_STATE , DL_BASICMENU_CMD_SET_CHANNEL_OUTPUT , DL_BASICMENU_CMD_SET_POSITION ,
  DL_BASICMENU_CMD_SET_CONFIGURATION , DL_BASICMENU_CMD_CLEAR_STATUS , DL_BASICMENU_CMD_SET_TEST_ENABLE , DL_BASICMENU_CMD_SET_D2_TEST_VERIFY_VALUE ,
  DL_BASICMENU_CMD_RUN_FLOATING_POINT_MENU , DL_BASICMENU_CMD_SET_DISPLAY_HEX , DL_BASICMENU_CMD_COUNT
}
 
enum  dl_floatingPointMenu_commands {
  DL_FLOATINGPOINTMENU_CMD_SET_FLOATING_POINT_ENABLE , DL_FLOATINGPOINTMENU_CMD_SET_POSITION_A_SCALE , DL_FLOATINGPOINTMENU_CMD_SET_POSITION_B_SCALE , DL_FLOATINGPOINTMENU_CMD_SET_POSITION_A_OFFSET ,
  DL_FLOATINGPOINTMENU_CMD_SET_POSITION_B_OFFSET , DL_FLOATINGPOINTMENU_CMD_COUNT
}
 

Functions

static bool_t DLBasicMenu_Run (int32_t cardIndex, int32_t module, uint32_t modid)
 
static void DLBasicMenu_DisplayMeasurements (int32_t cardIndex, int32_t module, uint32_t modid)
 
static nai_status_t DL_BasicMenu_SetChanStatusEnable (int32_t paramCount, int32_t *p_params)
 
static bool_t DLBasicMenu_SetPowerState (int32_t cardIndex, int32_t module, int32_t channel)
 
static nai_status_t DLBasicMenu_SetChannelOutput (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_BasicMenu_SetPosition (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_BasicMenu_SetConfiguration (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_BasicMenu_ClearStatus (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_BasicMenu_SetTestEnable (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_BasicMenu_SetD2TestVerifyValue (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_BasicMenu_RunFloatingPointMenu (int32_t paramCount, int32_t *p_params)
 
static void DL_Display_FloatingPointMenu (int32_t cardIndex, int32_t module, uint32_t modId)
 
static nai_status_t DL_FloatingPointMenu_SetFloatingPointEnable (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_FloatingPointMenu_SetPositionAScale (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_FloatingPointMenu_SetPositionBScale (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_FloatingPointMenu_SetPositionAOffset (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DL_FloatingPointMenu_SetPositionBOffset (int32_t paramCount, int32_t *p_params)
 
int32_t DL_BasicOpsMenu (void)
 

Variables

static const int8_t * SAMPLE_PGM_NAME = (int8_t*) "DL Module Basic Operation Program"
 
static const int8_t * CONFIG_FILE = (int8_t*) "default_DL_BasicOps.txt"
 
static bool_t displayHex = NAI_FALSE
 
naiapp_cmdtbl_params_t DL_BasicOpsMenuCmds []
 
naiapp_cmdtbl_params_t DL_FloatingPointMenuCmds []
 

Enumeration Type Documentation

◆ dl_basicOpsMenu_commands

Enumerator
DL_BASICMENU_CMD_SET_CHAN_STATUS_ENABLE 
DL_BASICMENU_CMD_SET_POWER_STATE 
DL_BASICMENU_CMD_SET_CHANNEL_OUTPUT 
DL_BASICMENU_CMD_SET_POSITION 
DL_BASICMENU_CMD_SET_CONFIGURATION 
DL_BASICMENU_CMD_CLEAR_STATUS 
DL_BASICMENU_CMD_SET_TEST_ENABLE 
DL_BASICMENU_CMD_SET_D2_TEST_VERIFY_VALUE 
DL_BASICMENU_CMD_RUN_FLOATING_POINT_MENU 
DL_BASICMENU_CMD_SET_DISPLAY_HEX 
DL_BASICMENU_CMD_COUNT 

◆ dl_floatingPointMenu_commands

Enumerator
DL_FLOATINGPOINTMENU_CMD_SET_FLOATING_POINT_ENABLE 
DL_FLOATINGPOINTMENU_CMD_SET_POSITION_A_SCALE 
DL_FLOATINGPOINTMENU_CMD_SET_POSITION_B_SCALE 
DL_FLOATINGPOINTMENU_CMD_SET_POSITION_A_OFFSET 
DL_FLOATINGPOINTMENU_CMD_SET_POSITION_B_OFFSET 
DL_FLOATINGPOINTMENU_CMD_COUNT 

Function Documentation

◆ DL_BasicMenu_ClearStatus()

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

◆ DL_BasicMenu_RunFloatingPointMenu()

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

◆ DL_BasicMenu_SetChanStatusEnable()

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

◆ DL_BasicMenu_SetConfiguration()

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

◆ DL_BasicMenu_SetD2TestVerifyValue()

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

◆ DL_BasicMenu_SetPosition()

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

◆ DL_BasicMenu_SetTestEnable()

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

◆ DL_BasicOpsMenu()

int32_t DL_BasicOpsMenu ( void )

◆ DL_Display_FloatingPointMenu()

static void DL_Display_FloatingPointMenu ( int32_t cardIndex,
int32_t module,
uint32_t modId )
static

◆ DL_FloatingPointMenu_SetFloatingPointEnable()

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

◆ DL_FloatingPointMenu_SetPositionAOffset()

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

◆ DL_FloatingPointMenu_SetPositionAScale()

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

◆ DL_FloatingPointMenu_SetPositionBOffset()

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

◆ DL_FloatingPointMenu_SetPositionBScale()

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

◆ DLBasicMenu_DisplayMeasurements()

static void DLBasicMenu_DisplayMeasurements ( int32_t cardIndex,
int32_t module,
uint32_t modid )
static

◆ DLBasicMenu_Run()

static bool_t DLBasicMenu_Run ( int32_t cardIndex,
int32_t module,
uint32_t modid )
static

◆ DLBasicMenu_SetChannelOutput()

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

◆ DLBasicMenu_SetPowerState()

static bool_t DLBasicMenu_SetPowerState ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

Variable Documentation

◆ CONFIG_FILE

const int8_t* CONFIG_FILE = (int8_t*) "default_DL_BasicOps.txt"
static

◆ displayHex

bool_t displayHex = NAI_FALSE
static

◆ DL_BasicOpsMenuCmds

naiapp_cmdtbl_params_t DL_BasicOpsMenuCmds[]
Initial value:
=
{
{"2", "Set Power State", DL_BASICMENU_CMD_SET_POWER_STATE, NULL },
{"7", "Enable/Disable D0/D2/D3 Tests", DL_BASICMENU_CMD_SET_TEST_ENABLE, DL_BasicMenu_SetTestEnable },
{"A", "Set Display Mode", DL_BASICMENU_CMD_SET_DISPLAY_HEX, NULL }
}
@ DL_BASICMENU_CMD_SET_TEST_ENABLE
Definition dl_basic_ops.c:52
@ DL_BASICMENU_CMD_SET_CONFIGURATION
Definition dl_basic_ops.c:50
@ DL_BASICMENU_CMD_RUN_FLOATING_POINT_MENU
Definition dl_basic_ops.c:54
@ DL_BASICMENU_CMD_SET_D2_TEST_VERIFY_VALUE
Definition dl_basic_ops.c:53
@ DL_BASICMENU_CMD_SET_POWER_STATE
Definition dl_basic_ops.c:47
@ DL_BASICMENU_CMD_SET_DISPLAY_HEX
Definition dl_basic_ops.c:55
@ DL_BASICMENU_CMD_SET_CHAN_STATUS_ENABLE
Definition dl_basic_ops.c:46
@ DL_BASICMENU_CMD_SET_POSITION
Definition dl_basic_ops.c:49
@ DL_BASICMENU_CMD_CLEAR_STATUS
Definition dl_basic_ops.c:51
@ DL_BASICMENU_CMD_SET_CHANNEL_OUTPUT
Definition dl_basic_ops.c:48
static nai_status_t DL_BasicMenu_SetChanStatusEnable(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:576
static nai_status_t DL_BasicMenu_RunFloatingPointMenu(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1138
static nai_status_t DL_BasicMenu_SetPosition(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:673
static nai_status_t DL_BasicMenu_SetConfiguration(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:737
static nai_status_t DL_BasicMenu_SetD2TestVerifyValue(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1106
static nai_status_t DL_BasicMenu_ClearStatus(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:961
static nai_status_t DL_BasicMenu_SetTestEnable(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1021
static nai_status_t DLBasicMenu_SetChannelOutput(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:638

◆ DL_FloatingPointMenuCmds

naiapp_cmdtbl_params_t DL_FloatingPointMenuCmds[]
Initial value:
=
{
}
static nai_status_t DL_FloatingPointMenu_SetPositionBOffset(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1371
static nai_status_t DL_FloatingPointMenu_SetPositionAOffset(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1337
static nai_status_t DL_FloatingPointMenu_SetPositionBScale(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1303
static nai_status_t DL_FloatingPointMenu_SetPositionAScale(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1269
@ DL_FLOATINGPOINTMENU_CMD_SET_POSITION_B_SCALE
Definition dl_basic_ops.c:63
@ DL_FLOATINGPOINTMENU_CMD_SET_POSITION_A_SCALE
Definition dl_basic_ops.c:62
@ DL_FLOATINGPOINTMENU_CMD_SET_FLOATING_POINT_ENABLE
Definition dl_basic_ops.c:61
@ DL_FLOATINGPOINTMENU_CMD_SET_POSITION_B_OFFSET
Definition dl_basic_ops.c:65
@ DL_FLOATINGPOINTMENU_CMD_SET_POSITION_A_OFFSET
Definition dl_basic_ops.c:64
static nai_status_t DL_FloatingPointMenu_SetFloatingPointEnable(int32_t paramCount, int32_t *p_params)
Definition dl_basic_ops.c:1235

◆ SAMPLE_PGM_NAME

const int8_t* SAMPLE_PGM_NAME = (int8_t*) "DL Module Basic Operation Program"
static