可以读取M1卡的序列号,其他区块的读写还要继续研究

This commit is contained in:
2021-09-07 21:29:14 +08:00
parent a53edf3c01
commit 4d5efd5759
7 changed files with 8418 additions and 7347 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ char PcdSelect ( uint8_t * pSnr )
* = MI_OK,成功
* 调用 :外部调用
*/
char PcdAuthState ( uint8_t ucAuth_mode, uint8_t ucAddr, uint8_t * pKey, uint8_t * pSnr )
char PcdAuthState ( uint8_t ucAuth_mode, uint8_t ucAddr, char * pKey, uint8_t * pSnr )
{
char cStatus;
uint8_t uc, ucComMF522Buf [ MAXRLEN ];
+4
View File
@@ -127,5 +127,9 @@
void RC522_Init( void ); //初始化
char PcdRequest ( uint8_t ucReq_code, uint8_t * pTagType );
char PcdAnticoll ( uint8_t * pSnr );
char PcdRead ( uint8_t ucAddr, uint8_t * pData );
char PcdAuthState ( uint8_t ucAuth_mode, uint8_t ucAddr, char * pKey, uint8_t * pSnr );
#endif /* RS522_H_ */