Software Library API naibrd 1.62
See all documentation at naii.docs.com
Conversion Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToAngle (uint32_t modid, uint32_t rawdata, float64_t *outangle)
 Converts raw angle data to an angle value in degrees.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToAngleRaw (uint32_t modid, float64_t angle, uint32_t *outrawdata)
 Converts Angle value to raw angle value.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToVelocity (uint32_t modid, uint32_t rawdata, float64_t rawvelscale, float64_t *outvelocity)
 Converts raw velocity data to a velocity value in RPS.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToFrequency (uint32_t modid, uint32_t rawdata, float64_t *outfreq)
 Converts raw frequency data to a frequency value represented as a 64 bit float.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToVoltage (uint32_t modid, uint32_t rawdata, float64_t *outvoltage)
 Converts raw voltage data to a voltage value represented as a 64 bit float.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToVoltageRaw (uint32_t modid, float64_t voltage, uint32_t *p_outrawData)
 Converts scaled voltage value to raw voltage data.
 

Detailed Description


Function Documentation

◆ naibrd_SD_ConvertToAngle()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToAngle ( uint32_t modid,
uint32_t rawdata,
float64_t * outangle )

Converts raw angle data to an angle value in degrees.

Parameters
modid: (Input) SD Module ID
rawdata: (Input) Raw angle data
outangle: (Output) Angle value in degrees
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_ConvertToAngleRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToAngleRaw ( uint32_t modid,
float64_t angle,
uint32_t * outrawdata )

Converts Angle value to raw angle value.

Parameters
modid: (Input) SD Module ID
angle: (Input) Angle value.
outrawdata: (Output) Raw angle value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_VALUE when invalid angle is specified.
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_ConvertToFrequency()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToFrequency ( uint32_t modid,
uint32_t rawdata,
float64_t * outfreq )

Converts raw frequency data to a frequency value represented as a 64 bit float.

Parameters
modid: (Input) SD Module ID
rawdata: (Input) Raw frequency value.
outfreq: (Output) Frequency value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_ConvertToVelocity()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToVelocity ( uint32_t modid,
uint32_t rawdata,
float64_t rawvelscale,
float64_t * outvelocity )

Converts raw velocity data to a velocity value in RPS.

Parameters
modid: (Input) SD Module ID
rawdata: (Input) Raw velocity data
rawvelscale: (Input) Raw velocity scale data
outvelocity: (Output) Velocity value in RPS
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_ConvertToVoltage()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToVoltage ( uint32_t modid,
uint32_t rawdata,
float64_t * outvoltage )

Converts raw voltage data to a voltage value represented as a 64 bit float.

Parameters
modid: (Input) SD Module ID
rawdata: (Input) Raw Voltage Data
outvoltage: (Output) Voltage value as a float
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.

◆ naibrd_SD_ConvertToVoltageRaw()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ConvertToVoltageRaw ( uint32_t modid,
float64_t voltage,
uint32_t * p_outrawData )

Converts scaled voltage value to raw voltage data.

Parameters
modid: (Input) SD Module ID.
voltage: (Input)Scaled Voltage value.
p_outrawData: (Output) Raw voltage value.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_NOT_SUPPORTED when function is not supported.