Documentation
¶
Index ¶
- func DumpAsicReg(regAddr RegAddr, regVal uint32, debug bool)
- func DumpCoreReg(regID CoreRegID, regVal uint16, debug bool)
- type Asic
- type Chain
- func (c *Chain) DumpChipRegiters(chipIndex int, debug bool) error
- func (c *Chain) GetResponse() (uint32, byte, byte, error)
- func (c *Chain) Inactive() error
- func (c *Chain) Init(increment byte) (int, error)
- func (c *Chain) ReadAllCoreRegisters(chipAddr byte, coreID uint16) error
- func (c *Chain) ReadAllRegisters(chipIndex int) error
- func (c *Chain) ReadCoreRegister(chipAddr byte, coreID uint16, coreRegID CoreRegID) (uint16, error)
- func (c *Chain) ReadRegister(all bool, chipAddr byte, regAddr RegAddr) error
- func (c *Chain) ReadUnknownRegisters(chipIndex int) error
- func (c *Chain) SendJob(jobID byte, startingNonce uint32, nBits uint32, nTime uint32, ...) error
- func (c *Chain) SetBaudrate(baud uint32) error
- func (c *Chain) SetChipAddr(chipAddr byte) error
- func (c *Chain) WriteRegister(all bool, chipAddr byte, regAddr RegAddr, regVal uint32) error
- type CoreRegID
- type Midstate
- type Nonce
- type RegAddr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpAsicReg ¶
func DumpCoreReg ¶
Types ¶
type Chain ¶
type Chain struct { Asics []Asic // contains filtered or unexported fields }
func (*Chain) ReadAllCoreRegisters ¶
func (*Chain) ReadAllRegisters ¶
func (*Chain) ReadCoreRegister ¶
func (*Chain) ReadRegister ¶
func (*Chain) ReadUnknownRegisters ¶
func (*Chain) SetBaudrate ¶
func (*Chain) SetChipAddr ¶
type Nonce ¶
type Nonce uint32
type RegAddr ¶
type RegAddr byte
const ( ChipAddress RegAddr = 0x00 HashRate RegAddr = 0x04 PLL0Parameter RegAddr = 0x08 ChipNonceOffset RegAddr = 0x0C HashCountingNumber RegAddr = 0x10 TicketMask RegAddr = 0x14 MiscControl RegAddr = 0x18 I2CControl RegAddr = 0x1C OrderedClockEnable RegAddr = 0x20 FastUARTConfiguration RegAddr = 0x28 UARTRelay RegAddr = 0x2C TicketMask2 RegAddr = 0x38 CoreRegisterControl RegAddr = 0x3C CoreRegisterValue RegAddr = 0x40 ExternalTemperatureSensorRead RegAddr = 0x44 ErrorFlag RegAddr = 0x48 NonceErrorCounter RegAddr = 0x4C NonceOverflowCounter RegAddr = 0x50 AnalogMuxControl RegAddr = 0x54 IoDriverStrenghtConfiguration RegAddr = 0x58 TimeOut RegAddr = 0x5C PLL1Parameter RegAddr = 0x60 PLL2Parameter RegAddr = 0x64 PLL3Parameter RegAddr = 0x68 OrderedClockMonitor RegAddr = 0x6C Pll0Divider RegAddr = 0x70 Pll1Divider RegAddr = 0x74 Pll2Divider RegAddr = 0x78 Pll3Divider RegAddr = 0x7C ClockOrderControl0 RegAddr = 0x80 ClockOrderControl1 RegAddr = 0x84 ClockOrderStatus RegAddr = 0x8C FrequencySweepControl1 RegAddr = 0x90 GoldenNonceForSweepReturn RegAddr = 0x94 ReturnedGroupPatternStatus RegAddr = 0x98 NonceReturnedTimeout RegAddr = 0x9C ReturnedSinglePatternStatus RegAddr = 0xA0 )
Click to show internal directories.
Click to hide internal directories.