Software Library API naibrd 2.24.0
See all documentation at naii.docs.com

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ConvertToSampleRate (uint32_t modid, uint32_t rawdata, float64_t *p_outsampleRate)
 Calculates the sample rate in Hz from the given raw data.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ConvertToSampleRateRaw (uint32_t modid, float64_t sampleRate, uint32_t *p_outrawdata)
 Calculates the raw data code corresponding to the given sample rate.
 

Detailed Description

Function Documentation

◆ naibrd_RTD_ConvertToSampleRate()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ConvertToSampleRate ( uint32_t modid,
uint32_t rawdata,
float64_t * p_outsampleRate )

Calculates the sample rate in Hz from the given raw data.

Parameters
modid: (Input) RTD Module ID.
rawdata: (Input) Raw Data Code.
p_outsampleRate: (Output) Sample Rate in Hz.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_RTD_ConvertToSampleRateRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_RTD_ConvertToSampleRateRaw ( uint32_t modid,
float64_t sampleRate,
uint32_t * p_outrawdata )

Calculates the raw data code corresponding to the given sample rate.

Parameters
modid: (Input) RTD Module ID.
sampleRate: (Input) Sample Rate in Hz.
p_outrawdata: (Output) Raw Data Code.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.