pub struct EscCommand {
pub throttle: u16,
pub request_telemetry: bool,
}Expand description
Command sent from Copper into the ESC bridge.
Fields§
§throttle: u16Raw throttle value (0 - 2047). Values >= 48 arm the ESC per DSHOT spec.
request_telemetry: boolWhether the bridge should request telemetry for this frame.
Implementations§
Source§impl EscCommand
impl EscCommand
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EscCommand
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EscCommand
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EscCommand
impl Clone for EscCommand
Source§fn clone(&self) -> EscCommand
fn clone(&self) -> EscCommand
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 EscCommand
impl Debug for EscCommand
Source§impl<__Context> Decode<__Context> for EscCommand
impl<__Context> Decode<__Context> for EscCommand
Source§impl Default for EscCommand
impl Default for EscCommand
Source§impl<'de> Deserialize<'de> for EscCommand
impl<'de> Deserialize<'de> for EscCommand
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 Encode for EscCommand
impl Encode for EscCommand
Source§impl PartialEq for EscCommand
impl PartialEq for EscCommand
Source§impl Serialize for EscCommand
impl Serialize for EscCommand
impl Copy for EscCommand
impl Eq for EscCommand
impl StructuralPartialEq for EscCommand
Auto Trait Implementations§
impl Freeze for EscCommand
impl RefUnwindSafe for EscCommand
impl Send for EscCommand
impl Sync for EscCommand
impl Unpin for EscCommand
impl UnwindSafe for EscCommand
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