Struct ross_eeprom::Eeprom [−][src]
pub struct Eeprom<I2C, PS, AS> { /* fields omitted */ }
Implementations
impl<I2C> Eeprom<I2C, B32, TwoBytes> where
I2C: _embedded_hal_blocking_i2c_WriteRead<Error = Error<Error>> + _embedded_hal_blocking_i2c_Write<Error = Error<Error>>,
impl<I2C> Eeprom<I2C, B32, TwoBytes> where
I2C: _embedded_hal_blocking_i2c_WriteRead<Error = Error<Error>> + _embedded_hal_blocking_i2c_Write<Error = Error<Error>>,
pub fn write_device_info(
&mut self,
device_info: &DeviceInfo,
delay: &mut Delay
) -> Result<(), EepromError>
pub fn write_event_processors(
&mut self,
event_processors: &Vec<EventProcessor>,
delay: &mut Delay
) -> Result<(), EepromError>
pub fn write_data(
&mut self,
address: u32,
data: &[u8],
delay: &mut Delay
) -> Result<(), EepromError>
Trait Implementations
Auto Trait Implementations
impl<I2C, PS, AS> RefUnwindSafe for Eeprom<I2C, PS, AS> where
AS: RefUnwindSafe,
I2C: RefUnwindSafe,
PS: RefUnwindSafe,
impl<I2C, PS, AS> UnwindSafe for Eeprom<I2C, PS, AS> where
AS: UnwindSafe,
I2C: UnwindSafe,
PS: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more