pub struct CommandDcurrent { /* private fields */ }Expand description
Struct representing the CommandDcurrent register at RegisterAddr::CommandDCurrent .
CommandDcurrent uses CURRENT_MAP to map between different resolutions
Trait Implementations§
Source§impl Clone for CommandDcurrent
impl Clone for CommandDcurrent
Source§fn clone(&self) -> CommandDcurrent
fn clone(&self) -> CommandDcurrent
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 CommandDcurrent
impl Debug for CommandDcurrent
Source§impl PartialEq for CommandDcurrent
impl PartialEq for CommandDcurrent
Source§impl Readable for CommandDcurrent
impl Readable for CommandDcurrent
Source§impl Register for CommandDcurrent
impl Register for CommandDcurrent
Source§const DEFAULT_RESOLUTION: Resolution = Resolution::Float
const DEFAULT_RESOLUTION: Resolution = Resolution::Float
Each struct has a default
Resolution that is used when writing to the register.Source§const NAME: &'static str = "CommandDcurrent"
const NAME: &'static str = "CommandDcurrent"
The name of the register for use in debugging/display
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 CommandDcurrent
impl Writeable for CommandDcurrent
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 CommandDcurrent
Auto Trait Implementations§
impl Freeze for CommandDcurrent
impl RefUnwindSafe for CommandDcurrent
impl Send for CommandDcurrent
impl Sync for CommandDcurrent
impl Unpin for CommandDcurrent
impl UnsafeUnpin for CommandDcurrent
impl UnwindSafe for CommandDcurrent
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