Struct multiwii_serial_protocol::structs::MspMotor3DConfig
[−]
[src]
pub struct MspMotor3DConfig { pub deadband_3d_low: u16, pub deadband_3d_high: u16, pub neutral_3d: u16, }
Fields
deadband_3d_low: u16
deadband_3d_high: u16
neutral_3d: u16
Methods
impl MspMotor3DConfig
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 6]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 6]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 6]> for MspMotor3DConfig
[src]
Structure that can be packed an unpacked into 6 bytes.
Bit, MSB0 | Name | Type |
0:15 | deadband_3d_low | u16 |
16:31 | deadband_3d_high | u16 |
32:47 | neutral_3d | u16 |
fn pack(&self) -> [u8; 6]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 6]) -> Result<MspMotor3DConfig, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspMotor3DConfig
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspMotor3DConfig
[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 MspMotor3DConfig
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspMotor3DConfig
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspMotor3DConfig
[src]
impl Copy for MspMotor3DConfig
[src]
impl Clone for MspMotor3DConfig
[src]
fn clone(&self) -> MspMotor3DConfig
[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 MspMotor3DConfig
[src]
fn default() -> MspMotor3DConfig
[src]
Returns the "default value" for a type. Read more