[−][src]Struct hmc5983::HMC5983
Implementations
impl<SI, CommE, PinE> HMC5983<SI> where
SI: SensorInterface<InterfaceError = Error<CommE, PinE>>,
[src]
SI: SensorInterface<InterfaceError = Error<CommE, PinE>>,
pub fn new_with_interface(sensor_interface: SI) -> Self
[src]
pub fn init(
&mut self,
delay_source: &mut impl DelayMs<u8>
) -> Result<(), Error<CommE, PinE>>
[src]
&mut self,
delay_source: &mut impl DelayMs<u8>
) -> Result<(), Error<CommE, PinE>>
pub fn set_gain(&mut self, gain: GainSetting) -> Result<(), Error<CommE, PinE>>
[src]
Set the mag gain, which determines the range
pub fn set_all_config_a(
&mut self,
mode: MeasurementModeSetting,
odr: OdrSetting,
averaging: SampleAvgSetting,
temp_enabled: bool
) -> Result<(), Error<CommE, PinE>>
[src]
&mut self,
mode: MeasurementModeSetting,
odr: OdrSetting,
averaging: SampleAvgSetting,
temp_enabled: bool
) -> Result<(), Error<CommE, PinE>>
Set all of the Config A register settings
pub fn get_mag_vector(&mut self) -> Result<[i16; 3], Error<CommE, PinE>>
[src]
pub fn get_temperature(&mut self) -> Result<i16, Error<CommE, PinE>>
[src]
Read temperature from device Result is degrees Celsius
Auto Trait Implementations
impl<SI> Send for HMC5983<SI> where
SI: Send,
SI: Send,
impl<SI> Sync for HMC5983<SI> where
SI: Sync,
SI: Sync,
impl<SI> Unpin for HMC5983<SI> where
SI: Unpin,
SI: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,