1 2 3 4 5 6 7 8 9
/// Marker trait for mode pub(crate) trait MpuMode {} /// Accelerometer + Gyroscope + Temperature Sensor pub struct Imu; impl MpuMode for Imu {} /// Magnetometer + Accelerometer + Gyroscope + Temperature Sensor pub struct Marg; impl MpuMode for Marg {}