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

Enumerations

enum  pt_basicops_commands {
  PT_BASICOP_CMD_CLOCK_OUT , PT_BASICOP_CMD_OUTPUT , PT_BASICOP_CMD_IOFORMAT , PT_BASICOP_CMD_INTERM ,
  PT_BASICOP_CMD_CROSS , PT_BASICOP_CMD_CHAN , PT_BASICOP_CMD_COUNT
}
 

Functions

static void Run_PT_BasicOps (int32_t cardIndex, int32_t module, uint32_t modid)
 
static void Cfg_PT_Channel (int32_t cardIndex, int32_t module, uint32_t ModuleID, int32_t MaxChannel)
 
static bool_t Display_PT_Status (int32_t cardIndex, int32_t module, int32_t chan, uint32_t ModuleID)
 
static nai_status_t Configure_PT_Clock (int32_t paramCount, int32_t *p_params)
 
static nai_status_t Configure_PT_Output (int32_t paramCount, int32_t *p_params)
 
static nai_status_t Configure_PT_InputFormat (int32_t paramCount, int32_t *p_params)
 
static nai_status_t Configure_PT_InputTermination (int32_t paramCount, int32_t *p_params)
 
static nai_status_t Configure_PT_Threshold (int32_t paramCount, int32_t *p_params)
 
static nai_status_t Configure_PT_SelectChan (int32_t paramCount, int32_t *p_params)
 
int32_t PT_BasicOps (void)
 The purpose of the pt_basic_ops is to illustrate the methods to call in the naibrd library to perform basic operations with the relay modules for configuration setup, controlling the drive outputs, and reading the channels.
 

Variables

static const int8_t * CONFIG_FILE = (const int8_t *)"default_PT_BasicOp.txt"
 
static const int32_t DEF_PT_CHANNEL = 1
 
naiapp_cmdtbl_params_t PT_BasicOpMenuCmds []
 

Enumeration Type Documentation

◆ pt_basicops_commands

Enumerator
PT_BASICOP_CMD_CLOCK_OUT 
PT_BASICOP_CMD_OUTPUT 
PT_BASICOP_CMD_IOFORMAT 
PT_BASICOP_CMD_INTERM 
PT_BASICOP_CMD_CROSS 
PT_BASICOP_CMD_CHAN 
PT_BASICOP_CMD_COUNT 

Function Documentation

◆ Cfg_PT_Channel()

static void Cfg_PT_Channel ( int32_t cardIndex,
int32_t module,
uint32_t ModuleID,
int32_t MaxChannel )
static

◆ Configure_PT_Clock()

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

◆ Configure_PT_InputFormat()

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

◆ Configure_PT_InputTermination()

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

◆ Configure_PT_Output()

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

◆ Configure_PT_SelectChan()

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

◆ Configure_PT_Threshold()

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

◆ Display_PT_Status()

static bool_t Display_PT_Status ( int32_t cardIndex,
int32_t module,
int32_t chan,
uint32_t ModuleID )
static

◆ PT_BasicOps()

int32_t PT_BasicOps ( void )

The purpose of the pt_basic_ops is to illustrate the methods to call in the naibrd library to perform basic operations with the relay modules for configuration setup, controlling the drive outputs, and reading the channels.

◆ Run_PT_BasicOps()

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

Variable Documentation

◆ CONFIG_FILE

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

◆ DEF_PT_CHANNEL

const int32_t DEF_PT_CHANNEL = 1
static

◆ PT_BasicOpMenuCmds

naiapp_cmdtbl_params_t PT_BasicOpMenuCmds[]
Initial value:
= {
{"Clock", "PT Set Clock Out", PT_BASICOP_CMD_CLOCK_OUT, Configure_PT_Clock},
{"Output", "PT Enable Output (5V/12V)", PT_BASICOP_CMD_OUTPUT, Configure_PT_Output},
{"Input", "PT Set Input format", PT_BASICOP_CMD_IOFORMAT, Configure_PT_InputFormat},
{"Term", "PT Set InputTermination", PT_BASICOP_CMD_INTERM, Configure_PT_InputTermination},
{"Cross", "PT Crossing Thresh", PT_BASICOP_CMD_CROSS, Configure_PT_Threshold},
{"S", "PT Switch Selected Channel", PT_BASICOP_CMD_CHAN, Configure_PT_SelectChan},
}
static nai_status_t Configure_PT_Threshold(int32_t paramCount, int32_t *p_params)
Definition pt_basic_ops.c:559
static nai_status_t Configure_PT_Output(int32_t paramCount, int32_t *p_params)
Definition pt_basic_ops.c:337
@ PT_BASICOP_CMD_IOFORMAT
Definition pt_basic_ops.c:42
@ PT_BASICOP_CMD_CROSS
Definition pt_basic_ops.c:44
@ PT_BASICOP_CMD_OUTPUT
Definition pt_basic_ops.c:41
@ PT_BASICOP_CMD_CHAN
Definition pt_basic_ops.c:45
@ PT_BASICOP_CMD_CLOCK_OUT
Definition pt_basic_ops.c:40
@ PT_BASICOP_CMD_INTERM
Definition pt_basic_ops.c:43
static nai_status_t Configure_PT_SelectChan(int32_t paramCount, int32_t *p_params)
Definition pt_basic_ops.c:214
static nai_status_t Configure_PT_InputFormat(int32_t paramCount, int32_t *p_params)
Definition pt_basic_ops.c:445
static nai_status_t Configure_PT_Clock(int32_t paramCount, int32_t *p_params)
Definition pt_basic_ops.c:393
static nai_status_t Configure_PT_InputTermination(int32_t paramCount, int32_t *p_params)
Definition pt_basic_ops.c:501