LibDriver MFRC522  1.0.0
MFRC522 full-featured driver
mfrc522 extern driver function

mfrc522 extern driver modules More...

Functions

uint8_t mfrc522_set_reg (mfrc522_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register More...
 
uint8_t mfrc522_get_reg (mfrc522_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register More...
 

Detailed Description

mfrc522 extern driver modules

Function Documentation

◆ mfrc522_get_reg()

uint8_t mfrc522_get_reg ( mfrc522_handle_t handle,
uint8_t  reg,
uint8_t *  buf,
uint16_t  len 
)

get the chip register

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]regregister address
[out]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7806 of file driver_mfrc522.c.

◆ mfrc522_set_reg()

uint8_t mfrc522_set_reg ( mfrc522_handle_t handle,
uint8_t  reg,
uint8_t *  buf,
uint16_t  len 
)

set the chip register

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]regregister address
[in]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7779 of file driver_mfrc522.c.