Documentation ¶
Index ¶
Constants ¶
View Source
const CMD_APDU uint8 = 0x03
View Source
const CMD_INIT uint8 = 0x06
View Source
const CMD_WINK uint8 = 0x08
View Source
const HID_RPT_SIZE uint16 = 64
View Source
const STAT_ERR uint8 = 0xbf
View Source
const TYPE_INIT uint8 = 0x80
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { Open() error Close() SendAPDU(instruction, p1, p2 uint8, data []byte) (uint16, []byte, error) }
* Interfaces *
type RawHidDevice ¶
type RawHidDevice struct { Device *hid.DeviceInfo Handle *hid.Device }
func (*RawHidDevice) Close ¶
func (dev *RawHidDevice) Close()
func (*RawHidDevice) Open ¶
func (dev *RawHidDevice) Open() error
Click to show internal directories.
Click to hide internal directories.