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

f32Out = MLIB_Mac_F32F16F16(f32In1, f16In2, f16In3);<br />

// output should be FRAC32(0.3025) = 0x26B851EB<br />

f32Out = MLIB_Mac (f32In1, f32In2, f32In3, F32F16F16);<br />

4.144 Function MLIB_Mac_F16<br />

This function implements the multiply accumulate function.<br />

4.144.1 Declaration<br />

tFrac16 MLIB_Mac_F16(register tFrac16 f16In1, register tFrac16 f16In2, register tFrac16<br />

f16In3);<br />

4.144.2 Arguments<br />

Table 4-181. MLIB_Mac_F16 arguments<br />

Type Name Direction Description<br />

register tFrac16 f16In1 input Input value to be add.<br />

register tFrac16 f16In2 input First value to be multiplied.<br />

register tFrac16 f16In3 input Second value to be multiplied.<br />

register tFrac16 f16In1 input Input value to be add<br />

register tFrac16 f16In2 input First value to be multiplied<br />

register tFrac16 f16In3 input Second value to be multiplied<br />

4.144.3 Return<br />

Chapter 4 API References<br />

Multiplied second <strong>and</strong> third input value with adding of first input value.Multiplied second<br />

<strong>and</strong> third input value with adding of first input value<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. 601

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

Saved successfully!

Ooh no, something went wrong!