#include #include "rc522_types_internal.h" #include "rc522_driver.h" #define RC522_DRIVER_HARD_RST_PIN_PWR_DOWN_LEVEL (0) #define RC522_DRIVER_HARD_RST_PULSE_DURATION_MS (15) typedef esp_err_t (*rc522_driver_install_handler_t)(const rc522_driver_handle_t driver); typedef esp_err_t (*rc522_driver_send_handler_t)( const rc522_driver_handle_t driver, uint8_t address, const rc522_bytes_t *bytes); typedef esp_err_t (*rc522_driver_receive_handler_t)( const rc522_driver_handle_t driver, uint8_t address, rc522_bytes_t *bytes); typedef esp_err_t (*rc522_driver_reset_handler_t)(const rc522_driver_handle_t driver); typedef esp_err_t (*rc522_driver_uninstall_handler_t)(const rc522_driver_handle_t driver); struct rc522_driver_handle { void *config; void *device; void *meta; /*