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