driver

package
v0.0.0-...-d7543ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AntDevice

type AntDevice struct {
	Driver AntDriver
	Read   chan message.AntPacket
	Write  chan message.AntPacket
	// contains filtered or unexported fields
}

func NewDevice

func NewDevice(driver AntDriver, read, write chan message.AntPacket) *AntDevice

func (*AntDevice) Start

func (dev *AntDevice) Start() (e error)

func (*AntDevice) StartRxScanMode

func (dev *AntDevice) StartRxScanMode()

func (*AntDevice) Stop

func (dev *AntDevice) Stop()

type AntDriver

type AntDriver interface {
	Open() error
	Close()
	Read(b []byte) (int, error)
	Write(b []byte) (int, error)
	BufferSize() int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL