Documentation ¶
Index ¶
- Constants
- type PN532
- func (this *PN532) AuthenticateBlock(cardno byte, addr byte, cid uint32, authtype byte, keys []byte) bool
- func (this *PN532) GetFirmwareVersion() uint32
- func (this *PN532) ReadMemoryBlock(cardno byte, addr byte, block []byte) bool
- func (this *PN532) ReadPassiveTargetID(cardbaudrate byte) uint32
- func (this *PN532) SAMConfig() bool
- func (this *PN532) WriteMemoryBlock(cardno byte, addr byte, block []byte) bool
Constants ¶
View Source
const ( PN532_PREAMBLE = 0x00 PN532_STARTCODE1 = 0x00 PN532_STARTCODE2 = 0xFF PN532_POSTAMBLE = 0x00 PN532_HOSTTOPN532 = 0xD4 PN532_FIRMWAREVERSION = 0x02 PN532_GETGENERALSTATUS = 0x04 PN532_SAMCONFIGURATION = 0x14 PN532_INLISTPASSIVETARGET = 0x4A PN532_INDATAEXCHANGE = 0x40 PN532_MIFARE_READ = 0x30 PN532_MIFARE_WRITE = 0xA0 PN532_AUTH_WITH_KEYA = 0x60 PN532_AUTH_WITH_KEYB = 0x61 PN532_WAKEUP = 0x55 PN532_SPI_STATREAD = 0x02 PN532_SPI_DATAWRITE = 0x01 PN532_SPI_DATAREAD = 0x03 PN532_SPI_READY = 0x01 PN532_MIFARE_ISO14443A = 0x0 KEY_A = 1 KEY_B = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PN532 ¶
type PN532 struct {
// contains filtered or unexported fields
}
func (*PN532) AuthenticateBlock ¶
func (*PN532) GetFirmwareVersion ¶
func (*PN532) ReadMemoryBlock ¶
func (*PN532) ReadPassiveTargetID ¶
Click to show internal directories.
Click to hide internal directories.