pub struct Packet {
pub samples: [ImuSample; 3],
pub mag: [f32; 3],
pub touch: Option<Touch>,
pub temperature: u8,
pub buttons: Buttons,
}Expand description
One decoded data packet.
Fields§
§samples: [ImuSample; 3]Three consecutive motion samples, oldest first.
mag: [f32; 3]Magnetic field in µT (x, y, z), uncalibrated.
touch: Option<Touch>Finger position, or None when the pad is not touched.
temperature: u8Temperature byte as sent; it appears to be in °C.
Implementations§
Trait Implementations§
impl Copy for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Forget for Packet
impl Freeze for Packet
impl Move for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
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