#[non_exhaustive]#[repr(u16)]pub enum Register {
Nop = 0,
ClearErrorFlag = 1,
DiagAgc = 16_381,
Magnitude = 16_382,
Angle = 16_383,
}Expand description
Register addresses for AS5048A
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nop = 0
NOP command (no operation)
ClearErrorFlag = 1
Clear error flag.
DiagAgc = 16_381
Diagnostics and AGC register
Magnitude = 16_382
Magnitude register (14-bit)
Angle = 16_383
Angle register (14-bit corrected position)
Trait Implementations§
impl Copy for Register
impl Eq for Register
impl StructuralPartialEq for Register
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnsafeUnpin for Register
impl UnwindSafe for Register
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