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.88.1 Declaration<br />

tFrac32 GFLIB_UpperLimit_F32(tFrac32 f32In, const GFLIB_UPPERLIMIT_T_F32 *const pParam);<br />

4.88.2 Arguments<br />

Table 4-113. GFLIB_UpperLimit_F32 arguments<br />

Type Name Direction Description<br />

tFrac32 f32In input Input value.<br />

const<br />

GFLIB_UPPERLIMIT_T<br />

_F32 *const<br />

4.88.3 Return<br />

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

The input value in case the input value is below the limit, or the upper limit if the input<br />

value is above the limit.<br />

4.88.4 Description<br />

The GFLIB_UpperLimit function tests whether the input value is below the upper limit.<br />

If so, the input value will be returned. Otherwise, if the input value is above the upper<br />

limit, the upper limit will be returned.<br />

The upper limit f32UpperLimit can be found in the parameters structure, supplied to the<br />

function as a pointer pParam.<br />

4.88.5 Re-entrancy<br />

The function is re-entrant.<br />

4.88.6 Code Example<br />

#include "gflib.h"<br />

Chapter 4 API References<br />

tFrac32 f32In;<br />

tFrac32 f32Out;<br />

GFLIB_UPPERLIMIT_T_F32 f32trMyUpperLimit = GFLIB_UPPERLIMIT_DEFAULT_F32;<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. 435

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

Saved successfully!

Ooh no, something went wrong!