pub struct ResetStruct {
pub bootloader: u8,
pub reserved: u8,
}Expand description
Reset the sonar. The bootloader may run depending on the selection according to the bootloader payload field. When the bootloader runs, the external LED flashes at 5Hz. If the bootloader is not contacted within 5 seconds, it will run the current program. If there is no program, then the bootloader will wait forever for a connection. Note that if you issue a reset then you will have to close all your open comm ports and go back to issuing either a discovery message for UDP or go through the break sequence for serial comms before you can talk to the sonar again.
Fields§
§bootloader: u80 = skip bootloader; 1 = run bootloader
reserved: u8reserved
Trait Implementations§
Source§impl Clone for ResetStruct
impl Clone for ResetStruct
Source§fn clone(&self) -> ResetStruct
fn clone(&self) -> ResetStruct
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResetStruct
impl Debug for ResetStruct
Source§impl Default for ResetStruct
impl Default for ResetStruct
Source§fn default() -> ResetStruct
fn default() -> ResetStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResetStruct
impl<'de> Deserialize<'de> for ResetStruct
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeserializePayload for ResetStruct
impl DeserializePayload for ResetStruct
fn deserialize(payload: &[u8]) -> Self
Source§impl MessageInfo for ResetStruct
impl MessageInfo for ResetStruct
Source§impl PartialEq for ResetStruct
impl PartialEq for ResetStruct
Source§impl Serialize for ResetStruct
impl Serialize for ResetStruct
Source§impl SerializePayload for ResetStruct
impl SerializePayload for ResetStruct
impl StructuralPartialEq for ResetStruct
Auto Trait Implementations§
impl Freeze for ResetStruct
impl RefUnwindSafe for ResetStruct
impl Send for ResetStruct
impl Sync for ResetStruct
impl Unpin for ResetStruct
impl UnwindSafe for ResetStruct
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