access

package
v0.0.0-...-2d871d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryRead  uint8 = 0xb0
	BinaryWrite       = 0xd6
)
View Source
const TransmitSuccess uint16 = 0x9000

Variables

This section is empty.

Functions

func BinaryReadBlock

func BinaryReadBlock(card *scard.Card, block uint16) ([]byte, error)

func BinaryReadBlocks

func BinaryReadBlocks(card *scard.Card, startBlock, endBlock uint16) ([]byte, error)

func BinaryWriteBlock

func BinaryWriteBlock(card *scard.Card, block uint8, data []byte) error

func BinaryWriteBlocks

func BinaryWriteBlocks(card *scard.Card, block uint8, data []byte) ([]byte, error)

func DoTransmit

func DoTransmit(card *scard.Card, payload []byte) (rdata []byte, err error)

func TransmitByteable

func TransmitByteable(card *scard.Card, b byteable.Byteable) (rdata []byte, err error)

func TransmitBytes

func TransmitBytes(card *scard.Card, payload []byte) (rdata []byte, err error)

Types

type Header struct {
	Class, Ins, P1, P2, Length byte
}

func (*Header) Bytes

func (he *Header) Bytes() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL