Data Structures; Mma9559_Idle_T - Freescale Semiconductor MMA9559L Software Reference Manual

Intelligent, motion-sensing platform
Table of Contents

Advertisement

4.3.3

Data structures

This section describes the data structures used in the events and scheduling functional category.
4.3.3.1

mma9559_idle_t

This structure holds the configuration variables that control the operation of the device when the
function is called. The use of this structure is described in the
mma9559_idle()
The
and
use_stop_fc
function. While these fields can be read anywhere, any code that modifies them should only be executed
when interrupts are disabled.
This can be achieved in three ways:
Within the
user_exception_handler()
When interrupts are disabled, using the
Using the
mma9559_idle_use_stop_config()
See also:
void mma9559_idle(void)
void mma9559_idle_use_stop_config(idle_config_t config, idle_bits_t bits)
Fields
Field
int8 stop_cfg
Override the normal idle mode stop configuration, based upon the value of this field:
• stop_cfg < 0: do not use any Stop mode
• stop_cfg > 0: use the supplied value as the Stop mode
• stop_cfg = 0: use the use_stop_fc and use_stop_sc fields
vuint32 use_stop_fc
If this is non-zero then STOP mode must use StopFC (Fast Clock) mode.
vuint32 use_stop_sc
If this is non-zero and use_stop_fc is zero then STOP mode must use StopSC (Slow Clock) mode.
MMA9559L Intelligent, Motion-Sensing Platform Software Reference Manual, Rev. 0.1
60
fields can be modified inside the
use_stop_sc
Table 4-6. mma9559_idle_t fields
or
user_trap_handler()
interrupts_disable()
function
Description
mma9559_idle()
user_exception_handler()
functions
function
Freescale Semiconductor, Inc.
function.

Advertisement

Table of Contents
loading

Table of Contents