pub struct MspAltitude {
pub altitude: i32,
pub vario: i16,
}Fields§
§altitude: i32[centimeters]
vario: i16variometer [cm/s]
Implementations§
Source§impl MspAltitude
impl MspAltitude
Sourcepub fn packed_struct_display_formatter<'a>(
&'a self,
) -> PackedStructDisplay<'a, Self, [u8; 6]>
pub fn packed_struct_display_formatter<'a>( &'a self, ) -> PackedStructDisplay<'a, Self, [u8; 6]>
Display formatter for console applications
Trait Implementations§
Source§impl Clone for MspAltitude
impl Clone for MspAltitude
Source§fn clone(&self) -> MspAltitude
fn clone(&self) -> MspAltitude
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 MspAltitude
impl Debug for MspAltitude
Source§impl<'de> Deserialize<'de> for MspAltitude
impl<'de> Deserialize<'de> for MspAltitude
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 MspAltitude
impl Display for MspAltitude
Source§impl PackedStruct<[u8; 6]> for MspAltitude
Structure that can be packed an unpacked into 6 bytes.
impl PackedStruct<[u8; 6]> for MspAltitude
Structure that can be packed an unpacked into 6 bytes.
| Bit, MSB0 | Name | Type |
| 0:31 | altitude | i32 |
| 32:47 | vario | i16 |
Source§impl PackedStructDebug for MspAltitude
impl PackedStructDebug for MspAltitude
Source§impl PackedStructInfo for MspAltitude
impl PackedStructInfo for MspAltitude
Source§fn packed_bits() -> usize
fn packed_bits() -> usize
Number of bits that this structure occupies when being packed.
Source§impl PackedStructSlice for MspAltitude
impl PackedStructSlice for MspAltitude
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 MspAltitude
impl Serialize for MspAltitude
impl Copy for MspAltitude
Auto Trait Implementations§
impl Freeze for MspAltitude
impl RefUnwindSafe for MspAltitude
impl Send for MspAltitude
impl Sync for MspAltitude
impl Unpin for MspAltitude
impl UnsafeUnpin for MspAltitude
impl UnwindSafe for MspAltitude
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