pub struct MspBfConfig {
pub mixer_configuration: u8,
pub features: u32,
pub serial_rx_provider: u8,
pub board_align_roll: i16,
pub board_align_pitch: i16,
pub board_align_yaw: i16,
pub current_scale: i16,
pub current_offset: i16,
}Fields§
§mixer_configuration: u8§features: u32§serial_rx_provider: u8§board_align_roll: i16§board_align_pitch: i16§board_align_yaw: i16§current_scale: i16§current_offset: i16Implementations§
Source§impl MspBfConfig
impl MspBfConfig
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 16]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 16]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspBfConfig
impl Clone for MspBfConfig
Source§fn clone(&self) -> MspBfConfig
fn clone(&self) -> MspBfConfig
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 MspBfConfig
impl Debug for MspBfConfig
Source§impl Default for MspBfConfig
impl Default for MspBfConfig
Source§fn default() -> MspBfConfig
fn default() -> MspBfConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MspBfConfig
impl<'de> Deserialize<'de> for MspBfConfig
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 MspBfConfig
impl Display for MspBfConfig
Source§impl PackedStruct<[u8; 16]> for MspBfConfig
Structure that can be packed an unpacked into 16 bytes.
impl PackedStruct<[u8; 16]> for MspBfConfig
Structure that can be packed an unpacked into 16 bytes.
| Bit, MSB0 | Name | Type |
| 0:7 | mixer_configuration | u8 |
| 8:39 | features | u32 |
| 40:47 | serial_rx_provider | u8 |
| 48:63 | board_align_roll | i16 |
| 64:79 | board_align_pitch | i16 |
| 80:95 | board_align_yaw | i16 |
| 96:111 | current_scale | i16 |
| 112:127 | current_offset | i16 |
Source§impl PackedStructDebug for MspBfConfig
impl PackedStructDebug for MspBfConfig
Source§impl PackedStructInfo for MspBfConfig
impl PackedStructInfo for MspBfConfig
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspBfConfig
impl PackedStructSlice for MspBfConfig
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 MspBfConfig
impl Serialize for MspBfConfig
impl Copy for MspBfConfig
Auto Trait Implementations§
impl Freeze for MspBfConfig
impl RefUnwindSafe for MspBfConfig
impl Send for MspBfConfig
impl Sync for MspBfConfig
impl Unpin for MspBfConfig
impl UnsafeUnpin for MspBfConfig
impl UnwindSafe for MspBfConfig
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