Versions in this module Expand all Collapse all v0 v0.5.0 Aug 14, 2019 Changes in this version + func Main(dev Device) error + func RunDevice(ctx context.Context, cfg config.Config, dev Device, r io.Reader, w io.Writer) error + type Cmd byte + const CmdEnd + const CmdError + const CmdInitDevice + const CmdInitTask + const CmdPause + const CmdResetDevice + const CmdResetTask + const CmdRun + const CmdStop + func (cmd Cmd) String() string + type Controller interface + Chan func(name string, i int) (chan Msg, error) + Done func() chan Cmd + type DevConfigurer interface + Configure func(cfg config.Device) error + type DevIniter interface + Init func(ctl Controller) error + type DevPauser interface + Pause func(ctl Controller) error + type DevReseter interface + Reset func(ctl Controller) error + type Device interface + Run func(ctl Controller) error + type Logger interface + Fatalf func(format string, v ...interface{}) + Printf func(format string, v ...interface{}) + type Msg struct + Data []byte + Err error