Struct multiwii_serial_protocol::structs::MspRxConfig
[−]
[src]
pub struct MspRxConfig { pub serialrx_provider: u8, pub maxcheck: u16, pub midrc: u16, pub mincheck: u16, pub spektrum_sat_bind: u8, pub rx_min_usec: u16, pub rx_max_usec: u16, pub rc_interpolation: u8, pub rc_interpolation_interval: u8, pub air_mode_activate_threshold: u16, pub rx_spi_protocol: u8, pub rx_spi_id: u32, pub rx_spi_rf_channel_count: u8, pub fpv_cam_angle_degrees: u8, }
Fields
serialrx_provider: u8
maxcheck: u16
midrc: u16
mincheck: u16
spektrum_sat_bind: u8
rx_min_usec: u16
rx_max_usec: u16
rc_interpolation: u8
rc_interpolation_interval: u8
air_mode_activate_threshold: u16
rx_spi_protocol: u8
rx_spi_id: u32
rx_spi_rf_channel_count: u8
fpv_cam_angle_degrees: u8
Methods
impl MspRxConfig
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 23]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 23]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 23]> for MspRxConfig
[src]
Structure that can be packed an unpacked into 23 bytes.
Bit, MSB0 | Name | Type |
0:7 | serialrx_provider | u8 |
8:23 | maxcheck | u16 |
24:39 | midrc | u16 |
40:55 | mincheck | u16 |
56:63 | spektrum_sat_bind | u8 |
64:79 | rx_min_usec | u16 |
80:95 | rx_max_usec | u16 |
96:103 | rc_interpolation | u8 |
104:111 | rc_interpolation_interval | u8 |
112:127 | air_mode_activate_threshold | u16 |
128:135 | rx_spi_protocol | u8 |
136:167 | rx_spi_id | u32 |
168:175 | rx_spi_rf_channel_count | u8 |
176:183 | fpv_cam_angle_degrees | u8 |
fn pack(&self) -> [u8; 23]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 23]) -> Result<MspRxConfig, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspRxConfig
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspRxConfig
[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 MspRxConfig
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspRxConfig
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspRxConfig
[src]
impl Copy for MspRxConfig
[src]
impl Clone for MspRxConfig
[src]
fn clone(&self) -> MspRxConfig
[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 MspRxConfig
[src]
fn default() -> MspRxConfig
[src]
Returns the "default value" for a type. Read more