文件名称:RC531详细英文资料和程序
文件大小:986KB
文件格式:ZIP
更新时间:2011-12-01 08:31:31
rfid
/ // FUNCTION: M500PcdReset // IN: - // OUT: - // RETURN: MI_OK // MI_RESETERR // MI_INTERFACEERR // COMMENT: This function initiates a reset of the reader IC. Note, that // the reset pin of the reader has to be connected to the // expected port pin of the microcontroller. // char M500PcdReset(void); // _____________________________________________________________________________ // // FUNCTION: M500PcdConfig // IN: - // OUT: - // RETURN: MI_OK // MI_RESETERR // MI_INTERFACEERR // COMMENT: Configuration of the reader IC. This function has to be called // before the first data is written to the reader. A reset // is initiated and several registers are set. // char M500PcdConfig(void); // _____________________________________________________________________________ // // FUNCTION: M500PcdInOutSlaveConfig // IN: - // OUT: - // RETURN: MI_OK // MI_UNKNOWN_COMMAND // MI_ACCESSTIMEOUT // COMMENT: The reader IC is able to communicate with another reader IC // via the digital "mifare in" and "mifare out" interface. Therefore // one reader acts as a master and sends commands via "mifare out". // The other reader ic acts as a slave and receives data via // "mifare in" interface. The slave module can not be initialised // by the microcontroller because only the "mifare in/out" // interface is connected.For this reason, the slave module has // to be initialised once. For that the appropriate parameter // settings are written to // the E2PROM. After POR (power on reset) the IC reads these settings // and initialises automatically as slave. // char M500PcdInOutSlaveConfig(void); // _____________________________________________________________________________ // // FUNCTION: M500PcdInOutMasterConfig // IN: - // OUT: - // RETURN: MI_OK // COMMENT: Corresponding to the slave configuration routine. This function // initialises the master reader IC. The function is additional // to the standard configuration "M500PcdConfig". // char M500PcdInOutMasterConfig(void); // _____________________________________________________________________________ // // FUNCTION: MfPcdLoadMk // IN: kl_mode PICC_AUTHENT1A or PICC_AUTHENT1B // selects master key A or master key B // KS0, KS1, KS2 selects one of the three master key sets. // key_addr spec. the key RAM address to which the data shall be // written (0..15) // mk pointer to a 6 byte authentication key // OUT: - // RETURN: MI_OK // COMMENT: In order to be "calling compatibel" to former libraries, this // function enables to store all keys in the microcontroller. // When calling the authentication function "M500PiccAuth", // these keys can be used. // Note: This concept supports backward compatibility for the // application software, but does not fulfill the same security // level because keys are in this case stored autside the secure key // memory of the MF RC500. // char M500PcdLoadMk(unsigned char kl_mode, unsigned char key_addr, unsigned char *mk); // _____________________________________________________
【文件预览】:
RC531 Ref Code.zip
M056620 MFRC531.pdf
531-password.txt