pub struct Rezero;Expand description
Struct representing the Rezero register at RegisterAddr::Rezero . Rezero can be represented as larger ints but not floats or smaller ints
Trait Implementations§
Source§impl Register for Rezero
impl Register for Rezero
Source§const DEFAULT_RESOLUTION: Resolution = Resolution::Int8
const DEFAULT_RESOLUTION: Resolution = Resolution::Int8
Each struct has a default
Resolution that is used when writing to the register.Source§fn address() -> RegisterAddr
fn address() -> RegisterAddr
Returns the address of the register as a
RegisterAddr.Source§fn from_bytes(
bytes: &[u8],
resolution: Resolution,
) -> Result<Self::INNER, RegisterError>where
Self: Sized,
fn from_bytes(
bytes: &[u8],
resolution: Resolution,
) -> Result<Self::INNER, RegisterError>where
Self: Sized,
Creates the register from a slice of bytes.
Source§impl Writeable for Rezero
impl Writeable for Rezero
Source§fn write_with_resolution(
data: Self::INNER,
r: Resolution,
) -> Result<Write<Self>, RegisterError>
fn write_with_resolution( data: Self::INNER, r: Resolution, ) -> Result<Write<Self>, RegisterError>
Takes the data to be written and the resolution to write it in and returns a
Write structimpl StructuralPartialEq for Rezero
Auto Trait Implementations§
impl Freeze for Rezero
impl RefUnwindSafe for Rezero
impl Send for Rezero
impl Sync for Rezero
impl Unpin for Rezero
impl UnsafeUnpin for Rezero
impl UnwindSafe for Rezero
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more