pub struct GcrFrame(/* private fields */);Expand description
A captured GCR frame received straight from the PIO FIFO block.
Implementations§
Source§impl GcrFrame
impl GcrFrame
pub const fn from_raw(raw_pio: u32) -> Self
pub const fn raw_20(self) -> u32
Sourcepub fn try_decode(self) -> Result<DshotTelemetryFrame, DshotError>
pub fn try_decode(self) -> Result<DshotTelemetryFrame, DshotError>
Decodes the 20-bit GCR stream into a standard 16-bit Dshot frame.
§Errors
Trait Implementations§
impl Copy for GcrFrame
impl Eq for GcrFrame
Source§impl Ord for GcrFrame
impl Ord for GcrFrame
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for GcrFrame
impl PartialOrd for GcrFrame
impl StructuralPartialEq for GcrFrame
Auto Trait Implementations§
impl Freeze for GcrFrame
impl RefUnwindSafe for GcrFrame
impl Send for GcrFrame
impl Sync for GcrFrame
impl Unpin for GcrFrame
impl UnsafeUnpin for GcrFrame
impl UnwindSafe for GcrFrame
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