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

Functions

nai_status_t naibrd_DL_ConvertRawToPosition (uint32_t rawdata, float64_t *outPosition)
 Converts raw value to position value.
 
nai_status_t naibrd_DL_ConvertPositionToRaw (float64_t inPosition, int32_t *outRawData)
 Converts position to raw position value.
 
nai_status_t naibrd_DL_ConvertRawToPhase (uint32_t modid, uint32_t rawdata, float64_t *outPhase)
 Converts raw value to phase value.
 
nai_status_t naibrd_DL_ConvertPhaseToRaw (uint32_t modid, float64_t inPhase, uint32_t *outRawData)
 Converts phase to raw phase value.
 

Detailed Description


Function Documentation

◆ naibrd_DL_ConvertPhaseToRaw()

nai_status_t naibrd_DL_ConvertPhaseToRaw ( uint32_t modid,
float64_t inPhase,
uint32_t * outRawData )

Converts phase to raw phase value.

Parameters
modid: (Input) D/L Module ID.
inPhase: (Input) Phase value.
outRawData: (Output) Raw phase value.
Returns
  • NAI_SUCCESS

◆ naibrd_DL_ConvertPositionToRaw()

nai_status_t naibrd_DL_ConvertPositionToRaw ( float64_t inPosition,
int32_t * outRawData )

Converts position to raw position value.

Parameters
inPosition: (Input) Position value.
outRawData: (Output) Raw position value.
Returns
  • NAI_SUCCESS

◆ naibrd_DL_ConvertRawToPhase()

nai_status_t naibrd_DL_ConvertRawToPhase ( uint32_t modid,
uint32_t rawdata,
float64_t * outPhase )

Converts raw value to phase value.

Parameters
modid: (Input) D/L Module ID.
rawdata: (Input) Raw phase value.
outPhase: (Output) Phase value.
Returns
  • NAI_SUCCESS

◆ naibrd_DL_ConvertRawToPosition()

nai_status_t naibrd_DL_ConvertRawToPosition ( uint32_t rawdata,
float64_t * outPosition )

Converts raw value to position value.

Parameters
rawdata: (Input) Raw position value.
outPosition: (Output) Position value.
Returns
  • NAI_SUCCESS