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.

}<br />

// output should be 0x20000000<br />

f32Out = MLIB_SubSat_F32(f32In1,f32In2);<br />

// output should be 0x20000000<br />

f32Out = MLIB_SubSat (f32In1,f32In2,Define F32);<br />

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

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

// as default<br />

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

// output should be 0x20000000<br />

f32Out = MLIB_SubSat (f32In1,f32In2);<br />

4.179 Function MLIB_SubSat_F16<br />

This function subtracts the second parameter from the first one <strong>and</strong> saturate if necessary.<br />

4.179.1 Declaration<br />

tFrac16 MLIB_SubSat_F16(register tFrac16 f16In1, register tFrac16 f16In2);<br />

4.179.2 Arguments<br />

Table 4-216. MLIB_SubSat_F16 arguments<br />

Type Name Direction Description<br />

register tFrac16 f16In1 input Oper<strong>and</strong> is a 16-bit number normalized between [-1,1).<br />

register tFrac16 f16In2 input Oper<strong>and</strong> is a 16-bit number normalized between [-1,1).<br />

4.179.3 Return<br />

The subtraction of the second argument from the first argument.<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. 671

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

Saved successfully!

Ooh no, something went wrong!