Documentation
¶
Index ¶
- Constants
- type ACR1555BLE
- func (b *ACR1555BLE) Close() (err error)
- func (b *ACR1555BLE) Connect(ctx context.Context, protocol Protocol) (_ *Card, err error)
- func (b *ACR1555BLE) Escape(ctx context.Context, sam bool, data []byte) (_ []byte, err error)
- func (b *ACR1555BLE) GetSlotStatus(ctx context.Context, sam bool) (_ SlotStatus, err error)
- func (b *ACR1555BLE) ICCPowerOff(ctx context.Context, sam bool) (_ SlotStatus, err error)
- func (b *ACR1555BLE) ICCPowerOn(ctx context.Context, sam bool, powerSelect PowerSelect) (_ []byte, err error)
- func (b *ACR1555BLE) SetParameters(ctx context.Context, sam bool, isT1 bool, ...) (err error)
- func (b *ACR1555BLE) XfrBlock(ctx context.Context, sam bool, bwi byte, data []byte) (_ []byte, err error)
- type Card
- func (c *Card) ATR() ([]byte, error)
- func (c *Card) Close() (err error)
- func (c *Card) Control(ctx context.Context, code uint16, data []byte) (_ []byte, err error)
- func (c *Card) DeviceName() string
- func (c *Card) Exchange(ctx context.Context, capdu []byte) (_ []byte, err error)
- func (c *Card) Reconnect(ctx context.Context) (err error)
- type ClockStatus
- type ErrorCode
- type ICCStatus
- type PowerSelect
- type Protocol
- type SlotError
- type SlotStatus
Constants ¶
View Source
const (
CtlCodePcToRdrEscape uint16 = 3500
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACR1555BLE ¶
type ACR1555BLE struct {
// contains filtered or unexported fields
}
func (*ACR1555BLE) Close ¶
func (b *ACR1555BLE) Close() (err error)
func (*ACR1555BLE) GetSlotStatus ¶
func (b *ACR1555BLE) GetSlotStatus(ctx context.Context, sam bool) (_ SlotStatus, err error)
func (*ACR1555BLE) ICCPowerOff ¶
func (b *ACR1555BLE) ICCPowerOff(ctx context.Context, sam bool) (_ SlotStatus, err error)
ICCPowerOff powers off the card and returns the updated slot status
func (*ACR1555BLE) ICCPowerOn ¶
func (b *ACR1555BLE) ICCPowerOn(ctx context.Context, sam bool, powerSelect PowerSelect) (_ []byte, err error)
ICCPowerOn powers on the card and returns the ATR
func (*ACR1555BLE) SetParameters ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
func (*Card) DeviceName ¶
type ClockStatus ¶
type ClockStatus byte
const ( ClockStatusRunning ClockStatus = iota ClockStatusStoppedL ClockStatusStoppedH ClockStatusStoppedUnknown )
func (ClockStatus) String ¶
func (i ClockStatus) String() string
type PowerSelect ¶
type PowerSelect byte
const ( PowerSelectAutomatic PowerSelect = iota PowerSelect5v PowerSelect3v )
func (PowerSelect) String ¶
func (i PowerSelect) String() string
type SlotError ¶
type SlotError byte
const ( SlotErrorCommandAborted SlotError = 0xFF SlotErrorTimeout SlotError = 0xFE SlotErrorParity SlotError = 0xFD SlotErrorOverrun SlotError = 0xFC SlotErrorHardware SlotError = 0xFB SlotErrorBadATRTS SlotError = 0xF8 SlotErrorBadATRTCK SlotError = 0xF7 SlotErrorProtocolNotSupported SlotError = 0xF6 SlotErrorClassNotSupported SlotError = 0xF5 SlotErrorProcedureByteConflict SlotError = 0xF4 SlotErrorDeactivatedProtocol SlotError = 0xF3 SlotErrorBusyWithAutoSequence SlotError = 0xF2 SlotErrorSlotBusy SlotError = 0xE0 SlotErrorInvalidNAD SlotError = 0x10 SlotErrorInvalidIFSC SlotError = 0x0F SlotErrorInvalidClockStop SlotError = 0x0E SlotErrorInvalidWI SlotError = 0x0D SlotErrorInvalidGuardTime SlotError = 0x0C SlotErrorInvalidTCCKTS SlotError = 0x0B SlotErrorInvalidFIDI SlotError = 0x0A SlotErrorInvalidLevelParameter SlotError = 0x08 SlotErrorInvalidPowerSelect SlotError = 0x07 SlotErrorInvalidSlot SlotError = 0x05 SlotErrorInvalidLength SlotError = 0x01 SlotErrorCommandNotSupported SlotError = 0x00 )
type SlotStatus ¶
type SlotStatus struct {
ICCStatus ICCStatus
ClockStatus ClockStatus
}
Click to show internal directories.
Click to hide internal directories.