magicrfid 2.0.0.0
Magic RFID Device Settings

Settings for registers of Magic RFID Click driver. More...

Macros

#define MAGICRFID_OPCODE_VERSION   0x03
 Magic RFID control commands.
 
#define MAGICRFID_OPCODE_SET_BAUD_RATE   0x06
 
#define MAGICRFID_OPCODE_READ_TAG_ID_SINGLE   0x21
 
#define MAGICRFID_OPCODE_READ_TAG_ID_MULTIPLE   0x22
 
#define MAGICRFID_OPCODE_WRITE_TAG_ID   0x23
 
#define MAGICRFID_OPCODE_WRITE_TAG_DATA   0x24
 
#define MAGICRFID_OPCODE_KILL_TAG   0x26
 
#define MAGICRFID_OPCODE_READ_TAG_DATA   0x28
 
#define MAGICRFID_OPCODE_CLEAR_TAG_ID_BUFFER   0x2A
 
#define MAGICRFID_OPCODE_MULTI_PROTOCOL_TAG_OP   0x2F
 
#define MAGICRFID_OPCODE_GET_READ_TX_POWER   0x62
 
#define MAGICRFID_OPCODE_GET_WRITE_TX_POWER   0x64
 
#define MAGICRFID_OPCODE_GET_POWER_MODE   0x68
 
#define MAGICRFID_OPCODE_GET_READER_OPTIONAL_PARAMS   0x6A
 
#define MAGICRFID_OPCODE_GET_PROTOCOL_PARAM   0x6B
 
#define MAGICRFID_OPCODE_SET_ANTENNA_PORT   0x91
 
#define MAGICRFID_OPCODE_SET_TAG_PROTOCOL   0x93
 
#define MAGICRFID_OPCODE_SET_READ_TX_POWER   0x92
 
#define MAGICRFID_OPCODE_SET_WRITE_TX_POWER   0x94
 
#define MAGICRFID_OPCODE_SET_REGION   0x97
 
#define MAGICRFID_OPCODE_SET_READER_OPTIONAL_PARAMS   0x9A
 
#define MAGICRFID_OPCODE_SET_PROTOCOL_PARAM   0x9B
 
#define MAGICRFID_REGION_INDIA   0x04
 Magic RFID region commands.
 
#define MAGICRFID_REGION_JAPAN   0x05
 
#define MAGICRFID_REGION_CHINA   0x06
 
#define MAGICRFID_REGION_EUROPE   0x08
 
#define MAGICRFID_REGION_KOREA   0x09
 
#define MAGICRFID_REGION_AUSTRALIA   0x0B
 
#define MAGICRFID_REGION_NEWZEALAND   0x0C
 
#define MAGICRFID_REGION_NORTHAMERICA   0x0D
 
#define MAGICRFID_REGION_OPEN   0xFF
 
#define MAGICRFID_TAG_PROTOCOL_NONE   0x00
 Magic RFID tag protocol commands.
 
#define MAGICRFID_TAG_PROTOCOL_ISO180006B   0x03
 
#define MAGICRFID_TAG_PROTOCOL_GEN2   0x05
 
#define MAGICRFID_TAG_PROTOCOL_ISO180006B_UCODE   0x06
 
#define MAGICRFID_TAG_PROTOCOL_IPX64   0x07
 
#define MAGICRFID_TAG_PROTOCOL_IPX256   0x08
 
#define MAGICRFID_TAG_PROTOCOL_ATA   0x1D
 
#define MAGICRFID_NORMAL_DELAY_TIME   50
 Magic RFID timeout and delays.
 
#define MAGICRFID_LONG_DELAY_TIME   100
 
#define MAGICRFID_TIMEOUT_MS   3000
 
#define MAGICRFID_HEADER   0xFF
 Magic RFID command and response settings.
 
#define MAGICRFID_COMMAND_MAX_DATA_LEN   250
 
#define MAGICRFID_RESPONSE_MAX_DATA_LEN   248
 
