Versions in this module Expand all Collapse all v2 v2.2.0 Mar 9, 2024 Changes in this version + var BaudRates = [...]string + var ModulationTypes = [...]string type Modulation + func (m Modulation) GoString() string + func (m Modulation) String() string v2.1.4 Nov 5, 2023 Changes in this version + const AcceptInvalidFrames + const AcceptMultipleFrames + const ActivateCrypto1 + const ActivateField + const Active + const AutoISO14443_4 + const Barcode + const BufsizeConnstring + const DEP + const ECHIP + const EDEVNOTSUPP + const EINVARG + const EIO + const EMFCAUTHFAIL + const ENOTIMPL + const ENOTSUCHDEV + const EOPABORTED + const EOVFLOW + const ERFTRANS + const ESOFT + const ETGRELEASED + const ETIMEOUT + const EasyFraming + const Felica + const ForceISO14443a + const ForceISO14443b + const ForceSpeed106 + const HandleCRC + const HandleParity + const ISO14443a + const ISO14443b + const ISO14443b2ct + const ISO14443b2sr + const ISO14443bi + const ISO14443biClass + const InfiniteSelect + const InitiatorMode + const Jewel + const Nbr106 + const Nbr212 + const Nbr424 + const Nbr847 + const Passive + const SUCCESS + const TargetMode + const TimeoutATR + const TimeoutCom + const TimeoutCommand + const Undefined + func AppendISO14443aCRC(data []byte) []byte + func AppendISO14443bCRC(data []byte) []byte + func ISO14443CascadeUID(uid []byte) (cascadedUID []byte) + func ISO14443aCRC(data []byte) [2]byte + func ISO14443aLocateHistoricalBytes(ats []byte) []byte + func ISO14443bCRC(data []byte) [2]byte + func ListDevices() ([]string, error) + func TargetString(t Target, verbose bool) (string, error) + func Version() string + type BarcodeTarget struct + Baud int + Data [32]byte + DataLen int + func (d *BarcodeTarget) Marshall() uintptr + func (t *BarcodeTarget) Modulation() Modulation + func (t *BarcodeTarget) String() string + type DEPTarget struct + BR byte + BS byte + Baud int + DID byte + DepMode int + GB [48]byte + GBLen int + NFCID3 [10]byte + PP byte + TO byte + func (d *DEPTarget) Marshall() uintptr + func (t *DEPTarget) Modulation() Modulation + func (t *DEPTarget) String() string + type Device struct + func Open(conn string) (Device, error) + func (d Device) AbortCommand() error + func (d Device) Close() error + func (d Device) Connection() string + func (d Device) GoString() string + func (d Device) Idle() error + func (d Device) Information() (string, error) + func (d Device) InitiatorDeselectTarget() error + func (d Device) InitiatorInit() error + func (d Device) InitiatorInitSecureElement() error + func (d Device) InitiatorListPassiveTargets(m Modulation) ([]Target, error) + func (d Device) InitiatorPollTarget(modulations []Modulation, times int, period time.Duration) (n int, t Target, err error) + func (d Device) InitiatorSelectPassiveTarget(m Modulation, initData []byte) (Target, error) + func (d Device) InitiatorTargetIsPresent(t Target) error + func (d Device) InitiatorTransceiveBits(tx, txPar []byte, txLength uint, rx, rxPar []byte) (n int, err error) + func (d Device) InitiatorTransceiveBitsTimed(tx, txPar []byte, txLength uint, rx, rxPar []byte, cycles uint32) (n int, c uint32, err error) + func (d Device) InitiatorTransceiveBytes(tx, rx []byte, timeout int) (n int, err error) + func (d Device) InitiatorTransceiveBytesTimed(tx, rx []byte, cycles uint32) (n int, c uint32, err error) + func (d Device) LastError() error + func (d Device) Pointer() uintptr + func (d Device) SetPropertyBool(property int, value bool) error + func (d Device) SetPropertyInt(property, value int) error + func (d Device) String() string + func (d Device) SupportedBaudRates(modulationType int) ([]int, error) + func (d Device) SupportedBaudRatesTargetMode(modulationType int) ([]int, error) + func (d Device) SupportedModulations(mode int) ([]int, error) + func (d Device) TargetInit(t Target, rx []byte, timeout int) (n int, tt Target, err error) + func (d Device) TargetReceiveBytes(rx []byte, timeout int) (n int, err error) + func (d Device) TargetSendBits(tx []byte, txPar []byte, txLength uint) (n int, err error) + func (d Device) TargetSendBytes(tx []byte, timeout int) (n int, err error) + func (d Device) TargetTransceiveBits(rx []byte, rxPar []byte, rxLength uint) (n int, err error) + type Error int + func (e Error) Error() string + type FelicaTarget struct + Baud int + ID [8]byte + Len uint + Pad [8]byte + ResCode byte + SysCode [2]byte + func (d *FelicaTarget) Marshall() uintptr + func (t *FelicaTarget) Modulation() Modulation + func (t *FelicaTarget) String() string + type ISO14443aTarget struct + Atqa [2]byte + Ats [254]byte + AtsLen int + Baud int + Sak byte + UID [10]byte + UIDLen int + func (d *ISO14443aTarget) Marshall() uintptr + func (t *ISO14443aTarget) Modulation() Modulation + func (t *ISO14443aTarget) String() string + type ISO14443b2ctTarget struct + Baud int + FabCode byte + ProdCode byte + UID [4]byte + func (d *ISO14443b2ctTarget) Marshall() uintptr + func (t *ISO14443b2ctTarget) Modulation() Modulation + func (t *ISO14443b2ctTarget) String() string + type ISO14443b2srTarget struct + Baud int + UID [8]byte + func (d *ISO14443b2srTarget) Marshall() uintptr + func (t *ISO14443b2srTarget) Modulation() Modulation + func (t *ISO14443b2srTarget) String() string + type ISO14443bTarget struct + ApplicationData [4]byte + Baud int + CardIdentifier byte + ProtocolInfo [3]byte + Pupi [4]byte + func (d *ISO14443bTarget) Marshall() uintptr + func (t *ISO14443bTarget) Modulation() Modulation + func (t *ISO14443bTarget) String() string + type ISO14443biClassTarget struct + Baud int + UID [8]byte + func (d *ISO14443biClassTarget) Marshall() uintptr + func (t *ISO14443biClassTarget) Modulation() Modulation + func (t *ISO14443biClassTarget) String() string + type ISO14443biTarget struct + Atr [33]byte + AtrLen int + Baud int + Config byte + DIV [4]byte + VerLog byte + func (d *ISO14443biTarget) Marshall() uintptr + func (t *ISO14443biTarget) Modulation() Modulation + func (t *ISO14443biTarget) String() string + type JewelTarget struct + Baud int + ID [4]byte + SensRes [2]byte + func (d *JewelTarget) Marshall() uintptr + func (t *JewelTarget) Modulation() Modulation + func (t *JewelTarget) String() string + type Modulation struct + BaudRate int + Type int + type Target interface + Marshall func() uintptr + Modulation func() Modulation + String func() string + func UnmarshallTarget(ptr unsafe.Pointer) Target