LibDriver MFRC522  1.0.0
MFRC522 full-featured driver
mfrc522_handle_s Struct Reference

mfrc522 handle structure definition More...

#include <driver_mfrc522.h>

Data Fields

uint8_t(* reset_gpio_init )(void)
 
uint8_t(* reset_gpio_deinit )(void)
 
uint8_t(* reset_gpio_write )(uint8_t data)
 
uint8_t(* iic_init )(void)
 
uint8_t(* iic_deinit )(void)
 
uint8_t(* iic_write )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
 
uint8_t(* iic_read )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
 
uint8_t(* uart_init )(void)
 
uint8_t(* uart_deinit )(void)
 
uint16_t(* uart_read )(uint8_t *buf, uint16_t len)
 
uint8_t(* uart_flush )(void)
 
uint8_t(* uart_write )(uint8_t *buf, uint16_t len)
 
uint8_t(* spi_init )(void)
 
uint8_t(* spi_deinit )(void)
 
uint8_t(* spi_read )(uint8_t reg, uint8_t *buf, uint16_t len)
 
uint8_t(* spi_write )(uint8_t reg, uint8_t *buf, uint16_t len)
 
void(* receive_callback )(uint16_t type)
 
void(* delay_ms )(uint32_t ms)
 
void(* debug_print )(const char *const fmt,...)
 
uint8_t inited
 
uint8_t iic_addr
 
uint8_t iic_spi_uart
 
uint16_t irq_flag
 

Detailed Description

mfrc522 handle structure definition

Definition at line 361 of file driver_mfrc522.h.

Field Documentation

◆ debug_print

void(* debug_print) (const char *const fmt,...)

point to a debug_print function address

Definition at line 381 of file driver_mfrc522.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 380 of file driver_mfrc522.h.

◆ iic_addr

uint8_t iic_addr

iic address

Definition at line 383 of file driver_mfrc522.h.

◆ iic_deinit

uint8_t(* iic_deinit) (void)

point to an iic_deinit function address

Definition at line 367 of file driver_mfrc522.h.

◆ iic_init

uint8_t(* iic_init) (void)

point to an iic_init function address

Definition at line 366 of file driver_mfrc522.h.

◆ iic_read

uint8_t(* iic_read) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)

point to an iic_read function address

Definition at line 369 of file driver_mfrc522.h.

◆ iic_spi_uart

uint8_t iic_spi_uart

iic spi uart

Definition at line 384 of file driver_mfrc522.h.

◆ iic_write

uint8_t(* iic_write) (uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)

point to an iic_write function address

Definition at line 368 of file driver_mfrc522.h.

◆ inited

uint8_t inited

inited flag

Definition at line 382 of file driver_mfrc522.h.

◆ irq_flag

uint16_t irq_flag

set the irq flag

Definition at line 385 of file driver_mfrc522.h.

◆ receive_callback

void(* receive_callback) (uint16_t type)

point to a receive_callback function address

Definition at line 379 of file driver_mfrc522.h.

◆ reset_gpio_deinit

uint8_t(* reset_gpio_deinit) (void)

point to a reset_gpio_deinit function address

Definition at line 364 of file driver_mfrc522.h.

◆ reset_gpio_init

uint8_t(* reset_gpio_init) (void)

point to a reset_gpio_init function address

Definition at line 363 of file driver_mfrc522.h.

◆ reset_gpio_write

uint8_t(* reset_gpio_write) (uint8_t data)

point to a reset_gpio_write function address

Definition at line 365 of file driver_mfrc522.h.

◆ spi_deinit

uint8_t(* spi_deinit) (void)

point to a spi_deinit function address

Definition at line 376 of file driver_mfrc522.h.

◆ spi_init

uint8_t(* spi_init) (void)

point to a spi_init function address

Definition at line 375 of file driver_mfrc522.h.

◆ spi_read

uint8_t(* spi_read) (uint8_t reg, uint8_t *buf, uint16_t len)

point to a spi_read function address

Definition at line 377 of file driver_mfrc522.h.

◆ spi_write

uint8_t(* spi_write) (uint8_t reg, uint8_t *buf, uint16_t len)

point to a spi_write function address

Definition at line 378 of file driver_mfrc522.h.

◆ uart_deinit

uint8_t(* uart_deinit) (void)

point to a uart_deinit function address

Definition at line 371 of file driver_mfrc522.h.

◆ uart_flush

uint8_t(* uart_flush) (void)

point to a uart_flush function address

Definition at line 373 of file driver_mfrc522.h.

◆ uart_init

uint8_t(* uart_init) (void)

point to a uart_init function address

Definition at line 370 of file driver_mfrc522.h.

◆ uart_read

uint16_t(* uart_read) (uint8_t *buf, uint16_t len)

point to a uart_read function address

Definition at line 372 of file driver_mfrc522.h.

◆ uart_write

uint8_t(* uart_write) (uint8_t *buf, uint16_t len)

point to a uart_write function address

Definition at line 374 of file driver_mfrc522.h.


The documentation for this struct was generated from the following file: