Documentation ¶
Index ¶
- Constants
- Variables
- type Core
- func (c *Core) Acquire(path, prev string) (string, error)
- func (c *Core) Call(body []byte, session string, skipRead bool, closeNotify <-chan bool) ([]byte, error)
- func (c *Core) Enumerate() ([]EnumerateEntry, error)
- func (c *Core) Listen(entries []EnumerateEntry, closeNotify <-chan bool) ([]EnumerateEntry, error)
- func (c *Core) Log(s string)
- func (c *Core) Release(session string) error
- type EnumerateEntry
- type USBBus
- type USBDevice
- type USBInfo
Constants ¶
View Source
const ( VendorT1 = 0x534c ProductT1Firmware = 0x0001 VendorT2 = 0x1209 ProductT2Bootloader = 0x53C0 ProductT2Firmware = 0x53C1 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func New ¶
func New(bus USBBus, log *memorywriter.MemoryWriter) *Core
func (*Core) Enumerate ¶
func (c *Core) Enumerate() ([]EnumerateEntry, error)
func (*Core) Listen ¶
func (c *Core) Listen(entries []EnumerateEntry, closeNotify <-chan bool) ([]EnumerateEntry, error)
type EnumerateEntry ¶
type USBDevice ¶
type USBDevice interface { io.ReadWriteCloser }
Click to show internal directories.
Click to hide internal directories.