pub struct MspRxConfig {Show 14 fields
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: u8Implementations§
Source§impl MspRxConfig
impl MspRxConfig
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 23]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 23]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspRxConfig
impl Clone for MspRxConfig
Source§fn clone(&self) -> MspRxConfig
fn clone(&self) -> MspRxConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MspRxConfig
impl Debug for MspRxConfig
Source§impl Default for MspRxConfig
impl Default for MspRxConfig
Source§fn default() -> MspRxConfig
fn default() -> MspRxConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MspRxConfig
impl<'de> Deserialize<'de> for MspRxConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MspRxConfig
impl Display for MspRxConfig
Source§impl PackedStruct<[u8; 23]> for MspRxConfig
Structure that can be packed an unpacked into 23 bytes.
impl PackedStruct<[u8; 23]> for MspRxConfig
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 |
Source§impl PackedStructDebug for MspRxConfig
impl PackedStructDebug for MspRxConfig
Source§impl PackedStructInfo for MspRxConfig
impl PackedStructInfo for MspRxConfig
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspRxConfig
impl PackedStructSlice for MspRxConfig
Source§fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
Pack the structure into an output buffer.
Source§fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
Unpack the structure from a buffer.
Source§fn packed_bytes() -> usize
fn packed_bytes() -> usize
Number of bytes that this structure demands for packing or unpacking.
Source§fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
Pack the structure into a new byte vector.
Source§impl Serialize for MspRxConfig
impl Serialize for MspRxConfig
impl Copy for MspRxConfig
Auto Trait Implementations§
impl Freeze for MspRxConfig
impl RefUnwindSafe for MspRxConfig
impl Send for MspRxConfig
impl Sync for MspRxConfig
impl Unpin for MspRxConfig
impl UnsafeUnpin for MspRxConfig
impl UnwindSafe for MspRxConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more