#define MAGICRFID_EPC_MAX_DATA_LEN   16
 
#define MAGICRFID_TX_DRV_BUFFER_SIZE   255
 Magic RFID driver buffer size.
 
#define MAGICRFID_RX_DRV_BUFFER_SIZE   255
 

Detailed Description

Settings for registers of Magic RFID Click driver.

Macro Definition Documentation

◆ MAGICRFID_COMMAND_MAX_DATA_LEN

#define MAGICRFID_COMMAND_MAX_DATA_LEN   250

◆ MAGICRFID_EPC_MAX_DATA_LEN

#define MAGICRFID_EPC_MAX_DATA_LEN   16

◆ MAGICRFID_HEADER

#define MAGICRFID_HEADER   0xFF

Magic RFID command and response settings.

Specified setting for command and response of Magic RFID Click driver.

◆ MAGICRFID_LONG_DELAY_TIME

#define MAGICRFID_LONG_DELAY_TIME   100

◆ MAGICRFID_NORMAL_DELAY_TIME

#define MAGICRFID_NORMAL_DELAY_TIME   50

Magic RFID timeout and delays.

Specified setting for timeout and delays of Magic RFID Click driver.

◆ MAGICRFID_OPCODE_CLEAR_TAG_ID_BUFFER

#define MAGICRFID_OPCODE_CLEAR_TAG_ID_BUFFER   0x2A

◆ MAGICRFID_OPCODE_GET_POWER_MODE

#define MAGICRFID_OPCODE_GET_POWER_MODE   0x68

◆ MAGICRFID_OPCODE_GET_PROTOCOL_PARAM

#define MAGICRFID_OPCODE_GET_PROTOCOL_PARAM   0x6B

◆ MAGICRFID_OPCODE_GET_READ_TX_POWER

#define MAGICRFID_OPCODE_GET_READ_TX_POWER   0x62

◆ MAGICRFID_OPCODE_GET_READER_OPTIONAL_PARAMS

#define MAGICRFID_OPCODE_GET_READER_OPTIONAL_PARAMS   0x6A

◆ MAGICRFID_OPCODE_GET_WRITE_TX_POWER

#define MAGICRFID_OPCODE_GET_WRITE_TX_POWER   0x64

◆ MAGICRFID_OPCODE_KILL_TAG

#define MAGICRFID_OPCODE_KILL_TAG   0x26

◆ MAGICRFID_OPCODE_MULTI_PROTOCOL_TAG_OP

#define MAGICRFID_OPCODE_MULTI_PROTOCOL_TAG_OP   0x2F

◆ MAGICRFID_OPCODE_READ_TAG_DATA

#define MAGICRFID_OPCODE_READ_TAG_DATA   0x28

◆ MAGICRFID_OPCODE_READ_TAG_ID_MULTIPLE

#define MAGICRFID_OPCODE_READ_TAG_ID_MULTIPLE   0x22

◆ MAGICRFID_OPCODE_READ_TAG_ID_SINGLE

#define MAGICRFID_OPCODE_READ_TAG_ID_SINGLE   0x21

◆ MAGICRFID_OPCODE_SET_ANTENNA_PORT

#define MAGICRFID_OPCODE_SET_ANTENNA_PORT   0x91

◆ MAGICRFID_OPCODE_SET_BAUD_RATE

#define MAGICRFID_OPCODE_SET_BAUD_RATE   0x06

◆ MAGICRFID_OPCODE_SET_PROTOCOL_PARAM

#define MAGICRFID_OPCODE_SET_PROTOCOL_PARAM   0x9B

◆ MAGICRFID_OPCODE_SET_READ_TX_POWER

#define MAGICRFID_OPCODE_SET_READ_TX_POWER   0x92

◆ MAGICRFID_OPCODE_SET_READER_OPTIONAL_PARAMS

#define MAGICRFID_OPCODE_SET_READER_OPTIONAL_PARAMS   0x9A

◆ MAGICRFID_OPCODE_SET_REGION

#define MAGICRFID_OPCODE_SET_REGION   0x97

◆ MAGICRFID_OPCODE_SET_TAG_PROTOCOL

#define MAGICRFID_OPCODE_SET_TAG_PROTOCOL   0x93

◆ MAGICRFID_OPCODE_SET_WRITE_TX_POWER

#define MAGICRFID_OPCODE_SET_WRITE_TX_POWER   0x94

◆ MAGICRFID_OPCODE_VERSION

#define MAGICRFID_OPCODE_VERSION   0x03

Magic RFID control commands.

Specified setting for control commands of Magic RFID Click driver.

◆ MAGICRFID_OPCODE_WRITE_TAG_DATA

#define MAGICRFID_OPCODE_WRITE_TAG_DATA   0x24

◆ MAGICRFID_OPCODE_WRITE_TAG_ID

#define MAGICRFID_OPCODE_WRITE_TAG_ID   0x23

◆ MAGICRFID_REGION_AUSTRALIA

#define MAGICRFID_REGION_AUSTRALIA   0x0B

◆ MAGICRFID_REGION_CHINA

#define MAGICRFID_REGION_CHINA   0x06

◆ MAGICRFID_REGION_EUROPE

#define MAGICRFID_REGION_EUROPE   0x08

◆ MAGICRFID_REGION_INDIA

#define MAGICRFID_REGION_INDIA   0x04

Magic RFID region commands.

Specified setting for region commands of Magic RFID Click driver.

◆ MAGICRFID_REGION_JAPAN

#define MAGICRFID_REGION_JAPAN   0x05

◆ MAGICRFID_REGION_KOREA

#define MAGICRFID_REGION_KOREA   0x09

◆ MAGICRFID_REGION_NEWZEALAND

#define MAGICRFID_REGION_NEWZEALAND   0x0C

◆ MAGICRFID_REGION_NORTHAMERICA

#define MAGICRFID_REGION_NORTHAMERICA   0x0D

◆ MAGICRFID_REGION_OPEN

#define MAGICRFID_REGION_OPEN   0xFF

◆ MAGICRFID_RESPONSE_MAX_DATA_LEN

#define MAGICRFID_RESPONSE_MAX_DATA_LEN   248

◆ MAGICRFID_RX_DRV_BUFFER_SIZE

#define MAGICRFID_RX_DRV_BUFFER_SIZE   255

◆ MAGICRFID_TAG_PROTOCOL_ATA

#define MAGICRFID_TAG_PROTOCOL_ATA   0x1D

◆ MAGICRFID_TAG_PROTOCOL_GEN2

#define MAGICRFID_TAG_PROTOCOL_GEN2   0x05

◆ MAGICRFID_TAG_PROTOCOL_IPX256

#define MAGICRFID_TAG_PROTOCOL_IPX256   0x08

◆ MAGICRFID_TAG_PROTOCOL_IPX64

#define MAGICRFID_TAG_PROTOCOL_IPX64   0x07

◆ MAGICRFID_TAG_PROTOCOL_ISO180006B

#define MAGICRFID_TAG_PROTOCOL_ISO180006B   0x03

◆ MAGICRFID_TAG_PROTOCOL_ISO180006B_UCODE

#define MAGICRFID_TAG_PROTOCOL_ISO180006B_UCODE   0x06

◆ MAGICRFID_TAG_PROTOCOL_NONE

#define MAGICRFID_TAG_PROTOCOL_NONE   0x00

Magic RFID tag protocol commands.

Specified setting for tag protocol commands of Magic RFID Click driver.

◆ MAGICRFID_TIMEOUT_MS

#define MAGICRFID_TIMEOUT_MS   3000

◆ MAGICRFID_TX_DRV_BUFFER_SIZE

#define MAGICRFID_TX_DRV_BUFFER_SIZE   255

Magic RFID driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.