MfRc500.h
上传用户:liao421
上传日期:2013-06-13
资源大小:35k
文件大小:7k
- /*
- * Copyright (c), Philips Semiconductors Gratkorn / Austria
- *
- * (C)PHILIPS Electronics N.V.2000
- * All rights are reserved. Reproduction in whole or in part is
- * prohibited without the written consent of the copyright owner.
- * Philips reserves the right to make changes without notice at any time.
- * Philips makes no warranty, expressed, implied or statutory, including but
- * not limited to any implied warranty of merchantability or fitness for any
- *particular purpose, or that the use will not infringe any third party patent,
- * copyright or trademark. Philips must not be liable for any loss or damage
- * arising from its use.
- */
- #ifndef MFRC500_H
- #define MFRC500_H
- // PCD Configuration
- signed char Mf500PcdConfig(void);
- // Active Antenna Slave Configuration of the MF RC500.
- signed char Mf500ActiveAntennaSlaveConfig(void);
- // Active Antenna Master Configuration of the MF RC 500
- signed char Mf500ActiveAntennaMasterConfig(void);
- // Set default attributes for the baudrate divider
- signed char Mf500PcdSetDefaultAttrib(void);
- // Set attributes for the baudrate divider
- signed char Mf500PcdSetAttrib(unsigned char DSI,
- unsigned char DRI);
- // Get transmission properties of the PCD
- signed char Mf500PcdGetAttrib(unsigned char *FSCImax,
- unsigned char *FSDImax,
- unsigned char *DSsupp,
- unsigned char *DRsupp,
- unsigned char *DREQDS);
- // PICC Request command
- signed char Mf500PiccRequest(unsigned char req_code,
- unsigned char *atq);
-
- // PICC Request command for ISO 14443 A-4 Command set
- signed char Mf500PiccCommonRequest(unsigned char req_code,
- unsigned char *atq);
- // PICC Anticollision Command
- signed char Mf500PiccAnticoll (unsigned char bcnt,
- unsigned char *snr);
- // PICC Cascaded Anticollision Command
- signed char Mf500PiccCascAnticoll (unsigned char select_code,
- unsigned char bcnt,
- unsigned char *snr);
- // PICC Select Command
- signed char Mf500PiccSelect(unsigned char *snr,
- unsigned char *sak);
- // PICC Select Command
- signed char Mf500PiccCascSelect(unsigned char select_code,
- unsigned char *snr,
- unsigned char *sak);
- // Activation of a PICC in IDLE mode
- signed char Mf500PiccActivateIdle(unsigned char br,
- unsigned char *atq,
- unsigned char *sak,
- unsigned char *uid,
- unsigned char *uid_len);
- // Activation of all PICC's in the RF field
- signed char Mf500PiccActivateWakeup(unsigned char br,
- unsigned char *atq,
- unsigned char *sak,
- unsigned char *uid,
- unsigned char uid_len);
- // MIFARE