esp32-off-Line-tools/main/rfid_rc522/mifare_M1.h

11 lines
547 B
C

#ifndef MIFARE_M1_H
#define MIFARE_M1_H
#include <esp_check.h>
#include "rc522.h"
#include "picc/rc522_mifare.h"
esp_err_t rc522_read_sector(rc522_handle_t rc522, rc522_mifare_sector_desc_t sector, rc522_mifare_key_t key,uint8_t *data);
esp_err_t rc522_write_block(rc522_handle_t rc522, rc522_mifare_sector_desc_t sector, uint8_t Offset, rc522_mifare_key_t key,uint8_t data[RC522_MIFARE_BLOCK_SIZE]);
esp_err_t rc522_set_key(rc522_handle_t rc522, rc522_mifare_sector_desc_t sector, rc522_mifare_key_t old_key, rc522_mifare_key_t new_key);
#endif