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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.66.1 Declaration<br />

tFloat GFLIB_LowerLimit_FLT(tFloat fltIn, const GFLIB_LOWERLIMIT_T_FLT *const pParam);<br />

4.66.2 Arguments<br />

Table 4-83. GFLIB_LowerLimit_FLT<br />

arguments<br />

Type Name Direction Description<br />

tFloat fltIn input Input value.<br />

const<br />

GFLIB_LOWERLIMIT_<br />

T_FLT *const<br />

4.66.3 Return<br />

pParam input Pointer to the limits structure.<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 />

4.66.4 Description<br />

The function tests whether the input value is above the lower limit. If so, the input value<br />

will be returned. Otherwise, if the input value is below the lower limit, the lower limit<br />

will be returned.<br />

The lower limit f32LowerLimit can be found in the limits structure, supplied to the<br />

function as a pointer pParam.<br />

4.66.5 Re-entrancy<br />

The function is re-entrant.<br />

4.66.6 Code Example<br />

#include "gflib.h"<br />

tFloat fltIn;<br />

tFloat fltOut;<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. 355

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

Saved successfully!

Ooh no, something went wrong!