Struct bluerobotics_ping::ping360::ResetStruct
source · 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 copy 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 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§fn eq(&self, other: &ResetStruct) -> bool
fn eq(&self, other: &ResetStruct) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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