Download MMA9559L Intelligent, Motion-Sensing Platform Software Reference
Transcript
4.3.4.10
int mma9559_user_trap1(int d0, int d1, int d2, void *a0, void *a1)
This function issues a trap instruction that calls the function registered in the firmware variables structure
entry user_trap_handler[1]. The parameter variables are passed to the trap function and their usage is
determined by the user trap handler function.
Return
The integer value returned by the user_trap_handler function.
NOTE
The user trap handler can be called directly using the asm { trap
#TRAP_USER_1 } instruction. This function makes it easier to set the
parameter values.
Parameter
Table 4-12. int mma9559_user_trap1 parameters
Parameter
Description
d0
First integer parameter (user-defined meaning).
d1
Second integer parameter (user-defined meaning).
d2
Third integer parameter (user-defined meaning).
a0
First pointer parameter (user-defined meaning).
a1
Second pointer parameter (user-defined meaning).
MMA9559L Intelligent, Motion-Sensing Platform Software Reference Manual, Rev. 0.1
Freescale Semiconductor, Inc.
71