pub struct Config {
pub data_rate: Rate,
pub gain: Gain,
pub samples: Samples,
}Expand description
Configuration settings for the HMC5883L magnetometer.
This struct holds the data rate and gain settings for the magnetometer.
The data_rate field determines the data output rate of the magnetometer,
and the gain field determines the gain setting of the magnetometer.
Fields§
§data_rate: Rate§gain: Gain§samples: SamplesTrait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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