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

Functions

static nai_status_t naibrd_PT_VerifyChannel (uint32_t modId, int32_t channel)
 
static nai_status_t naibrd_PT_VerifyClockOutEnable (uint32_t modId, naibrd_pt_clock_out_enable_t clock_out_enable)
 
static nai_status_t naibrd_PT_VerifyOutputEnable (uint32_t modId, naibrd_pt_output_type_t output_type)
 
static nai_status_t naibrd_PT_VerifyInputFormat (uint32_t modId, naibrd_pt_input_format_t inputformat)
 
static nai_status_t naibrd_PT_VerifyInputTermination (uint32_t modId, naibrd_pt_input_termination_t input)
 
static nai_status_t naibrd_PT_VerifyCrossThreshold (uint32_t modId, float64_t thresh)
 
NAIBRDFUNC int32_t NAIAPI naibrd_PT_GetChannelCount (uint32_t modId)
 Returns the number of channels for the specified Module ID.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_SetClockOutEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_clock_out_enable_t clock_mode)
 Sets the clock out enable to differential, single ended or disabled.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_GetClockOutEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_clock_out_enable_t *p_outclock)
 Retrieves the clock out enable as differential, single ended or disabled.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_SetOutputEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_output_type_t output_type)
 Sets the state of the outputs.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_GetOutputEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_output_type_t *p_output_type)
 Retrieves the state of the outputs.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_SetInputFormat (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_input_format_t input_select)
 Sets the state of IO format control bit.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_GetInputFormat (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_input_format_t *input_select)
 Retreives the state of IO format control bit.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_SetInputTermination (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_input_termination_t input_term)
 Sets the input termination to 0, 50, 75, or 100 Ohms.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_GetInputTermination (int32_t cardIndex, int32_t module, int32_t channel, naibrd_pt_input_termination_t *input_term)
 Retrieves the input termination from 0, 50, 75, or 100 Ohms.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_SetCrossingThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t cross_thresh)
 Sets the Input Single-Ended Crossing Threshold. LSB = 12V/2^11 = 5.862mV.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_PT_GetCrossingThreshold (int32_t cardIndex, int32_t module, int32_t channel, float64_t *cross_thresh)
 Retrieves the Input Single-Ended Crossing Threshold. LSB = 12V/2^11 = 5.862mV.
 

Variables

static const uint32_t PT_PT1_GEN5_ClockOutEnable [2] = NAI_PT_GEN5_REG_CLOCK_OUT
 
static const uint32_t PT_PT1_GEN5_OutputEnable [2] = NAI_PT_GEN5_REG_OUTPUT_ENABLE
 
static const uint32_t PT_PT1_GEN5_Inputformat [2] = NAI_PT_GEN5_REG_IO_FORMAT
 
static const uint32_t PT_PT1_GEN5_InputTermination [2] = NAI_PT_GEN5_REG_INPUT_TERMINATION
 
static const uint32_t PT_PT1_GEN5_CrossThreshold [2] = NAI_PT_GEN5_INPUT_SE_CROSS_THRESH
 

Function Documentation

◆ naibrd_PT_VerifyChannel()

static nai_status_t naibrd_PT_VerifyChannel ( uint32_t modId,
int32_t channel )
static

◆ naibrd_PT_VerifyClockOutEnable()

static nai_status_t naibrd_PT_VerifyClockOutEnable ( uint32_t modId,
naibrd_pt_clock_out_enable_t clock_out_enable )
static

◆ naibrd_PT_VerifyCrossThreshold()

static nai_status_t naibrd_PT_VerifyCrossThreshold ( uint32_t modId,
float64_t thresh )
static

◆ naibrd_PT_VerifyInputFormat()

static nai_status_t naibrd_PT_VerifyInputFormat ( uint32_t modId,
naibrd_pt_input_format_t inputformat )
static

◆ naibrd_PT_VerifyInputTermination()

static nai_status_t naibrd_PT_VerifyInputTermination ( uint32_t modId,
naibrd_pt_input_termination_t input )
static

◆ naibrd_PT_VerifyOutputEnable()

static nai_status_t naibrd_PT_VerifyOutputEnable ( uint32_t modId,
naibrd_pt_output_type_t output_type )
static

Variable Documentation

◆ PT_PT1_GEN5_ClockOutEnable

const uint32_t PT_PT1_GEN5_ClockOutEnable[2] = NAI_PT_GEN5_REG_CLOCK_OUT
static

◆ PT_PT1_GEN5_CrossThreshold

const uint32_t PT_PT1_GEN5_CrossThreshold[2] = NAI_PT_GEN5_INPUT_SE_CROSS_THRESH
static

◆ PT_PT1_GEN5_Inputformat

const uint32_t PT_PT1_GEN5_Inputformat[2] = NAI_PT_GEN5_REG_IO_FORMAT
static

◆ PT_PT1_GEN5_InputTermination

const uint32_t PT_PT1_GEN5_InputTermination[2] = NAI_PT_GEN5_REG_INPUT_TERMINATION
static

◆ PT_PT1_GEN5_OutputEnable

const uint32_t PT_PT1_GEN5_OutputEnable[2] = NAI_PT_GEN5_REG_OUTPUT_ENABLE
static