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.

Define MLIB_ShBi<br />

8.281 Define MLIB_ShBi<br />

#include <br />

8.281.1 Macro Definition<br />

#define MLIB_ShBi macro_dispatcher(MLIB_ShBi, __VA_ARGS__)(__VA_ARGS__)<br />

8.281.2 Description<br />

Based on sign of second parameter this function shifts the first parameter to right or left.<br />

If the sign of second parameter is negative, shift to right.<br />

8.282 Define MLIB_ShBiSat<br />

#include <br />

8.282.1 Macro Definition<br />

#define MLIB_ShBiSat macro_dispatcher(MLIB_ShBiSat, __VA_ARGS__)(__VA_ARGS__)<br />

8.282.2 Description<br />

Based on sign of second parameter this function shifts the first parameter to right or left<br />

<strong>and</strong> saturate if necessary. If the sign of second parameter is negative, shift to right.<br />

8.283 Define MLIB_ShL<br />

#include <br />

8.283.1 Macro Definition<br />

#define MLIB_ShL macro_dispatcher(MLIB_ShL, __VA_ARGS__)(__VA_ARGS__)<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 />

894 Freescale Semiconductor, Inc.

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

Saved successfully!

Ooh no, something went wrong!