Documentation
¶
Index ¶
- type SP_DEVICE_INTERFACE_DATA
- type SP_DEVINFO_DATA
- type SetupDi
- func (sdi *SetupDi) EnumUsbDev(vid uint16, pid uint16) ([]string, error)
- func (sdi *SetupDi) GetDetailPath(hdi uintptr, did uintptr) (string, error)
- func (sdi *SetupDi) GetInstanceID(hdi uintptr, sdd uintptr) (string, error)
- func (sdi *SetupDi) ScanUsbDev(vid uint16, pid uint16) (string, error)
- func (sdi *SetupDi) TransFullPath(insid string) (string, error)
- type UsbDevice
- func (udv *UsbDevice) ActualRead() ([]byte, error)
- func (udv *UsbDevice) BulkRead(p []byte) (int, error)
- func (udv *UsbDevice) BulkWrite(p []byte) error
- func (udv *UsbDevice) Close() error
- func (udv *UsbDevice) ControlVendorRead(request uint8, wValue uint16, wIndex uint16, p []byte) (int, error)
- func (udv *UsbDevice) ControlVendorWrite(request uint8, wValue uint16, wIndex uint16, p []byte) (int, error)
- func (udv *UsbDevice) PrepareRead(cnt int) error
- func (udv *UsbDevice) SetBulkInPolicy(idx int, uval uint32) error
- func (udv *UsbDevice) SetBulkOutPolicy(idx int, uval uint32) error
- type WinUsbApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SP_DEVICE_INTERFACE_DATA ¶
type SP_DEVICE_INTERFACE_DATA struct {
// contains filtered or unexported fields
}
type SP_DEVINFO_DATA ¶
type SP_DEVINFO_DATA struct {
// contains filtered or unexported fields
}
type SetupDi ¶
type SetupDi struct {
// contains filtered or unexported fields
}
func NewSetupDi ¶
func (*SetupDi) EnumUsbDev ¶
port, serial, ???
func (*SetupDi) GetDetailPath ¶
func (*SetupDi) GetInstanceID ¶
type UsbDevice ¶
type UsbDevice struct {
// contains filtered or unexported fields
}
func (*UsbDevice) ActualRead ¶
func (*UsbDevice) ControlVendorRead ¶
func (*UsbDevice) ControlVendorWrite ¶
func (*UsbDevice) PrepareRead ¶
创建并行读操作需要的, 多个 overlap 结构体. 然后发起多个并行读操作.
func (*UsbDevice) SetBulkInPolicy ¶
Click to show internal directories.
Click to hide internal directories.