Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOk = rmap.NoError ErrNotAligned = 1 ErrInvalidAddr = 2 ErrInvalidValue = 3 ErrCorruptData = 4 )
View Source
const ( RegErrors = 0 RegPower = 1 RegLatch = 2 RegX = 3 RegY = 4 RegZ = 5 NumRegisters = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func (Config) Construct ¶
func (c Config) Construct(ctx model.SimContext, wire fwmodel.PacketWire, me MagneticEnvironment, ac collector.ActivityCollector)
type MagneticEnvironment ¶
type MagneticEnvironment interface {
MeasureNow() (x, y, z int16)
}
func MakeRandomMagneticEnvironment ¶
func MakeRandomMagneticEnvironment(ctx model.SimContext) MagneticEnvironment
Click to show internal directories.
Click to hide internal directories.