Documentation
¶
Index ¶
- Variables
- func RegisterDevicePairDNW(vid, pid string)
- type Command
- func (c *Command) Arg() []byte
- func (c *Command) ArgLen() int
- func (c *Command) Bytes() []byte
- func (c *Command) CRC() []byte
- func (c *Command) CRCLen() int
- func (c *Command) Cmd() []byte
- func (c *Command) CmdLen() int
- func (c *Command) Data() []byte
- func (c *Command) DataLen() int
- func (c *Command) Len() int
- type DNW
- func (dnw *DNW) Close() error
- func (dnw *DNW) Closed() bool
- func (dnw *DNW) Free()
- func (dnw *DNW) GetBuffer() *crunchio.Buffer
- func (dnw *DNW) GetID() string
- func (dnw *DNW) GetPID() string
- func (dnw *DNW) GetPort() string
- func (dnw *DNW) GetSerial() string
- func (dnw *DNW) GetUSB() bool
- func (dnw *DNW) GetVID() string
- func (dnw *DNW) Read(p []byte) (int, error)
- func (dnw *DNW) ReadMsg() (*Message, error)
- func (dnw *DNW) Write(p []byte) (int, error)
- func (dnw *DNW) WriteCmd(cmd *Command) error
- func (dnw *DNW) WriteMsg(msg *Message) error
- type Message
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OpDNW = []byte("\x1BDNW") CmdDNW = NewCommand(OpDNW, nil, nil, nil) CmdStop = NewCommand(OpDNW, make([]byte, 4), nil, []byte("\x01\x00")) )
Functions ¶
func RegisterDevicePairDNW ¶
func RegisterDevicePairDNW(vid, pid string)
Types ¶
type DNW ¶
type DNW struct {
// contains filtered or unexported fields
}
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func (*Message) SubCommand ¶
Click to show internal directories.
Click to hide internal directories.