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

Enumerations

enum  dsfunc_commands {
  DS_FUNC_CMD_SET_ANGLE , DS_FUNC_CMD_BIT_TEST , DS_FUNC_CMD_ROTATION , DS_FUNC_CMD_MULTI_SPEED ,
  DS_FUNC_CMD_SET_MODULE , DS_FUNC_CMD_SET_CHANNEL , DS_FUNC_CMD_COUNT
}
 
enum  dsfunc_setAngle {
  DS_ANGLE_MENU_SET_ANGLE , DS_ANGLE_MENU_SET_EXP_VLL , DS_ANGLE_MENU_SET_EXP_VREF , DS_ANGLE_MENU_SET_VLL_THRESHOLD ,
  DS_ANGLE_MENU_SET_VREF_THRESHOLD , DS_ANGLE_MENU_FIX_RATIO_MODE , DS_ANGLE_MENU_CHAN_STATUS_ENABLE , DS_ANGLE_MENU_POWER ,
  DS_ANGLE_MENU_REFRESH , DS_ANGLE_MENU_QUIT , DS_ANGLE_MENU_INVALID_INPUT , DS_ANGLE_MENU_COUNT
}
 
enum  dsfunc_bitTest {
  DS_BIT_TEST_SET_ANGLE , DS_BIT_TEST_SET_D2 , DS_BIT_TEST_SET_D3 , DS_BIT_TEST_SET_TEST_VERIFY ,
  DS_BIT_TEST_ACTIVE_CHAN , DS_BIT_TEST_POWER , DS_BIT_TEST_REFRESH , DS_BIT_TEST_QUIT ,
  DS_BIT_TEST_INVALID_INPUT , DS_BIT_TEST_COUNT
}
 
enum  dsfunc_rotation {
  DS_ROTATION_SET_ROT_RATE , DS_ROTATION_SET_ROT_MODE , DS_ROTATION_SET_ROT_START_ANG , DS_ROTATION_SET_ROT_STOP_ANG ,
  DS_ROTATION_INITIATE_ROTATION , DS_ROTATION_STOP_ROTATION , DS_ROTATION_POWER , DS_ROTATION_REFRESH ,
  DS_ROTATION_QUIT , DS_ROTATION_INVALID_INPUT , DS_ROTATION_COUNT
}
 
enum  dsfunc_multiSpeed {
  DS_MULTI_SPEED_SET_ANGLE , DS_MULTI_SPEED_SET_EXP_VLL , DS_MULTI_SPEED_SET_EXP_VREF , DS_MULTI_SPEED_SET_VLL_THRESHOLD ,
  DS_MULTI_SPEED_SET_VREF_THRESHOLD , DS_MULTI_SPEED_FIX_RATIO_MODE , DS_MULTI_SPEED_MULT_SPD , DS_MULTI_SPEED_POWER ,
  DS_MULTI_SPEED_REFRESH , DS_MULTI_SPEED_QUIT , DS_MULTI_SPEED_INVALID_INPUT , DS_MULTI_SPEED_COUNT
}
 

Functions

static void DS_ShowSetAngleTestResult (int32_t cardIndex, int32_t module, int32_t channel)
 
static void DS_RunAngleProgram (int32_t cardIndex, int32_t module, uint32_t moduleID, int32_t moduleCount)
 DS_RunAngleProgram queries the user for the module and channel to configure for DS output.
 
