LibDriver MMA7660FC
Loading...
Searching...
No Matches
driver_mma7660fc_motion.h File Reference

driver mma7660fc motion header file More...

Include dependency graph for driver_mma7660fc_motion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MMA7660FC_MOTION_DEFAULT_FRONT_BACK_INTERRUPT   MMA7660FC_BOOL_TRUE
 mma7660fc motion example default definition
#define MMA7660FC_MOTION_DEFAULT_UP_DOWN_RIGHT_LEFT_INTERRUPT   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_TAP_INTERRUPT   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_AUTO_SLEEP_INTERRUPT   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_UPDATE_INTERRUPT   MMA7660FC_BOOL_FALSE
#define MMA7660FC_MOTION_DEFAULT_SHAKE_X   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_SHAKE_Y   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_SHAKE_Z   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_SLEEP_COUNTER_PRESCALER   MMA7660FC_SLEEP_COUNTER_PRESCALER_1
#define MMA7660FC_MOTION_DEFAULT_AUTO_SLEEP_RATE   MMA7660FC_AUTO_SLEEP_RATE_120
#define MMA7660FC_MOTION_DEFAULT_AUTO_WAKE_RATE   MMA7660FC_AUTO_WAKE_RATE_32
#define MMA7660FC_MOTION_DEFAULT_SLEEP_COUNT   127
#define MMA7660FC_MOTION_DEFAULT_AUTO_WAKE_UP   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_AUTO_SLEEP   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_INTERRUPT_PIN_TYPE   MMA7660FC_INTERRUPT_PIN_TYPE_PUSH_PULL
#define MMA7660FC_MOTION_DEFAULT_INTERRUPT_ACTIVE_LEVEL   MMA7660FC_INTERRUPT_ACTIVE_LEVEL_LOW
#define MMA7660FC_MOTION_DEFAULT_TILT_DEBOUNCE_FILTER   MMA7660FC_TILT_DEBOUNCE_FILTER_8
#define MMA7660FC_MOTION_DEFAULT_TAP_DETECTION_THRESHOLD   2
#define MMA7660FC_MOTION_DEFAULT_TAP_X   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_TAP_Y   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_TAP_Z   MMA7660FC_BOOL_TRUE
#define MMA7660FC_MOTION_DEFAULT_TAP_PULSE_DEBOUNCE   10.0f

Functions

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

Detailed Description

driver mma7660fc motion header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2025-03-31

history

Date Version Author Description
2025/03/31 1.0 Shifeng Li first upload

Definition in file driver_mma7660fc_motion.h.