pub struct BootloaderInfo<const APP: bool, const NUM_SECTIONS: u8> { /* private fields */ }Expand description
Implements a Bootloader info (0x5500) object
Implementations§
Source§impl<const APP: bool, const NUM_SECTIONS: u8> BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> BootloaderInfo<APP, NUM_SECTIONS>
Sourcepub fn reset_flag(&self) -> bool
pub fn reset_flag(&self) -> bool
Read the reset_flag
The flag is set when a reset command is written to the object, and this function can be used by the application to determed when a reset to bootloader is commanded
Trait Implementations§
Source§impl<const APP: bool, const NUM_SECTIONS: u8> Default for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> Default for BootloaderInfo<APP, NUM_SECTIONS>
Source§fn default() -> BootloaderInfo<APP, NUM_SECTIONS>
fn default() -> BootloaderInfo<APP, NUM_SECTIONS>
Returns the “default value” for a type. Read more
Source§impl<const APP: bool, const NUM_SECTIONS: u8> ProvidesSubObjects for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> ProvidesSubObjects for BootloaderInfo<APP, NUM_SECTIONS>
Source§fn get_sub_object(&self, sub: u8) -> Option<(SubInfo, &dyn SubObjectAccess)>
fn get_sub_object(&self, sub: u8) -> Option<(SubInfo, &dyn SubObjectAccess)>
Get a sub object by index Read more
Source§fn object_code(&self) -> ObjectCode
fn object_code(&self) -> ObjectCode
What type of object is this
Auto Trait Implementations§
impl<const APP: bool, const NUM_SECTIONS: u8> !Freeze for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> RefUnwindSafe for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> Send for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> Sync for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> Unpin for BootloaderInfo<APP, NUM_SECTIONS>
impl<const APP: bool, const NUM_SECTIONS: u8> UnwindSafe for BootloaderInfo<APP, NUM_SECTIONS>
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
Source§impl<T> ObjectAccess for T
impl<T> ObjectAccess for T
Source§fn read(
&self,
sub: u8,
offset: usize,
buf: &mut [u8],
) -> Result<usize, AbortCode>
fn read( &self, sub: u8, offset: usize, buf: &mut [u8], ) -> Result<usize, AbortCode>
Read raw bytes from a subobject Read more
Source§fn read_size(&self, sub: u8) -> Result<usize, AbortCode>
fn read_size(&self, sub: u8) -> Result<usize, AbortCode>
Get the number of bytes available for a read
Source§fn write(&self, sub: u8, data: &[u8]) -> Result<(), AbortCode>
fn write(&self, sub: u8, data: &[u8]) -> Result<(), AbortCode>
Write raw bytes to a subobject Read more
Source§fn begin_partial(&self, sub: u8) -> Result<(), AbortCode>
fn begin_partial(&self, sub: u8) -> Result<(), AbortCode>
Initialize a new partial write Read more
Source§fn write_partial(&self, sub: u8, buf: &[u8]) -> Result<(), AbortCode>
fn write_partial(&self, sub: u8, buf: &[u8]) -> Result<(), AbortCode>
Perform a partial write of bytes to a subobject Read more
Source§fn end_partial(&self, sub: u8) -> Result<(), AbortCode>
fn end_partial(&self, sub: u8) -> Result<(), AbortCode>
Finalize a previous partial write Read more
Source§fn set_event_flag(&self, sub: u8) -> Result<(), AbortCode>
fn set_event_flag(&self, sub: u8) -> Result<(), AbortCode>
Set an event flag for the specified sub object on this object Read more
Source§fn read_event_flag(&self, sub: u8) -> bool
fn read_event_flag(&self, sub: u8) -> bool
Read an event flag for the specified sub object Read more
Source§fn object_code(&self) -> ObjectCode
fn object_code(&self) -> ObjectCode
Get the type of this object
Source§fn max_sub_number(&self) -> u8
fn max_sub_number(&self) -> u8
Get the highest sub index available in this object
Source§fn clear_events(&self)
fn clear_events(&self)
Clear event flags for all sub objects Read more
Source§fn access_type(&self, sub: u8) -> Result<AccessType, AbortCode>
fn access_type(&self, sub: u8) -> Result<AccessType, AbortCode>
Get the access type of a specific sub object
Source§fn data_type(&self, sub: u8) -> Result<DataType, AbortCode>
fn data_type(&self, sub: u8) -> Result<DataType, AbortCode>
Get the data type of a specific sub object
Source§fn size(&self, sub: u8) -> Result<usize, AbortCode>
fn size(&self, sub: u8) -> Result<usize, AbortCode>
Get the maximum size of an sub object Read more