Register

Enum Register 

Source
#[repr(u8)]
pub enum Register {
Show 37 variants ChipAddress = 0, HashRate = 4, PLL0Parameter = 8, ChipNonceOffset = 12, HashCountingNumber = 16, TicketMask = 20, MiscControl = 24, I2CControl = 28, OrderedClockEnable = 32, FastUARTConfiguration = 40, UARTRelay = 44, TicketMask2 = 56, CoreRegisterControl = 60, CoreRegisterValue = 64, ExternalTemperatureSensorRead = 68, ErrorFlag = 72, NonceErrorCounter = 76, NonceOverflowCounter = 80, AnalogMuxControl = 84, IoDriverStrenghtConfiguration = 88, TimeOut = 92, PLL1Parameter = 96, PLL2Parameter = 100, PLL3Parameter = 104, OrderedClockMonitor = 108, Pll0Divider = 112, Pll1Divider = 116, Pll2Divider = 120, Pll3Divider = 124, ClockOrderControl0 = 128, ClockOrderControl1 = 132, ClockOrderStatus = 140, FrequencySweepControl1 = 144, GoldenNonceForSweepReturn = 148, ReturnedGroupPatternStatus = 152, NonceReturnedTimeout = 156, ReturnedSinglePatternStatus = 160,
}
Expand description

Registers of the BM1397 asic.

Variants§

§

ChipAddress = 0

§

HashRate = 4

§

PLL0Parameter = 8

§

ChipNonceOffset = 12

§

HashCountingNumber = 16

§

TicketMask = 20

§

MiscControl = 24

§

I2CControl = 28

§

OrderedClockEnable = 32

§

FastUARTConfiguration = 40

§

UARTRelay = 44

§

TicketMask2 = 56

§

CoreRegisterControl = 60

§

CoreRegisterValue = 64

§

ExternalTemperatureSensorRead = 68

§

ErrorFlag = 72

§

NonceErrorCounter = 76

§

NonceOverflowCounter = 80

§

AnalogMuxControl = 84

§

IoDriverStrenghtConfiguration = 88

§

TimeOut = 92

§

PLL1Parameter = 96

§

PLL2Parameter = 100

§

PLL3Parameter = 104

§

OrderedClockMonitor = 108

§

Pll0Divider = 112

§

Pll1Divider = 116

§

Pll2Divider = 120

§

Pll3Divider = 124

§

ClockOrderControl0 = 128

§

ClockOrderControl1 = 132

§

ClockOrderStatus = 140

§

FrequencySweepControl1 = 144

§

GoldenNonceForSweepReturn = 148

§

ReturnedGroupPatternStatus = 152

§

NonceReturnedTimeout = 156

§

ReturnedSinglePatternStatus = 160

Trait Implementations§

Source§

impl Debug for Register

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Register> for u8

Source§

fn from(r: Register) -> u8

Converts to this type from the input type.
Source§

impl PartialEq for Register

Source§

fn eq(&self, other: &Register) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for Register

Source§

type Error = u8

The type returned in the event of a conversion error.
Source§

fn try_from(val: u8) -> Result<Register, u8>

Performs the conversion.
Source§

impl StructuralPartialEq for Register

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.