/* * Module_RFID.h * * Created on: 2019¦~8¤ë12¤é * Author: USER */ #ifndef LIB_RFID_H_ #define LIB_RFID_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* Standard input/output definitions */ #include #include /* UNIX standard function definitions */ #include /* File control definitions */ #include /* POSIX terminal control definitions */ #include /* Error number definitions */ #include /* String function definitions */ #include #include #include #include char ClaCheckSum(unsigned char *buffer, int len); int system_command(int uart, unsigned char* cmd,int length, unsigned char* rx); bool getRequestCardSN(int Fd, int moduleType, unsigned char *serialNumber); bool getBlockRead(int Fd, int moduleType,int block, unsigned char keyid, unsigned char *data); bool setBlockWrite(int Fd, int moduleType,int block, unsigned char keyid, unsigned char *data); bool searchTag(int Fd, int moduleType, unsigned char *serialNumber, int status); bool MifareClassic_Login(int Fd, int moduleType, int block, unsigned char keyId); bool MifareClassic_ReadBlock(int Fd, int moduleType, int block, unsigned char *data); bool MifareClassic_WriteBlock(int Fd, int moduleType, int block, unsigned char *data); bool SetBeep(int Fd, int moduleType, unsigned char sound); void setBuzzer(int Fd, int moduleType, unsigned char time); void sethaltCard(int Fd, int moduleType); #endif