Struct multiwii_serial_protocol::structs::MspFilterConfig
[−]
[src]
pub struct MspFilterConfig { pub gyro_soft_lpf_hz: u8, pub dterm_lpf_hz: u16, pub yaw_lpf_hz: u16, pub gyro_soft_notch_hz_1: u16, pub gyro_soft_notch_cutoff_1: u16, pub dterm_notch_hz: u16, pub dterm_notch_cutoff: u16, pub gyro_soft_notch_hz_2: u16, pub gyro_soft_notch_cutoff_2: u16, }
Fields
gyro_soft_lpf_hz: u8
dterm_lpf_hz: u16
yaw_lpf_hz: u16
gyro_soft_notch_hz_1: u16
gyro_soft_notch_cutoff_1: u16
dterm_notch_hz: u16
dterm_notch_cutoff: u16
gyro_soft_notch_hz_2: u16
gyro_soft_notch_cutoff_2: u16
Methods
impl MspFilterConfig
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 17]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 17]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 17]> for MspFilterConfig
[src]
Structure that can be packed an unpacked into 17 bytes.
Bit, MSB0 | Name | Type |
0:7 | gyro_soft_lpf_hz | u8 |
8:23 | dterm_lpf_hz | u16 |
24:39 | yaw_lpf_hz | u16 |
40:55 | gyro_soft_notch_hz_1 | u16 |
56:71 | gyro_soft_notch_cutoff_1 | u16 |
72:87 | dterm_notch_hz | u16 |
88:103 | dterm_notch_cutoff | u16 |
104:119 | gyro_soft_notch_hz_2 | u16 |
120:135 | gyro_soft_notch_cutoff_2 | u16 |
fn pack(&self) -> [u8; 17]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 17]) -> Result<MspFilterConfig, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspFilterConfig
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspFilterConfig
[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 MspFilterConfig
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspFilterConfig
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspFilterConfig
[src]
impl Copy for MspFilterConfig
[src]
impl Clone for MspFilterConfig
[src]
fn clone(&self) -> MspFilterConfig
[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 MspFilterConfig
[src]
fn default() -> MspFilterConfig
[src]
Returns the "default value" for a type. Read more