📄 prd_picoreadrf_pages_parameters.h
字号:
#define P6_ANT_TYPE_DIFFERENTIAL_LP 0x01 // Output antenna configuration : Differential, Low power
#define P6_ANT_TYPE_SINGLE_ENDED_NP 0x02 // Output antenna configuration : Single ended, Nominal power
#define P6_ANT_TYPE_SINGLE_ENDED_LP 0x03 // Output antenna configuration : Single ended, Low power
#define P6_MOD_INDEX_6 0xC0 // MOD_INDEX value for 6% modulation
#define P6_MOD_INDEX_10 0x80 // MOD_INDEX value for 10% modulation
#define P6_MOD_INDEX_20 0x40 // MOD_INDEX value for 20% modulation
#define P6_MOD_INDEX_30 0x20 // MOD_INDEX value for 30% modulation
#define P6_MOD_INDEX_100 0x00 // MOD_INDEX value for 100% modulation (ISO A)
// Page 6 : Reg 1 : IRQ, EMI, ReC, Windows for Freq check
#define P6_IRQ_EN 0x80 // Enable IRQ
#define P6_INV_EMI 0x40 // Invert modulation drive for emission
#define P6_INV_REC 0x20 // Invert data received by analog receiver
#define P6_FC 0x10 // Internal use
#define P6_WND_CNT_8 0x00 // Internal use
#define P6_WND_CNT_16 0x04
#define P6_WND_CNT_24 0x08
#define P6_WND_CNT_31 0x0C
#define P6_WND_SIZE_0 0x00 // Internal use
#define P6_WND_SIZE_1 0x01
#define P6_WND_SIZE_2 0x02
#define P6_WND_SIZE_3 0x03
// Page 6 : Reg 2 : Mode config register
#define P6_RASC_MODE 0x80 // Put the in Chip emulation (eNFC mode)
#define P6_PASSIVE 0x40 // Modulate using Hiz/0 for chip emulation
#define P6_FDET_EN 0x20 // Enable field detection when acting in passive mode
#define P6_CDET_LEVEL_EN 0x20 // Enable level mode for card detection
#define P6_EXT_MOD_NOCARRIER 0x10 // Do not apply 13.56MHz carrier on the ANTx output du direct signal
#define P6_FILTER_CUT 0x08 // Apply the extra filter
#define P6_ADC_SHIFTDC_MAX 0x07
#define P6_ADC_SHIFTDC_DEFAULT 0x07
#define P6_ADC_SHIFTDC_MIN 0x00
#define P6_ADC_SHIFTDC_R2R 0x01
// Page 6 : Reg 3,4 : CRC16
// Page 6 : Reg 5 : Receiver configuration A
#define P6_EN_RASC_BIAS 0x80 // Must be used for low baudrate in eNFC Mode
#define P6_ZIN_MIN 0x00 // Infinite
#define P6_ZIN_R 0x10 // R resitor activated
#define P6_ZIN_2R 0x20 // 2R resitor activated
#define P6_ZIN_4R 0x40 // 4R resitor activated
#define P6_ZIN_MAX 0x70 // 4R || 2R || R
#define P6_RX_GAIN_MIN 0x08 // Set a 13db gain for amplifier
#define P6_RX_GAIN_MEDIUM 0x00 // Set a 18db gain for amplifier
#define P6_RX_GAIN_MAX 0x04 // Set a 24db gain for amplifier
/* For PicoRead U03 */
#define P6_AC_CAP_MIN 0x00 // Apply a minimum serial capacitor within filters
#define P6_AC_CAP_MEDIUM 0x01 // Apply a medium serial capacitor within filters
#define P6_AC_CAP_HIGH 0x02 // Apply a high serial capacitor within filters
#define P6_AC_CAP_MAX 0x03 // Apply a maximum serial capacitor within filters
/*------------------*/
/* For PicoRead U02 & U01 */
/*#define P6_AC_CAP_MEDIUM 0x00 // Apply a medium serial capacitor within filters */
/*#define P6_AC_CAP_HIGH 0x01 // Apply a high serial capacitor within filters */
/*#define P6_AC_CAP_MAX 0x03 // Apply a maximum serial capacitor within filters */
/*------------------------*/
// Page 6 : Reg 6 : Receiver configuration B
#define P6_CDET_LEVEL_0 0xC0 // Smallest sensitivity for card detection
#define P6_CDET_LEVEL_1 0x80
#define P6_CDET_LEVEL_2 0x40
#define P6_CDET_LEVEL_3 0x00 // Highest sensitivity for card detection
#define P6_CDET_LEVEL_MIN P6_CDET_LEVEL_0
#define P6_CDET_LEVEL_MAX P6_CDET_LEVEL_3
#define P6_FDET_LEVEL_0 0xC0 // Highest sensitivity for field detection
#define P6_FDET_LEVEL_1 0x80
#define P6_FDET_LEVEL_2 0x40
#define P6_FDET_LEVEL_3 0x00 // Smallest sensitivity for field detection
#define P6_FDET_LEVEL_MIN P6_FDET_LEVEL_3
#define P6_FDET_LEVEL_MAX P6_FDET_LEVEL_0
#define P6_CDET_GAIN_40 0x30 // Amplification is set to 40 times
#define P6_CDET_GAIN_30 0x20
#define P6_CDET_GAIN_20 0x10
#define P6_CDET_GAIN_10 0x00
#define P6_CDET_GAIN_MIN P6_CDET_GAIN_10
#define P6_CDET_GAIN_MAX P6_CDET_GAIN_40
#define P6_FDET_GAIN_40 P6_CDET_GAIN_40 // Amplification is set to 40 times
#define P6_FDET_GAIN_30 P6_CDET_GAIN_30
#define P6_FDET_GAIN_20 P6_FDET_GAIN_20
#define P6_FDET_GAIN_10 P6_FDET_GAIN_10
#define P6_FDET_GAIN_MIN P6_FDET_GAIN_10
#define P6_FDET_GAIN_MAX P6_FDET_GAIN_40
#define P6_SHUTDOWN 0x08 // Put the chip in shutdown mode (1uA)
#define P6_COMP_OFFSET_000 0x00 //
#define P6_COMP_OFFSET_001 0x01 //
#define P6_COMP_OFFSET_010 0x02 // Intermediate values of COMP_OFFSET
#define P6_COMP_OFFSET_011 0x03 //
#define P6_COMP_OFFSET_100 0x04 //
#define P6_COMP_OFFSET_101 0x05 //
#define P6_COMP_OFFSET_MIN P6_COMP_OFFSET_000 // Minimal offset = Maximal sensitivity
#define P6_COMP_OFFSET_MAX P6_COMP_OFFSET_101 // Maximal offset = Minimal sensitivity
#define P6_COMP_OFFSET_DEFAULT P6_COMP_OFFSET_000 // Default value
// Page 6 : Reg 7 : Special mode
#define P6_TRANSPARENT 0x80
#define P6_PULS_ISOA_1 0x70
#define P6_PULS_ISOA_2 0x60
#define P6_PULS_ISOA_3 0x50
#define P6_PULS_ISOA_4 0x40
#define P6_PULS_ISOA_5 0x30
#define P6_PULS_ISOA_6 0x20
#define P6_PULS_ISOA_7 0x10
#define P6_PULS_ISOA_8 0x00
#define P6_PULS_ISOA_DEFAULT P6_PULS_ISOA_8 // Default ISO A pulse width
#define P6_PULS_ISO15_1 0x0E
#define P6_PULS_ISO15_2 0x0C
#define P6_PULS_ISO15_3 0x0A
#define P6_PULS_ISO15_4 0x08
#define P6_PULS_ISO15_5 0x06
#define P6_PULS_ISO15_6 0x04
#define P6_PULS_ISO15_7 0x02
#define P6_PULS_ISO15_8 0x00
#define P6_PULS_ISO15_DEFAULT P6_PULS_ISO15_8 // Default ISO 15693 pulse width
#define P6_CDET_EN 0x01 // Card Detection enable
#define P6_R7_DEFAULT P6_PULS_ISOA_DEFAULT | P6_PULS_ISO15_DEFAULT
//=======================================
// Page 7 : Reg 0
#define P7_R1_DEFAULT 0x02
#define P7_R2_DEFAULT 0x00
#define P7_CDET_IDLE_SHORT 0x00
#define P7_CDET_IDLE_LONG 0xC0
#define P7_CDET_LOCK 0x00
#define P7_CDET_UNLOCK 0x20
#define P7_CDET_SAMPLE_NORMAL 0x00
#define P7_CDET_SAMPLE_IC100HB1 0x10
#define P7_SAFE_MODE 0x00
#define P7_RF_CLOCK_SEL_RSGATE 0x00
#define P7_RF_CLOCK_SEL_CARRIER 0x04
#define P7_CDET_DELTA_EN 0x02
#define P7_ISOB_CLK_RFCLOCK 0x00
#define P7_ISOB_CLK_INTERNALCLOCK 0x01
// Page 7 : Reg 1
/* For PicoRead U03 */
#define P7_RASC_BIAS_LVL_SMALLBIAS 0x04
#define P7_RASC_BIAS_LVL_MEDIUMBIAS 0x00
#define P7_RASC_BIAS_LVL_STRONGESTBIAS 0x02
/*------------------*/
/* For PicoRead U02 */
/*#define P7_RASC_BIAS_LVL_SMALLBIAS 0x00 */
/*#define P7_RASC_BIAS_LVL_MEDIUMBIAS 0x02 */
/*------------------*/
#define P7_ISOA_TIMER_EN 0x01
//=======================================
// Status error
#define STATUS_ERR_FE 0x02
#define STATUS_ERR_CD 0x80
#define STATUS_NB_BITS 0x70
#define STATUS_ERR_CRC 0x08
#define STATUS_ERR_PE 0x04
// ERROR DEFINITIONS MOVED FROM EX
#define ERR_NO_ERROR 0
#define ERR_COLL 1
#define ERR_NOCARD 2
#define ERR_CRC 3
#define ERR_PAR 4
#define ERR_ISOB 20
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -