Struct multiwii_serial_protocol::structs::MspStatusEx
[−]
[src]
pub struct MspStatusEx { pub cycle_time: u16, pub i2c_errors: u16, pub sensors: MspAvailableSensors, pub null1: u8, pub flight_mode: u32, pub current_pid_profile_index: u8, pub average_system_load_percent: u16, pub max_profile_count: u8, pub current_control_rate_profile_index: u8, }
Fields
cycle_time: u16
i2c_errors: u16
sensors: MspAvailableSensors
null1: u8
flight_mode: u32
current_pid_profile_index: u8
average_system_load_percent: u16
max_profile_count: u8
current_control_rate_profile_index: u8
Methods
impl MspStatusEx
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 15]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 15]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 15]> for MspStatusEx
[src]
Structure that can be packed an unpacked into 15 bytes.
Bit, MSB0 | Name | Type |
0:15 | cycle_time | u16 |
16:31 | i2c_errors | u16 |
32:39 | sensors | MspAvailableSensors |
40:47 | null1 | u8 |
48:79 | flight_mode | u32 |
80:87 | current_pid_profile_index | u8 |
88:103 | average_system_load_percent | u16 |
104:111 | max_profile_count | u8 |
112:119 | current_control_rate_profile_index | u8 |
fn pack(&self) -> [u8; 15]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 15]) -> Result<MspStatusEx, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspStatusEx
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspStatusEx
[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 MspStatusEx
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspStatusEx
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspStatusEx
[src]
impl Copy for MspStatusEx
[src]
impl Clone for MspStatusEx
[src]
fn clone(&self) -> MspStatusEx
[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