static nai_status_t DS_RunAngleFunc (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetNewAngle (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetExpVLL (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetExpVref (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetVllThreshold (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetVrefThreshold (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetFixedRatioMode (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetPower (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetChannelStatusCtrl (int32_t paramCount, int32_t *p_params)
 
static void DS_ShowTestMenu (int32_t cardIndex, int32_t module, int32_t channel)
 
static nai_status_t DS_RunBitTestFunc (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetD2Test (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetD3Test (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetTestVerifyValue (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetRotation (int32_t paramCount, int32_t *p_params)
 
static void DS_ShowSetRotationTestResult (int32_t cardIndex, int32_t module, int32_t channel)
 
static nai_status_t DS_SetRotationRate (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetRotationMode (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetRotationStartAngle (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_SetRotationStopAngle (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_StartRotation (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_StopRotation (int32_t paramCount, int32_t *p_params)
 
static nai_status_t DS_RunMultiSpeedFunc (int32_t paramCount, int32_t *p_params)
 
static void DS_ShowMultiSpeedMenu (int32_t cardIndex, int32_t module, int32_t channel)
 
static nai_status_t DS_SetMultiSpd (int32_t paramCount, int32_t *p_params)
 
static void printInvalidUserInputMessage (uint32_t uTypeIdx, float64_t dUserInput, int32_t menuType)
 
static void showCurrentModChan (int32_t nModule, int32_t nChannel)
 
static void getStatus (int32_t cardIndex, int32_t module, int32_t channel, uint8_t *u8Status)
 
static bool_t checkUserInput (uint32_t uTypeIdx, float64_t dUserInput, int32_t menuType)
 
int32_t DS_RunAngleProgramSample (void)
 

Variables

static const int8_t * CONFIG_FILE = (int8_t *)"default_ds_basic_ops.txt"
 
static const uint8_t DS_RATIO [] = {"RATIO"}
 
static const uint8_t DS_FIXED [] = {"FIXED"}
 
static const uint8_t DS_ENABLE [] = {"ENABLE"}
 
static const uint8_t DS_DISABLE [] = {"DISABLE"}
 
static const uint8_t DS_ROTATION_CONTINUOUS [] = {"CONT."}
 
static const uint8_t DS_ROTATION_START_STOP [] = {"STR/STP."}
 
static const uint8_t DS_ROTATION_SRC_INT [] = {"INT."}
 
static const uint8_t DS_ROTATION_SRC_EXT [] = {"EXT."}
 
static const uint8_t DS_NOT_DEFINED [] = {"---"}
 
static const uint8_t DS_ROTATION_STATUS_ROTATING [] = {"ROTATING"}
 
static const uint8_t DS_ROTATION_STATUS_NOT_ROTATING [] = {"ROTATION STOP"}
 
static const uint8_t SYM_SLASH [] = {"/"}
 
static const uint8_t DS_STATUS_GOOD [] = {"0"}
 
static const uint8_t DS_STATUS_BAD [] = {"1"}
 
naiapp_cmdtbl_params_t DS_DemoFuncMenuCmds []
 
naiapp_cmdtbl_params_t DS_DemoSetAngle []
 
naiapp_cmdtbl_params_t DS_DemoBITTest []
 
naiapp_cmdtbl_params_t DS_DemoRotation []
 
naiapp_cmdtbl_params_t DS_DemoMultiSpeed []
 
static struct dsUserInputLimitTable DS_SetAngleMenu_Limits []
 
static struct dsUserInputLimitTable DS_BitTestMenu_Limits []
 
static struct dsUserInputLimitTable DS_RotationMenu_Limits []
 
static struct dsUserInputLimitTable DS_MultiSpeedMenu_Limits []
 

Enumeration Type Documentation

◆ dsfunc_bitTest

Enumerator
DS_BIT_TEST_SET_ANGLE 
DS_BIT_TEST_SET_D2 
DS_BIT_TEST_SET_D3 
DS_BIT_TEST_SET_TEST_VERIFY 
DS_BIT_TEST_ACTIVE_CHAN 
DS_BIT_TEST_POWER 
DS_BIT_TEST_REFRESH 
DS_BIT_TEST_QUIT 
DS_BIT_TEST_INVALID_INPUT 
DS_BIT_TEST_COUNT 

◆ dsfunc_commands

Enumerator
DS_FUNC_CMD_SET_ANGLE 
DS_FUNC_CMD_BIT_TEST 
DS_FUNC_CMD_ROTATION 
DS_FUNC_CMD_MULTI_SPEED 
DS_FUNC_CMD_SET_MODULE 
DS_FUNC_CMD_SET_CHANNEL 
DS_FUNC_CMD_COUNT 

◆ dsfunc_multiSpeed

Enumerator
DS_MULTI_SPEED_SET_ANGLE 
DS_MULTI_SPEED_SET_EXP_VLL 
DS_MULTI_SPEED_SET_EXP_VREF 
DS_MULTI_SPEED_SET_VLL_THRESHOLD 
DS_MULTI_SPEED_SET_VREF_THRESHOLD 
DS_MULTI_SPEED_FIX_RATIO_MODE 
DS_MULTI_SPEED_MULT_SPD 
DS_MULTI_SPEED_POWER 
DS_MULTI_SPEED_REFRESH 
DS_MULTI_SPEED_QUIT 
DS_MULTI_SPEED_INVALID_INPUT 
DS_MULTI_SPEED_COUNT 

◆ dsfunc_rotation

Enumerator
DS_ROTATION_SET_ROT_RATE 
DS_ROTATION_SET_ROT_MODE 
DS_ROTATION_SET_ROT_START_ANG 
DS_ROTATION_SET_ROT_STOP_ANG 
DS_ROTATION_INITIATE_ROTATION 
DS_ROTATION_STOP_ROTATION 
DS_ROTATION_POWER 
DS_ROTATION_REFRESH 
DS_ROTATION_QUIT 
DS_ROTATION_INVALID_INPUT 
DS_ROTATION_COUNT 

◆ dsfunc_setAngle

Enumerator
DS_ANGLE_MENU_SET_ANGLE 
DS_ANGLE_MENU_SET_EXP_VLL 
DS_ANGLE_MENU_SET_EXP_VREF 
DS_ANGLE_MENU_SET_VLL_THRESHOLD 
DS_ANGLE_MENU_SET_VREF_THRESHOLD 
DS_ANGLE_MENU_FIX_RATIO_MODE 
DS_ANGLE_MENU_CHAN_STATUS_ENABLE 
DS_ANGLE_MENU_POWER 
DS_ANGLE_MENU_REFRESH 
DS_ANGLE_MENU_QUIT 
DS_ANGLE_MENU_INVALID_INPUT 
DS_ANGLE_MENU_COUNT 

Function Documentation

◆ checkUserInput()

static bool_t checkUserInput ( uint32_t uTypeIdx,
float64_t dUserInput,
int32_t menuType )
static

◆ DS_RunAngleFunc()

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

◆ DS_RunAngleProgram()

static void DS_RunAngleProgram ( int32_t cardIndex,
int32_t module,
uint32_t moduleID,
int32_t moduleCount )
static

DS_RunAngleProgram queries the user for the module and channel to configure for DS output.

◆ DS_RunAngleProgramSample()

int32_t DS_RunAngleProgramSample ( void )

◆ DS_RunBitTestFunc()

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

◆ DS_RunMultiSpeedFunc()

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

◆ DS_SetChannelStatusCtrl()

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

◆ DS_SetD2Test()

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

◆ DS_SetD3Test()

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

◆ DS_SetExpVLL()

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

◆ DS_SetExpVref()

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

◆ DS_SetFixedRatioMode()

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

◆ DS_SetMultiSpd()

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

◆ DS_SetNewAngle()

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

◆ DS_SetPower()

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

◆ DS_SetRotation()

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

◆ DS_SetRotationMode()

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

◆ DS_SetRotationRate()

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

◆ DS_SetRotationStartAngle()

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

◆ DS_SetRotationStopAngle()

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

◆ DS_SetTestVerifyValue()

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

◆ DS_SetVllThreshold()

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

◆ DS_SetVrefThreshold()

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

◆ DS_ShowMultiSpeedMenu()

static void DS_ShowMultiSpeedMenu ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

◆ DS_ShowSetAngleTestResult()

static void DS_ShowSetAngleTestResult ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

◆ DS_ShowSetRotationTestResult()

static void DS_ShowSetRotationTestResult ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

◆ DS_ShowTestMenu()

static void DS_ShowTestMenu ( int32_t cardIndex,
int32_t module,
int32_t channel )
static

◆ DS_StartRotation()

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

◆ DS_StopRotation()

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

◆ getStatus()

static void getStatus ( int32_t cardIndex,
int32_t module,
int32_t channel,
uint8_t * u8Status )
static

◆ printInvalidUserInputMessage()

static void printInvalidUserInputMessage ( uint32_t uTypeIdx,
float64_t dUserInput,
int32_t menuType )
static

◆ showCurrentModChan()

static void showCurrentModChan ( int32_t nModule,
int32_t nChannel )
static

Variable Documentation

◆ CONFIG_FILE

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

◆ DS_BitTestMenu_Limits

struct dsUserInputLimitTable DS_BitTestMenu_Limits[]
static
Initial value:
= {
{DS_BIT_TEST_SET_ANGLE, (int8_t *)"Angle", 359.9954, 0.0},
{DS_BIT_TEST_SET_D2, (int8_t *)"D2 TestDisable/Enable", 1.0, 0.0},
{DS_BIT_TEST_SET_D3, (int8_t *)"D3 TestDisable/Enable", 1.0, 0.0},
{DS_BIT_TEST_SET_TEST_VERIFY, (int8_t *)"D2 Test Verify Value", 65535.0, 0.0},
{DS_BIT_TEST_ACTIVE_CHAN, (int8_t *)"Active Channel", 1.0, 0.0},
{DS_BIT_TEST_POWER, (int8_t *)"Set Power", 1.0, 0.0},
{DS_BIT_TEST_REFRESH, (int8_t *)"", 0.0, 0.0},
{DS_BIT_TEST_QUIT, (int8_t *)"", 0.0, 0.0},
{DS_BIT_TEST_INVALID_INPUT, (int8_t *)"", 0.0, 0.0},
{DS_BIT_TEST_COUNT, (int8_t *)"", 0.0, 0.0}
}
@ DS_BIT_TEST_SET_ANGLE
Definition ds_basic_ops.c:105
@ DS_BIT_TEST_SET_D2
Definition ds_basic_ops.c:106
@ DS_BIT_TEST_INVALID_INPUT
Definition ds_basic_ops.c:113
@ DS_BIT_TEST_REFRESH
Definition ds_basic_ops.c:111
@ DS_BIT_TEST_ACTIVE_CHAN
Definition ds_basic_ops.c:109
@ DS_BIT_TEST_QUIT
Definition ds_basic_ops.c:112
@ DS_BIT_TEST_COUNT
Definition ds_basic_ops.c:114
@ DS_BIT_TEST_SET_TEST_VERIFY
Definition ds_basic_ops.c:108
@ DS_BIT_TEST_POWER
Definition ds_basic_ops.c:110
@ DS_BIT_TEST_SET_D3
Definition ds_basic_ops.c:107

◆ DS_DemoBITTest

naiapp_cmdtbl_params_t DS_DemoBITTest[]
Initial value:
= {
{"ANG ", "Set Angle", DS_BIT_TEST_SET_ANGLE, DS_SetNewAngle},
{"D2 ", "Set On-Line(D2) Test", DS_BIT_TEST_SET_D2, DS_SetD2Test},
{"D3 ", "Set On-Line(D3) Test", DS_BIT_TEST_SET_D3, DS_SetD3Test},
{"VERIFY", "Set Test Verify Value", DS_BIT_TEST_SET_TEST_VERIFY, DS_SetTestVerifyValue},
{"ACT ", "Set Active Channel", DS_BIT_TEST_ACTIVE_CHAN, DS_SetChannelStatusCtrl},
{"PWR ", "Set Power", DS_BIT_TEST_POWER, DS_SetPower},
{"UPDATE ", "Update", DS_BIT_TEST_REFRESH, NULL},
{"Q ", "Quit", DS_BIT_TEST_QUIT, NULL},
{"", "", DS_BIT_TEST_INVALID_INPUT, NULL}
}
static nai_status_t DS_SetTestVerifyValue(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1393
static nai_status_t DS_SetPower(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1286
static nai_status_t DS_SetD2Test(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1323
static nai_status_t DS_SetNewAngle(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1027
static nai_status_t DS_SetChannelStatusCtrl(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1249
static nai_status_t DS_SetD3Test(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1358

◆ DS_DemoFuncMenuCmds

naiapp_cmdtbl_params_t DS_DemoFuncMenuCmds[]
Initial value:
= {
{"ANG", "Run Angle Menu", DS_FUNC_CMD_SET_ANGLE, DS_RunAngleFunc},
{"BIT", "Run BIT Test Menu", DS_FUNC_CMD_BIT_TEST, DS_RunBitTestFunc},
{"ROT", "Run Rotation Menu", DS_FUNC_CMD_ROTATION, DS_SetRotation},
{"SPD", "Run Multi-Speed Menu", DS_FUNC_CMD_MULTI_SPEED, DS_RunMultiSpeedFunc},
{"M ", "Select Module", DS_FUNC_CMD_SET_MODULE, NULL},
{"C ", "Select Channel", DS_FUNC_CMD_SET_CHANNEL, NULL}
}
static nai_status_t DS_RunAngleFunc(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:447
@ DS_FUNC_CMD_SET_ANGLE
Definition ds_basic_ops.c:78
@ DS_FUNC_CMD_ROTATION
Definition ds_basic_ops.c:80
@ DS_FUNC_CMD_BIT_TEST
Definition ds_basic_ops.c:79
@ DS_FUNC_CMD_MULTI_SPEED
Definition ds_basic_ops.c:81
@ DS_FUNC_CMD_SET_MODULE
Definition ds_basic_ops.c:82
@ DS_FUNC_CMD_SET_CHANNEL
Definition ds_basic_ops.c:83
static nai_status_t DS_RunMultiSpeedFunc(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:891
static nai_status_t DS_RunBitTestFunc(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:594
static nai_status_t DS_SetRotation(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:740

◆ DS_DemoMultiSpeed

naiapp_cmdtbl_params_t DS_DemoMultiSpeed[]
Initial value:
= {
{"ANG ", "Set Multi-speed Angle", DS_MULTI_SPEED_SET_ANGLE, DS_SetNewAngle},
{"VLL ", "Set Exp. VLL", DS_MULTI_SPEED_SET_EXP_VLL, DS_SetExpVLL},
{"VREF ", "Set Exp. Ref Volt", DS_MULTI_SPEED_SET_EXP_VREF, DS_SetExpVref},
{"VLLTH ", "Set VLL Threshold Volt", DS_MULTI_SPEED_SET_VLL_THRESHOLD, DS_SetVllThreshold},
{"REFTH ", "Set VREF Threshold Volt", DS_MULTI_SPEED_SET_VREF_THRESHOLD, DS_SetVrefThreshold},
{"MODE ", "Set Fixed / Ratio Mode", DS_MULTI_SPEED_FIX_RATIO_MODE, DS_SetFixedRatioMode},
{"MULTSPD", "Set Mulit Speed Ratio", DS_MULTI_SPEED_MULT_SPD, DS_SetMultiSpd},
{"PWR ", "Set Power", DS_MULTI_SPEED_POWER, DS_SetPower},
{"UPDATE ", "Update", DS_MULTI_SPEED_REFRESH, NULL},
{"Q ", "Quit", DS_MULTI_SPEED_QUIT, NULL},
}
static nai_status_t DS_SetVllThreshold(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1138
static nai_status_t DS_SetMultiSpd(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1651
static nai_status_t DS_SetVrefThreshold(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1175
static nai_status_t DS_SetExpVLL(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1064
static nai_status_t DS_SetExpVref(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1101
@ DS_MULTI_SPEED_POWER
Definition ds_basic_ops.c:141
@ DS_MULTI_SPEED_SET_ANGLE
Definition ds_basic_ops.c:134
@ DS_MULTI_SPEED_FIX_RATIO_MODE
Definition ds_basic_ops.c:139
@ DS_MULTI_SPEED_INVALID_INPUT
Definition ds_basic_ops.c:144
@ DS_MULTI_SPEED_QUIT
Definition ds_basic_ops.c:143
@ DS_MULTI_SPEED_SET_VREF_THRESHOLD
Definition ds_basic_ops.c:138
@ DS_MULTI_SPEED_SET_EXP_VREF
Definition ds_basic_ops.c:136
@ DS_MULTI_SPEED_REFRESH
Definition ds_basic_ops.c:142
@ DS_MULTI_SPEED_MULT_SPD
Definition ds_basic_ops.c:140
@ DS_MULTI_SPEED_SET_EXP_VLL
Definition ds_basic_ops.c:135
@ DS_MULTI_SPEED_SET_VLL_THRESHOLD
Definition ds_basic_ops.c:137
static nai_status_t DS_SetFixedRatioMode(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1212

◆ DS_DemoRotation

naiapp_cmdtbl_params_t DS_DemoRotation[]
Initial value:
= {
{"RATE", "Set Rotation Rate", DS_ROTATION_SET_ROT_RATE, DS_SetRotationRate},
{"MODE", "Set Rotation Mode", DS_ROTATION_SET_ROT_MODE, DS_SetRotationMode},
{"STRANG", "Set Rotation Start Angle", DS_ROTATION_SET_ROT_START_ANG, DS_SetRotationStartAngle},
{"STPANG", "Set Rotation Stop Angle", DS_ROTATION_SET_ROT_STOP_ANG, DS_SetRotationStopAngle},
{"STRROT", "Start Rotation", DS_ROTATION_INITIATE_ROTATION, DS_StartRotation},
{"STPROT", "Stop Rotation", DS_ROTATION_STOP_ROTATION, DS_StopRotation},
{"PWER", "Set Power", DS_ROTATION_POWER, DS_SetPower},
{"UPDATE", "Update", DS_ROTATION_REFRESH, NULL},
{"Q", "Quit", DS_ROTATION_QUIT, NULL},
{"", "", DS_ROTATION_INVALID_INPUT, NULL}
}
static nai_status_t DS_SetRotationStopAngle(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1540
static nai_status_t DS_SetRotationRate(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1429
static nai_status_t DS_StartRotation(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1577
static nai_status_t DS_SetRotationStartAngle(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1503
static nai_status_t DS_SetRotationMode(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1466
static nai_status_t DS_StopRotation(int32_t paramCount, int32_t *p_params)
Definition ds_basic_ops.c:1614
@ DS_ROTATION_INVALID_INPUT
Definition ds_basic_ops.c:128
@ DS_ROTATION_INITIATE_ROTATION
Definition ds_basic_ops.c:123
@ DS_ROTATION_POWER
Definition ds_basic_ops.c:125
@ DS_ROTATION_STOP_ROTATION
Definition ds_basic_ops.c:124
@ DS_ROTATION_SET_ROT_RATE
Definition ds_basic_ops.c:119
@ DS_ROTATION_REFRESH
Definition ds_basic_ops.c:126
@ DS_ROTATION_QUIT
Definition ds_basic_ops.c:127
@ DS_ROTATION_SET_ROT_START_ANG
Definition ds_basic_ops.c:121
@ DS_ROTATION_SET_ROT_MODE
Definition ds_basic_ops.c:120
@ DS_ROTATION_SET_ROT_STOP_ANG
Definition ds_basic_ops.c:122

◆ DS_DemoSetAngle

naiapp_cmdtbl_params_t DS_DemoSetAngle[]
Initial value:
= {
{"ANG ", "Set Angle", DS_ANGLE_MENU_SET_ANGLE, DS_SetNewAngle},
{"VLL ", "Set Exp. VLL", DS_ANGLE_MENU_SET_EXP_VLL, DS_SetExpVLL},
{"VREF ", "Set Exp. Ref Volt", DS_ANGLE_MENU_SET_EXP_VREF, DS_SetExpVref},
{"VLLTH ", "Set VLL Threshold Volt", DS_ANGLE_MENU_SET_VLL_THRESHOLD, DS_SetVllThreshold},
{"REFTH ", "Set VREF Threshold Volt", DS_ANGLE_MENU_SET_VREF_THRESHOLD, DS_SetVrefThreshold},
{"MODE ", "Set Fixed / Ratio Mode", DS_ANGLE_MENU_FIX_RATIO_MODE, DS_SetFixedRatioMode},
{"CSTATUS", "Set Chan Status Enable(Active Chan.)", DS_ANGLE_MENU_CHAN_STATUS_ENABLE, DS_SetChannelStatusCtrl},
{"PWR ", "Set Power", DS_ANGLE_MENU_POWER, DS_SetPower},
{"U", "Update", DS_ANGLE_MENU_REFRESH, NULL},
{"Q ", "Quit", DS_ANGLE_MENU_QUIT, NULL},
}
@ DS_ANGLE_MENU_SET_EXP_VLL
Definition ds_basic_ops.c:90
@ DS_ANGLE_MENU_POWER
Definition ds_basic_ops.c:96
@ DS_ANGLE_MENU_INVALID_INPUT
Definition ds_basic_ops.c:99
@ DS_ANGLE_MENU_SET_VLL_THRESHOLD
Definition ds_basic_ops.c:92
@ DS_ANGLE_MENU_CHAN_STATUS_ENABLE
Definition ds_basic_ops.c:95
@ DS_ANGLE_MENU_REFRESH
Definition ds_basic_ops.c:97
@ DS_ANGLE_MENU_SET_EXP_VREF
Definition ds_basic_ops.c:91
@ DS_ANGLE_MENU_SET_VREF_THRESHOLD
Definition ds_basic_ops.c:93
@ DS_ANGLE_MENU_QUIT
Definition ds_basic_ops.c:98
@ DS_ANGLE_MENU_SET_ANGLE
Definition ds_basic_ops.c:89
@ DS_ANGLE_MENU_FIX_RATIO_MODE
Definition ds_basic_ops.c:94

◆ DS_DISABLE

const uint8_t DS_DISABLE[] = {"DISABLE"}
static

◆ DS_ENABLE

const uint8_t DS_ENABLE[] = {"ENABLE"}
static

◆ DS_FIXED

const uint8_t DS_FIXED[] = {"FIXED"}
static

◆ DS_MultiSpeedMenu_Limits

struct dsUserInputLimitTable DS_MultiSpeedMenu_Limits[]
static
Initial value:
= {
{DS_MULTI_SPEED_SET_ANGLE, (int8_t *)"Angle", 359.9954, 0.0 },
{DS_MULTI_SPEED_SET_EXP_VLL, (int8_t *)"Exp VLL", 115.0, 0.0 },
{DS_MULTI_SPEED_SET_EXP_VREF, (int8_t *)"Exp Vref", 115.0, 0.0 },
{DS_MULTI_SPEED_SET_VLL_THRESHOLD, (int8_t *)"VLL Threshold", 115.0, 0.0 },
{DS_MULTI_SPEED_SET_VREF_THRESHOLD, (int8_t *)"Vref Threshold", 115.0, 0.0 },
{DS_MULTI_SPEED_FIX_RATIO_MODE, (int8_t *)"Ratio/Fixed Mode", 1.0, 0.0 },
{DS_MULTI_SPEED_MULT_SPD, (int8_t *)"Multi Speed", 255.0, 1.0 },
{DS_MULTI_SPEED_POWER, (int8_t *)"Set Power", 1.0, 0.0 },
{DS_MULTI_SPEED_REFRESH, (int8_t *)"", 0.0, 0.0 },
{DS_MULTI_SPEED_QUIT, (int8_t *)"", 0.0, 0.0 },
{DS_MULTI_SPEED_INVALID_INPUT, (int8_t *)"", 0.0, 0.0 },
{DS_MULTI_SPEED_COUNT, (int8_t *)"", 0.0, 0.0 }
}
@ DS_MULTI_SPEED_COUNT
Definition ds_basic_ops.c:145

◆ DS_NOT_DEFINED

const uint8_t DS_NOT_DEFINED[] = {"---"}
static

◆ DS_RATIO

const uint8_t DS_RATIO[] = {"RATIO"}
static

◆ DS_ROTATION_CONTINUOUS

const uint8_t DS_ROTATION_CONTINUOUS[] = {"CONT."}
static

◆ DS_ROTATION_SRC_EXT

const uint8_t DS_ROTATION_SRC_EXT[] = {"EXT."}
static

◆ DS_ROTATION_SRC_INT

const uint8_t DS_ROTATION_SRC_INT[] = {"INT."}
static

◆ DS_ROTATION_START_STOP

const uint8_t DS_ROTATION_START_STOP[] = {"STR/STP."}
static

◆ DS_ROTATION_STATUS_NOT_ROTATING

const uint8_t DS_ROTATION_STATUS_NOT_ROTATING[] = {"ROTATION STOP"}
static

◆ DS_ROTATION_STATUS_ROTATING

const uint8_t DS_ROTATION_STATUS_ROTATING[] = {"ROTATING"}
static

◆ DS_RotationMenu_Limits

struct dsUserInputLimitTable DS_RotationMenu_Limits[]
static
Initial value:
= {
{DS_ROTATION_SET_ROT_RATE, (int8_t *)"Rot. Rate", 1000.0, -1000.0 },
{DS_ROTATION_SET_ROT_MODE, (int8_t *)"Rot. Mode", 1.0, 0.0 },
{DS_ROTATION_SET_ROT_START_ANG, (int8_t *)"Rot. Start Angle", 359.9954, 0.0 },
{DS_ROTATION_SET_ROT_STOP_ANG, (int8_t *)"Rot. Stop Angle", 359.9954, 0.0 },
{DS_ROTATION_INITIATE_ROTATION, (int8_t *)"Start Rot", 1.0, 0.0 },
{DS_ROTATION_STOP_ROTATION, (int8_t *)"Stop Rot.", 1.0, 0.0 },
{DS_ROTATION_POWER, (int8_t *)"Set Power", 1.0, 0.0 },
{DS_ROTATION_REFRESH, (int8_t *)"", 0.0, 0.0 },
{DS_ROTATION_QUIT, (int8_t *)"", 0.0, 0.0 },
{DS_ROTATION_INVALID_INPUT, (int8_t *)"", 0.0, 0.0 },
{DS_ROTATION_COUNT, (int8_t *)"", 0.0, 0.0 }
}
@ DS_ROTATION_COUNT
Definition ds_basic_ops.c:129

◆ DS_SetAngleMenu_Limits

struct dsUserInputLimitTable DS_SetAngleMenu_Limits[]
static
Initial value:
= {
{DS_ANGLE_MENU_SET_ANGLE, (int8_t *)"Angle", 359.9954, 0.0},
{DS_ANGLE_MENU_SET_EXP_VLL, (int8_t *)"Exp VLL", 115.0, 0.0},
{DS_ANGLE_MENU_SET_EXP_VREF, (int8_t *)"Exp Vref", 115.0, 0.0},
{DS_ANGLE_MENU_SET_VLL_THRESHOLD, (int8_t *)"VLL Threshold", 115.0, 0.0},
{DS_ANGLE_MENU_SET_VREF_THRESHOLD, (int8_t *)"Vref Threshold", 115.0, 0.0},
{DS_ANGLE_MENU_FIX_RATIO_MODE, (int8_t *)"Ratio/Fixed Mode", 1.0, 0.0},
{DS_ANGLE_MENU_CHAN_STATUS_ENABLE, (int8_t *)"Active Channel", 1.0, 0.0},
{DS_ANGLE_MENU_POWER, (int8_t *)"Set Power", 1.0, 0.0},
{DS_ANGLE_MENU_REFRESH, (int8_t *)"", 0.0, 0.0},
{DS_ANGLE_MENU_QUIT, (int8_t *)"", 0.0, 0.0},
{DS_ANGLE_MENU_INVALID_INPUT, (int8_t *)"", 0.0, 0.0},
{DS_ANGLE_MENU_COUNT, (int8_t *)"", 0.0, 0.0}
}
@ DS_ANGLE_MENU_COUNT
Definition ds_basic_ops.c:100

◆ DS_STATUS_BAD

const uint8_t DS_STATUS_BAD[] = {"1"}
static

◆ DS_STATUS_GOOD

const uint8_t DS_STATUS_GOOD[] = {"0"}
static

◆ SYM_SLASH

const uint8_t SYM_SLASH[] = {"/"}
static