![]() |
LibDriver MMA7660FC
|
mma7660fc example driver modules More...
Functions | |
| uint8_t | mma7660fc_basic_init (void) |
| basic example init | |
| uint8_t | mma7660fc_basic_deinit (void) |
| basic example deinit | |
| uint8_t | mma7660fc_basic_read (float g[3]) |
| basic example read | |
| uint8_t | mma7660fc_motion_irq_handler (void) |
| motion irq | |
| uint8_t | mma7660fc_motion_init (void(*callback)(uint8_t type)) |
| motion example init | |
| uint8_t | mma7660fc_motion_deinit (void) |
| motion example deinit | |
| uint8_t | mma7660fc_motion_read (float g[3]) |
| motion example read | |
mma7660fc example driver modules
| #define MMA7660FC_MOTION_DEFAULT_AUTO_SLEEP MMA7660FC_BOOL_TRUE |
enable auto sleep
Definition at line 67 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_AUTO_SLEEP_INTERRUPT MMA7660FC_BOOL_TRUE |
enable auto sleep interrupt
Definition at line 57 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_AUTO_SLEEP_RATE MMA7660FC_AUTO_SLEEP_RATE_120 |
tap detection rate 120
Definition at line 63 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_AUTO_WAKE_RATE MMA7660FC_AUTO_WAKE_RATE_32 |
auto wake rate 32
Definition at line 64 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_AUTO_WAKE_UP MMA7660FC_BOOL_TRUE |
enable auto wake up
Definition at line 66 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_FRONT_BACK_INTERRUPT MMA7660FC_BOOL_TRUE |
mma7660fc motion example default definition
enable front back interrupt
Definition at line 54 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_INTERRUPT_ACTIVE_LEVEL MMA7660FC_INTERRUPT_ACTIVE_LEVEL_LOW |
low
Definition at line 69 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_INTERRUPT_PIN_TYPE MMA7660FC_INTERRUPT_PIN_TYPE_PUSH_PULL |
push-pull
Definition at line 68 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_SHAKE_X MMA7660FC_BOOL_TRUE |
enable shake x interrupt
Definition at line 59 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_SHAKE_Y MMA7660FC_BOOL_TRUE |
enable shake y interrupt
Definition at line 60 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_SHAKE_Z MMA7660FC_BOOL_TRUE |
enable shake z interrupt
Definition at line 61 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_SLEEP_COUNT 127 |
sleep count 127
Definition at line 65 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_SLEEP_COUNTER_PRESCALER MMA7660FC_SLEEP_COUNTER_PRESCALER_1 |
sleep counter prescaler 1
Definition at line 62 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TAP_DETECTION_THRESHOLD 2 |
threshold 2
Definition at line 71 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TAP_INTERRUPT MMA7660FC_BOOL_TRUE |
enable tap interrupt
Definition at line 56 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TAP_PULSE_DEBOUNCE 10.0f |
10ms
Definition at line 75 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TAP_X MMA7660FC_BOOL_TRUE |
enable tap x
Definition at line 72 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TAP_Y MMA7660FC_BOOL_TRUE |
enable tap y
Definition at line 73 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TAP_Z MMA7660FC_BOOL_TRUE |
enable tap z
Definition at line 74 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_TILT_DEBOUNCE_FILTER MMA7660FC_TILT_DEBOUNCE_FILTER_8 |
filter 8
Definition at line 70 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_UP_DOWN_RIGHT_LEFT_INTERRUPT MMA7660FC_BOOL_TRUE |
enable up down right left interrupt
Definition at line 55 of file driver_mma7660fc_motion.h.
| #define MMA7660FC_MOTION_DEFAULT_UPDATE_INTERRUPT MMA7660FC_BOOL_FALSE |
disable update interrupt
Definition at line 58 of file driver_mma7660fc_motion.h.
| uint8_t mma7660fc_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 333 of file driver_mma7660fc_basic.c.
| uint8_t mma7660fc_basic_init | ( | void | ) |
basic example init
Definition at line 48 of file driver_mma7660fc_basic.c.
| uint8_t mma7660fc_basic_read | ( | float | g[3] | ) |
basic example read
| [out] | *g | pointer to a converted data buffer |
Definition at line 312 of file driver_mma7660fc_basic.c.
| uint8_t mma7660fc_motion_deinit | ( | void | ) |
motion example deinit
Definition at line 362 of file driver_mma7660fc_motion.c.
| uint8_t mma7660fc_motion_init | ( | void(* | callback )(uint8_t type) | ) |
motion example init
| [in] | *callback | pointer to a callback address |
Definition at line 66 of file driver_mma7660fc_motion.c.
| uint8_t mma7660fc_motion_irq_handler | ( | void | ) |
motion irq
Definition at line 48 of file driver_mma7660fc_motion.c.
| uint8_t mma7660fc_motion_read | ( | float | g[3] | ) |
motion example read
| [out] | *g | pointer to a converted data buffer |
Definition at line 341 of file driver_mma7660fc_motion.c.