pub enum ClockSource {
Internal = 0,
Xgyro = 1,
Ygyro = 2,
Zgyro = 3,
External32768 = 4,
External19200 = 5,
Stop = 7,
}Expand description
Available clock sources for the MPU6050.
Clock source selection considerations:
- Accuracy requirements
- Power consumption needs
- Temperature variations
- External component availability
Variants§
Internal = 0
Internal 8MHz oscillator
- Fastest startup
- Less accurate
- Higher temperature drift
Xgyro = 1
X-axis gyroscope reference
- Recommended for general use
- Good stability
- Low temperature drift
Ygyro = 2
Y-axis gyroscope reference
- Alternative to X-axis
- Similar stability to X-axis
Zgyro = 3
Z-axis gyroscope reference
- Alternative to X/Y-axis
- Similar stability to X/Y-axis
External32768 = 4
External 32.768kHz crystal
- Highest accuracy
- Requires external crystal
- Common RTC frequency
External19200 = 5
External 19.2MHz crystal
- High accuracy
- Requires external crystal
- Typical system clock frequency
Stop = 7
Stops the clock
- Lowest power consumption
- Sensor stops operating
- Must be restarted to resume
Trait Implementations§
Source§impl Clone for ClockSource
impl Clone for ClockSource
Source§fn clone(&self) -> ClockSource
fn clone(&self) -> ClockSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClockSource
impl Debug for ClockSource
impl Copy for ClockSource
Auto Trait Implementations§
impl Freeze for ClockSource
impl RefUnwindSafe for ClockSource
impl Send for ClockSource
impl Sync for ClockSource
impl Unpin for ClockSource
impl UnwindSafe for ClockSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more