|
| bool | init () const |
| | Initialize the component.
|
| |
| bool | shutdown () const |
| | Gracefully shutdown the component.
|
| |
|
Reading | get_reading () const |
| | get the latest accelerometer/gyroscope measurment
|
| |
|
bool | enable_free_fall_detection () const |
| | Enable free fall events detection.
|
| |
|
bool | disable_free_fall_detection () const |
| | Disable free fall events detection.
|
| |
|
bool | enable_big_motion_detection () const |
| | Enable big motion events detection.
|
| |
|
bool | disable_big_motion_detection () const |
| | Disable big motion events detection.
|
| |
|
bool | enable_step_detection () const |
| | Enable step motion event detection.
|
| |
|
bool | disable_step_detection () const |
| | Disable step motion event detection.
|
| |
|
bool | enable_tilt_detection () const |
| | Enable tilt detection.
|
| |
|
bool | disable_tilt_detection () const |
| | Disable tilt detection.
|
| |
| void | disable_detection (const InterruptType interr) const |
| | disable event detection
|
| |
| bool | enable_interrupt1 (const InterruptType interr) const |
| | Enable the interrupt 1 signal, with the given interrupt type.
|
| |
|
void | disable_interrupt1 () const |
| | Disable the interrupt 1 events.
|
| |
| bool | enable_interrupt2 (const InterruptType interr) const |
| | Enable the interrupt 2 signal, with the given interrupt type.
|
| |
|
void | disable_interrupt2 () const |
| | Disable the interrupt 2 events.
|
| |
|
uint16_t | get_step_count () const |
| | Return the step count, only available with the interrupt 2.
|
| |
|
bool | is_event_detected (const InterruptType interr) const |
| | return true if the interrupt is raised, do not depend on physical interrupt pins
|
| |