Struct multiwii_serial_protocol::structs::MspMisc
[−]
[src]
pub struct MspMisc { pub rx_mid_rc: u16, pub min_throttle: u16, pub max_throttle: u16, pub min_command: u16, pub failsafe_throttle: u16, pub gps_type: u8, pub gps_baudrate: u8, pub gps_sbas_mode: u8, pub current_meter_output: u8, pub rssi_channel: u8, pub null1: u8, pub compass_mag_declination: u16, }
Fields
rx_mid_rc: u16
min_throttle: u16
max_throttle: u16
min_command: u16
failsafe_throttle: u16
gps_type: u8
gps_baudrate: u8
gps_sbas_mode: u8
current_meter_output: u8
rssi_channel: u8
null1: u8
compass_mag_declination: u16
Methods
impl MspMisc
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 18]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 18]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 18]> for MspMisc
[src]
Structure that can be packed an unpacked into 18 bytes.
Bit, MSB0 | Name | Type |
0:15 | rx_mid_rc | u16 |
16:31 | min_throttle | u16 |
32:47 | max_throttle | u16 |
48:63 | min_command | u16 |
64:79 | failsafe_throttle | u16 |
80:87 | gps_type | u8 |
88:95 | gps_baudrate | u8 |
96:103 | gps_sbas_mode | u8 |
104:111 | current_meter_output | u8 |
112:119 | rssi_channel | u8 |
120:127 | null1 | u8 |
128:143 | compass_mag_declination | u16 |
fn pack(&self) -> [u8; 18]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 18]) -> Result<MspMisc, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspMisc
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspMisc
[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 MspMisc
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspMisc
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more