Documentation ¶
Index ¶
- Constants
- func DeserializePacket(channel uint16, buffer []byte, sequenceIdx uint16) (result []byte, totalResponseLength uint16, err error)
- func ErrorMessage(errorCode uint16) string
- func ListDevices()
- func SerializePacket(channel uint16, command []byte, packetSize int, sequenceIdx uint16) (result []byte, offset int, err error)
- func UnwrapResponseAPDU(channel uint16, pipe <-chan []byte, packetSize int) ([]byte, error)
- func WrapCommandAPDU(channel uint16, command []byte, packetSize int) (result []byte, err error)
- type Ledger
Constants ¶
View Source
const ( VendorLedger = 0x2c97 UsagePageLedgerNanoS = 0xffa0 //ProductNano = 1 Channel = 0x0101 PacketSize = 64 )
Variables ¶
This section is empty.
Functions ¶
func DeserializePacket ¶
func ErrorMessage ¶
func ListDevices ¶
func ListDevices()
func SerializePacket ¶
func UnwrapResponseAPDU ¶
UnwrapResponseAPDU parses a response of 64 byte packets into the real data
Types ¶
type Ledger ¶
type Ledger struct { Logging bool // contains filtered or unexported fields }
func FindLedger ¶
Click to show internal directories.
Click to hide internal directories.