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.

}<br />

// output should be 0x60000000 ~ FRAC32(0.75)<br />

f32Out = GFLIB_LowerLimit_F32 (f32In,&f32trMyLowerLimit);<br />

// output should be 0x60000000 ~ FRAC32(0.75)<br />

f32Out = GFLIB_LowerLimit (f32In,&f32trMyLowerLimit,Define F32);<br />

// ##############################################################<br />

// Available only if 32-bit fractional implementation selected<br />

// as default<br />

// ##############################################################<br />

// output should be 0x60000000 ~ FRAC32(0.75)<br />

f32Out = GFLIB_LowerLimit (f32In,&f32trMyLowerLimit);<br />

4.65 Function GFLIB_LowerLimit_F16<br />

This function tests whether the input value is above the lower limit.<br />

4.65.1 Declaration<br />

tFrac16 GFLIB_LowerLimit_F16(tFrac16 f16In, const GFLIB_LOWERLIMIT_T_F16 *const pParam);<br />

4.65.2 Arguments<br />

Table 4-82. GFLIB_LowerLimit_F16 arguments<br />

Type Name Direction Description<br />

tFrac16 f16In input Input value.<br />

const<br />

GFLIB_LOWERLIMIT_<br />

T_F16 *const<br />

4.65.3 Return<br />

pParam input Pointer to the limits structure.<br />

Chapter 4 API References<br />

The input value in case the input value is above the limit, or the lower limit if the input<br />

value is below the limit.<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 />

Freescale Semiconductor, Inc. 353

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

Saved successfully!

Ooh no, something went wrong!