Struct multiwii_serial_protocol::structs::MspRcDeadband
[−]
[src]
pub struct MspRcDeadband { pub deadband: u8, pub yaw_deadband: u8, pub alt_hold_deadband: u8, pub deadband_3d_throttle: u16, }
Fields
deadband: u8
yaw_deadband: u8
alt_hold_deadband: u8
deadband_3d_throttle: u16
Methods
impl MspRcDeadband
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 5]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 5]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 5]> for MspRcDeadband
[src]
Structure that can be packed an unpacked into 5 bytes.
Bit, MSB0 | Name | Type |
0:7 | deadband | u8 |
8:15 | yaw_deadband | u8 |
16:23 | alt_hold_deadband | u8 |
24:39 | deadband_3d_throttle | u16 |
fn pack(&self) -> [u8; 5]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 5]) -> Result<MspRcDeadband, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspRcDeadband
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspRcDeadband
[src]
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
Pack the structure into an output buffer.
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
[src]
Unpack the structure from a buffer.
fn packed_bytes() -> usize
[src]
Number of bytes that this structure demands for packing or unpacking.
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
Pack the structure into a new byte vector.
impl PackedStructDebug for MspRcDeadband
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspRcDeadband
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspRcDeadband
[src]
impl Copy for MspRcDeadband
[src]
impl Clone for MspRcDeadband
[src]
fn clone(&self) -> MspRcDeadband
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for MspRcDeadband
[src]
fn default() -> MspRcDeadband
[src]
Returns the "default value" for a type. Read more