Documentation ¶
Index ¶
- Constants
- Variables
- type Geophone
- func (g *Geophone) OnError(options *feature.FeatureOptions, err error)
- func (g *Geophone) OnReady(options *feature.FeatureOptions, v ...any)
- func (g *Geophone) OnStart(options *feature.FeatureOptions, v ...any)
- func (g *Geophone) OnStop(options *feature.FeatureOptions, v ...any)
- func (g *Geophone) Read(port io.ReadWriteCloser, conf *config.Conf, packet *Packet, packetLen int) error
- func (g *Geophone) Reset(port io.ReadWriteCloser) error
- func (g *Geophone) Run(options *feature.FeatureOptions, waitGroup *sync.WaitGroup)
- type Packet
Constants ¶
View Source
const ( // READY_THRESHOLD should be strictly 1 second READY_THRESHOLD time.Duration = 1 * time.Second // TIMEOUT_THRESHOLD should be greater than READY_THRESHOLD TIMEOUT_THRESHOLD time.Duration = 3 * time.Second )
View Source
const MODULE string = "geophone"
Variables ¶
View Source
var ( // RESET_WORD resets geophone ADC module RESET_WORD = [...]byte{0x61} // SYNC_WORD indicates a data packet is following SYNC_WORD = [...]byte{0xFC, 0x1B} // ACK_WORD indicates a valid command is received ACK_WORD = [...]byte{0xFC, 0x2B} )
Functions ¶
This section is empty.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.