_status = MFRC522_ToCard( PCD_TRANSCEIVE, TagType, 1, TagType, &backBits ) MFRC522_Wr( BITFRAMINGREG, 0x07 ) //TxLastBists = BitFramingReg ? Unsigned backBits //The received data bits Static void MFRC522_Wr( char addr, char value )Ĭhar MFRC522_Request( char reqMode, char *TagType ) And MF522 The error code is returned when communication #define PICC_TRANSFER 0xB0 // save the data in the buffer #define PICC_RESTORE 0xC2 // transfer block data to the buffer #define PICC_AUTHENT1B 0圆1 // authentication key B #define PICC_AUTHENT1A 0圆0 // authentication key A #define PICC_SElECTTAG 0x93 // election card #define PICC_ANTICOLL 0x93 // anti-collision #define PICC_REQALL 0x52 // find all the cards antenna area #define PICC_REQIDL 0x26 // find the antenna area does not enter hibernation #define PCD_TRANSCEIVE 0x0C //Transmit and receive data, #define PCD_TRANSMIT 0x04 //Transmit data #define PCD_AUTHENT 0x0E //Authentication Key #define PCD_IDLE 0x00 //NO action Cancel the current command
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |