[−][src]Struct multiwii_serial_protocol_v2::structs::MspServoConfig
Fields
min: u16
max: u16
middle: u16
rate: i8
unused1: u8
unused2: u8
forward_from_channel: u8
reverse_input: u32
Implementations
impl MspServoConfig
[src]
pub fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 14]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 14]>
Display formatter for console applications
Trait Implementations
impl Clone for MspServoConfig
[src]
fn clone(&self) -> MspServoConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MspServoConfig
[src]
impl Debug for MspServoConfig
[src]
impl Display for MspServoConfig
[src]
impl PackedStruct<[u8; 14]> for MspServoConfig
[src]
Structure that can be packed an unpacked into 14 bytes.
Bit, MSB0 | Name | Type |
0:15 | min | u16 |
16:31 | max | u16 |
32:47 | middle | u16 |
48:55 | rate | i8 |
56:63 | unused1 | u8 |
64:71 | unused2 | u8 |
72:79 | forward_from_channel | u8 |
80:111 | reverse_input | u32 |
fn pack(&self) -> [u8; 14]
[src]
fn unpack(src: &[u8; 14]) -> Result<MspServoConfig, PackingError>
[src]
impl PackedStructDebug for MspServoConfig
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl PackedStructInfo for MspServoConfig
[src]
fn packed_bits() -> usize
[src]
impl PackedStructSlice for MspServoConfig
[src]
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
[src]
fn packed_bytes() -> usize
[src]
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for MspServoConfig
impl Send for MspServoConfig
impl Sync for MspServoConfig
impl Unpin for MspServoConfig
impl UnwindSafe for MspServoConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,