03.08.2013 Views

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

Embedded Software and Motor Control Libraries for PXR40xx

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.136 Function MLIB_ConvertPU_FLTF32<br />

This function converts the input value to different representation without scale.<br />

4.136.1 Declaration<br />

tFloat MLIB_ConvertPU_FLTF32(register tFrac32 f32In);<br />

4.136.2 Arguments<br />

Table 4-173. MLIB_ConvertPU_FLTF32 arguments<br />

Type Name Direction Description<br />

register tFrac32 f32In input Input value in 32-bit fractional <strong>for</strong>mat to be converted.<br />

4.136.3 Return<br />

Converted input value in single precision floating point <strong>for</strong>mat.<br />

4.136.4 Description<br />

This inline function returns converted input value. The input value is considered as 32-bit<br />

fractional data type <strong>and</strong> output value is considered as single precision floating point data<br />

type. The input value represents the values in unity model. The output saturation is not<br />

implemented in this function.<br />

The output of the function is defined by the following simple equation:<br />

Equation MLIB_ConvertPU_Eq1<br />

Note<br />

Due to effectivity reason this function is implemented as inline<br />

<strong>and</strong> thus is not ANSI-C compliant.<br />

<strong>Embedded</strong> <strong>Software</strong> <strong>and</strong> <strong>Motor</strong> <strong>Control</strong> <strong>Libraries</strong> <strong>for</strong> <strong>PXR40xx</strong>, Rev. 1.0<br />

Chapter 4 API References<br />

Freescale Semiconductor, Inc. 585

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!