Interface for the physical components of the inertial motion unit.
EventType
Describe an IMU detection event.
Definition: imu.h:26
@ BigMotion
raised during a big acceleration
@ Step
raised during step detection
@ Tilt
raised event during orientation flip
@ FreeFall
raised during a free fall event
bool is_interrupt2_enabled()
Read and reset the interrupt2 bit.
Definition: imu.cpp:152
bool enable_event_detection(const EventType eventType)
Enable a specific event.
Definition: imu.cpp:63
void shutdown()
Called once on program shutdown, to gracefully close the driver.
Definition: imu.cpp:54
bool link_event_to_interrupt1(const EventType eventType)
Enable the interrupt 1 with an event type, wired to the interrupt pin 1 of IMU.
Definition: imu.cpp:160
void init()
Called once on program start, initialize the driver.
Definition: imu.cpp:40
bsp::imu::Reading get_filtered_reading(const bool resetFilter)
get the filtered IMU readings
Definition: imu.cpp:256
bool disable_event_detection(const EventType eventType)
Disable a specific event.
Definition: imu.cpp:87
bool is_event_detected(const EventType eventType)
Read the event bit.
Definition: imu.cpp:111
void unlink_interrupt_2()
Disable the interrupts 2.
Definition: imu.cpp:254
bool is_interrupt1_enabled()
Read and reset the interrupt1 bit.
Definition: imu.cpp:140
void unlink_interrupt_1()
Disable the interrupts 1.
Definition: imu.cpp:207
bool link_event_to_interrupt2(const EventType eventType)
Enable the interrupt 2 with an event type, wired to the interrupt pin 2 of IMU EVENT BigMotion & Step...
Definition: imu.cpp:210
Program scope.
Definition: control_fixed_modes.hpp:12
IMU reading.
Definition: imu_wrapper.h:19