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 />

u16In2 = 1;<br />

// output should be 0x1000 ~ FRAC16(0.125)<br />

f16Out = MLIB_ShR_F16(f16In1, u16In2);<br />

// output should be 0x1000 ~ FRAC16(0.125)<br />

f16Out = MLIB_ShR (f16In1, u16In2, Define F16);<br />

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

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

// as default<br />

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

// output should be 0x1000 ~ FRAC16(0.125)<br />

f16Out = MLIB_ShR (f16In1, u16In2);<br />

4.175 Function MLIB_Sub_F32<br />

This function subtracts the second parameter from the first one.<br />

4.175.1 Declaration<br />

tFrac32 MLIB_Sub_F32(register tFrac32 f32In1, register tFrac32 f32In2);<br />

4.175.2 Arguments<br />

Table 4-212. MLIB_Sub_F32 arguments<br />

Type Name Direction Description<br />

register tFrac32 f32In1 input Oper<strong>and</strong> is a 32-bit number normalized between[-1,1).<br />

register tFrac32 f32In2 input Oper<strong>and</strong> is a 32-bit number normalized between[-1,1).<br />

register tFrac32 f32In1 input Oper<strong>and</strong> is a 32-bit number normalized between[-1,1)<br />

register tFrac32 f32In2 input Oper<strong>and</strong> is a 32-bit number normalized between[-1,1)<br />

4.175.3 Return<br />

Chapter 4 API References<br />

The subtraction of the second argument from the first argument.The subtraction of the<br />

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 />

Freescale Semiconductor, Inc. 661

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

Saved successfully!

Ooh no, something went wrong!