pub struct MspRcTuning {
pub rc_rate8: u8,
pub rc_expo8: u8,
pub rate_roll: u8,
pub rate_pitch: u8,
pub rate_yaw: u8,
pub dyn_thr_pid: u8,
pub thr_mid8: u8,
pub thr_expo8: u8,
pub tpa_breakpoint: u16,
pub rc_yaw_expo8: u8,
pub rc_yaw_rate8: u8,
}
Fields§
§rc_rate8: u8
§rc_expo8: u8
§rate_roll: u8
§rate_pitch: u8
§rate_yaw: u8
§dyn_thr_pid: u8
§thr_mid8: u8
§thr_expo8: u8
§tpa_breakpoint: u16
§rc_yaw_expo8: u8
§rc_yaw_rate8: u8
Implementations§
Source§impl MspRcTuning
impl MspRcTuning
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 12]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 12]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspRcTuning
impl Clone for MspRcTuning
Source§fn clone(&self) -> MspRcTuning
fn clone(&self) -> MspRcTuning
Returns a copy 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 MspRcTuning
impl Debug for MspRcTuning
Source§impl Default for MspRcTuning
impl Default for MspRcTuning
Source§fn default() -> MspRcTuning
fn default() -> MspRcTuning
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MspRcTuning
impl<'de> Deserialize<'de> for MspRcTuning
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 MspRcTuning
impl Display for MspRcTuning
Source§impl PackedStruct<[u8; 12]> for MspRcTuning
Structure that can be packed an unpacked into 12 bytes.
impl PackedStruct<[u8; 12]> for MspRcTuning
Structure that can be packed an unpacked into 12 bytes.
Bit, MSB0 | Name | Type |
0:7 | rc_rate8 | u8 |
8:15 | rc_expo8 | u8 |
16:23 | rate_roll | u8 |
24:31 | rate_pitch | u8 |
32:39 | rate_yaw | u8 |
40:47 | dyn_thr_pid | u8 |
48:55 | thr_mid8 | u8 |
56:63 | thr_expo8 | u8 |
64:79 | tpa_breakpoint | u16 |
80:87 | rc_yaw_expo8 | u8 |
88:95 | rc_yaw_rate8 | u8 |
Source§impl PackedStructDebug for MspRcTuning
impl PackedStructDebug for MspRcTuning
Source§impl PackedStructInfo for MspRcTuning
impl PackedStructInfo for MspRcTuning
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspRcTuning
impl PackedStructSlice for MspRcTuning
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 MspRcTuning
impl Serialize for MspRcTuning
impl Copy for MspRcTuning
Auto Trait Implementations§
impl Freeze for MspRcTuning
impl RefUnwindSafe for MspRcTuning
impl Send for MspRcTuning
impl Sync for MspRcTuning
impl Unpin for MspRcTuning
impl UnwindSafe for MspRcTuning
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