[−][src]Struct mfxstm32l152::MFX
Methods
impl<I2C, GPIO, Delay, E> MFX<I2C, GPIO, Delay> where
I2C: SerialRead<AutoIncrementI2c, RoRegister, Error = E> + SerialRead<NoIncrementI2c, Register, Error = E> + SerialWrite<NoIncrementI2c, Register, Error = E>,
GPIO: OutputPin,
Delay: DelayUs<u32>,
[src]
I2C: SerialRead<AutoIncrementI2c, RoRegister, Error = E> + SerialRead<NoIncrementI2c, Register, Error = E> + SerialWrite<NoIncrementI2c, Register, Error = E>,
GPIO: OutputPin,
Delay: DelayUs<u32>,
pub fn new(i2c: I2C, wakup: GPIO, delay: Delay, address: u8) -> Result<Self, E>
[src]
pub fn set_idd_ctrl(
&mut self,
calibration_disabled: bool,
vref_disabled: bool,
nb_shunt: NbShunt
) -> Result<(), E>
[src]
&mut self,
calibration_disabled: bool,
vref_disabled: bool,
nb_shunt: NbShunt
) -> Result<(), E>
pub fn set_idd_nb_measurment(&mut self, nb: u8) -> Result<(), E>
[src]
pub fn set_idd_shunt0(&mut self, data: u16, stab_delay: u8) -> Result<(), E>
[src]
pub fn set_idd_shunt1(&mut self, data: u16, stab_delay: u8) -> Result<(), E>
[src]
pub fn set_idd_shunt2(&mut self, data: u16, stab_delay: u8) -> Result<(), E>
[src]
pub fn set_idd_shunt3(&mut self, data: u16, stab_delay: u8) -> Result<(), E>
[src]
pub fn set_idd_shunt4(&mut self, data: u16, stab_delay: u8) -> Result<(), E>
[src]
pub fn set_idd_gain(&mut self, value: u16) -> Result<(), E>
[src]
pub fn set_idd_pre_delay(&mut self, unit: DelayUnit, value: u8) -> Result<(), E>
[src]
pub fn set_idd_meas_delta_delay(
&mut self,
unit: DelayUnit,
value: u8
) -> Result<(), E>
[src]
&mut self,
unit: DelayUnit,
value: u8
) -> Result<(), E>
pub fn set_idd_vdd_min(&mut self, value: u16) -> Result<(), E>
[src]
pub fn idd_start(&mut self) -> Result<(), E>
[src]
pub fn idd_get_value(&mut self) -> Result<Ampere, E>
[src]
pub fn idd_ctrl(&mut self) -> Result<u8, E>
[src]
pub fn idd_last_shunt_used(&mut self) -> Result<u8, E>
[src]
pub fn idd_shunts_on_board(&mut self) -> Result<u8, E>
[src]
pub fn error_code(&mut self) -> Result<u8, E>
[src]
pub fn chip_id(&mut self) -> Result<u8, E>
[src]
pub fn firmware_version(&mut self) -> Result<u16, E>
[src]
Auto Trait Implementations
impl<I2C, GPIO, Delay> Send for MFX<I2C, GPIO, Delay> where
Delay: Send,
GPIO: Send,
I2C: Send,
Delay: Send,
GPIO: Send,
I2C: Send,
impl<I2C, GPIO, Delay> Sync for MFX<I2C, GPIO, Delay> where
Delay: Sync,
GPIO: Sync,
I2C: Sync,
Delay: Sync,
GPIO: Sync,
I2C: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,