LibDriver MFRC522  1.0.0
MFRC522 full-featured driver
mfrc522 chip test driver function

mfrc522 chip test driver modules More...

Functions

uint8_t mfrc522_set_test_bus_signal_1 (mfrc522_handle_t *handle, uint8_t s)
 set the test bus signal 1 More...
 
uint8_t mfrc522_get_test_bus_signal_1 (mfrc522_handle_t *handle, uint8_t *s)
 get the test bus signal 1 More...
 
uint8_t mfrc522_set_test_bus_signal_2 (mfrc522_handle_t *handle, uint8_t s)
 set the test bus signal 2 More...
 
uint8_t mfrc522_get_test_bus_signal_2 (mfrc522_handle_t *handle, uint8_t *s)
 get the test bus signal 2 More...
 
uint8_t mfrc522_set_test_bus_flip (mfrc522_handle_t *handle, mfrc522_bool_t enable)
 enable or disable test bus flip More...
 
uint8_t mfrc522_get_test_bus_flip (mfrc522_handle_t *handle, mfrc522_bool_t *enable)
 get the test bus flip status More...
 
uint8_t mfrc522_set_test_prbs9 (mfrc522_handle_t *handle, mfrc522_bool_t enable)
 enable or disable test prbs9 More...
 
uint8_t mfrc522_get_test_prbs9 (mfrc522_handle_t *handle, mfrc522_bool_t *enable)
 get the test prbs9 status More...
 
uint8_t mfrc522_set_test_prbs15 (mfrc522_handle_t *handle, mfrc522_bool_t enable)
 enable or disable test prbs15 More...
 
uint8_t mfrc522_get_test_prbs15 (mfrc522_handle_t *handle, mfrc522_bool_t *enable)
 get the test prbs15 status More...
 
uint8_t mfrc522_set_test_rs232_line (mfrc522_handle_t *handle, mfrc522_bool_t enable)
 enable or disable test rs232 line More...
 
uint8_t mfrc522_get_test_rs232_line (mfrc522_handle_t *handle, mfrc522_bool_t *enable)
 get the test rs232 line status More...
 
uint8_t mfrc522_set_test_pin_enable (mfrc522_handle_t *handle, uint8_t pin)
 set the test pin enable More...
 
uint8_t mfrc522_get_test_pin_enable (mfrc522_handle_t *handle, uint8_t *pin)
 get the test pin enable More...
 
uint8_t mfrc522_set_test_port_io (mfrc522_handle_t *handle, mfrc522_bool_t enable)
 enable or disable test port io More...
 
uint8_t mfrc522_get_test_port_io (mfrc522_handle_t *handle, mfrc522_bool_t *enable)
 get the test port io status More...
 
uint8_t mfrc522_set_test_pin_value (mfrc522_handle_t *handle, uint8_t value)
 set the test pin value More...
 
uint8_t mfrc522_get_test_pin_value (mfrc522_handle_t *handle, uint8_t *value)
 get the test pin value More...
 
uint8_t mfrc522_get_test_bus (mfrc522_handle_t *handle, uint8_t *bus)
 get the test bus More...
 
uint8_t mfrc522_set_test_amp_rcv (mfrc522_handle_t *handle, mfrc522_bool_t enable)
 enable or disable test amp rcv More...
 
uint8_t mfrc522_get_test_amp_rcv (mfrc522_handle_t *handle, mfrc522_bool_t *enable)
 get the test amp rcv status More...
 
uint8_t mfrc522_set_self_test (mfrc522_handle_t *handle, uint8_t test)
 set the self test More...
 
uint8_t mfrc522_get_self_test (mfrc522_handle_t *handle, uint8_t *test)
 get the self test More...
 
uint8_t mfrc522_get_version (mfrc522_handle_t *handle, uint8_t *id, uint8_t *version)
 get the version More...
 
uint8_t mfrc522_set_test_analog_control_aux_1 (mfrc522_handle_t *handle, mfrc522_test_analog_control_t control)
 set the test analog control aux 1 More...
 
uint8_t mfrc522_get_test_analog_control_aux_1 (mfrc522_handle_t *handle, mfrc522_test_analog_control_t *control)
 get the test analog control aux 1 More...
 
uint8_t mfrc522_set_test_analog_control_aux_2 (mfrc522_handle_t *handle, mfrc522_test_analog_control_t control)
 set the test analog control aux 2 More...
 
uint8_t mfrc522_get_test_analog_control_aux_2 (mfrc522_handle_t *handle, mfrc522_test_analog_control_t *control)
 get the test analog control aux 2 More...
 
uint8_t mfrc522_set_test_dac_1 (mfrc522_handle_t *handle, uint8_t dac)
 set the test dac 1 More...
 
uint8_t mfrc522_get_test_dac_1 (mfrc522_handle_t *handle, uint8_t *dac)
 get the test dac 1 More...
 
uint8_t mfrc522_set_test_dac_2 (mfrc522_handle_t *handle, uint8_t dac)
 set the test dac 2 More...
 
uint8_t mfrc522_get_test_dac_2 (mfrc522_handle_t *handle, uint8_t *dac)
 get the test dac 2 More...
 
uint8_t mfrc522_get_test_adc (mfrc522_handle_t *handle, uint8_t *adc_i, uint8_t *adc_q)
 get the test adc More...
 

Detailed Description

mfrc522 chip test driver modules

Function Documentation

◆ mfrc522_get_self_test()

uint8_t mfrc522_get_self_test ( mfrc522_handle_t handle,
uint8_t *  test 
)

get the self test

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*testpointer to a self test buffer
Returns
status code
  • 0 success
  • 1 get self test failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7336 of file driver_mfrc522.c.

◆ mfrc522_get_test_adc()

uint8_t mfrc522_get_test_adc ( mfrc522_handle_t handle,
uint8_t *  adc_i,
uint8_t *  adc_q 
)

get the test adc

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*adc_ipointer to an adc i buffer
[out]*adc_qpointer to an adc q buffer
Returns
status code
  • 0 success
  • 1 get test adc
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7739 of file driver_mfrc522.c.

◆ mfrc522_get_test_amp_rcv()

uint8_t mfrc522_get_test_amp_rcv ( mfrc522_handle_t handle,
mfrc522_bool_t enable 
)

get the test amp rcv status

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get test amp rcv failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7247 of file driver_mfrc522.c.

◆ mfrc522_get_test_analog_control_aux_1()

uint8_t mfrc522_get_test_analog_control_aux_1 ( mfrc522_handle_t handle,
mfrc522_test_analog_control_t control 
)

get the test analog control aux 1

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*controlpointer to an aux control buffer
Returns
status code
  • 0 success
  • 1 get test analog control aux 1
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7457 of file driver_mfrc522.c.

◆ mfrc522_get_test_analog_control_aux_2()

uint8_t mfrc522_get_test_analog_control_aux_2 ( mfrc522_handle_t handle,
mfrc522_test_analog_control_t control 
)

get the test analog control aux 2

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*controlpointer to an aux control buffer
Returns
status code
  • 0 success
  • 1 get test analog control aux 2
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7539 of file driver_mfrc522.c.

◆ mfrc522_get_test_bus()

uint8_t mfrc522_get_test_bus ( mfrc522_handle_t handle,
uint8_t *  bus 
)

get the test bus

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*buspointer to a bus buffer
Returns
status code
  • 0 success
  • 1 get test bus failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7167 of file driver_mfrc522.c.

◆ mfrc522_get_test_bus_flip()

uint8_t mfrc522_get_test_bus_flip ( mfrc522_handle_t handle,
mfrc522_bool_t enable 
)

get the test bus flip status

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get test bus flip failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6624 of file driver_mfrc522.c.

◆ mfrc522_get_test_bus_signal_1()

uint8_t mfrc522_get_test_bus_signal_1 ( mfrc522_handle_t handle,
uint8_t *  s 
)

get the test bus signal 1

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*spointer to a set signal buffer
Returns
status code
  • 0 success
  • 1 get test bus signal 1 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6453 of file driver_mfrc522.c.

◆ mfrc522_get_test_bus_signal_2()

uint8_t mfrc522_get_test_bus_signal_2 ( mfrc522_handle_t handle,
uint8_t *  s 
)

get the test bus signal 2

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*spointer to a set signal buffer
Returns
status code
  • 0 success
  • 1 get test bus signal 2 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6542 of file driver_mfrc522.c.

◆ mfrc522_get_test_dac_1()

uint8_t mfrc522_get_test_dac_1 ( mfrc522_handle_t handle,
uint8_t *  dac 
)

get the test dac 1

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*dacpointer to a set dac buffer
Returns
status code
  • 0 success
  • 1 get test dac 1
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7620 of file driver_mfrc522.c.

◆ mfrc522_get_test_dac_2()

uint8_t mfrc522_get_test_dac_2 ( mfrc522_handle_t handle,
uint8_t *  dac 
)

get the test dac 2

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*dacpointer to a set dac buffer
Returns
status code
  • 0 success
  • 1 get test dac 2
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7701 of file driver_mfrc522.c.

◆ mfrc522_get_test_pin_enable()

uint8_t mfrc522_get_test_pin_enable ( mfrc522_handle_t handle,
uint8_t *  pin 
)

get the test pin enable

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*pinpointer to a pin map buffer
Returns
status code
  • 0 success
  • 1 get test pin enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6959 of file driver_mfrc522.c.

◆ mfrc522_get_test_pin_value()

uint8_t mfrc522_get_test_pin_value ( mfrc522_handle_t handle,
uint8_t *  value 
)

get the test pin value

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*valuepointer to a set value buffer
Returns
status code
  • 0 success
  • 1 get test pin enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7130 of file driver_mfrc522.c.

◆ mfrc522_get_test_port_io()

uint8_t mfrc522_get_test_port_io ( mfrc522_handle_t handle,
mfrc522_bool_t enable 
)

get the test port io status

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get test port io failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7041 of file driver_mfrc522.c.

◆ mfrc522_get_test_prbs15()

uint8_t mfrc522_get_test_prbs15 ( mfrc522_handle_t handle,
mfrc522_bool_t enable 
)

get the test prbs15 status

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get test prbs15 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6788 of file driver_mfrc522.c.

◆ mfrc522_get_test_prbs9()

uint8_t mfrc522_get_test_prbs9 ( mfrc522_handle_t handle,
mfrc522_bool_t enable 
)

get the test prbs9 status

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get test prbs9 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6706 of file driver_mfrc522.c.

◆ mfrc522_get_test_rs232_line()

uint8_t mfrc522_get_test_rs232_line ( mfrc522_handle_t handle,
mfrc522_bool_t enable 
)

get the test rs232 line status

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get test rs232 line failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6870 of file driver_mfrc522.c.

◆ mfrc522_get_version()

uint8_t mfrc522_get_version ( mfrc522_handle_t handle,
uint8_t *  id,
uint8_t *  version 
)

get the version

Parameters
[in]*handlepointer to an mfrc522 handle structure
[out]*idpointer to an id buffer
[out]*versionpointer to a version buffer
Returns
status code
  • 0 success
  • 1 get version failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7374 of file driver_mfrc522.c.

◆ mfrc522_set_self_test()

uint8_t mfrc522_set_self_test ( mfrc522_handle_t handle,
uint8_t  test 
)

set the self test

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]testself test param
Returns
status code
  • 0 success
  • 1 set self test failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 test is over 0xF
Note
none

Definition at line 7285 of file driver_mfrc522.c.

◆ mfrc522_set_test_amp_rcv()

uint8_t mfrc522_set_test_amp_rcv ( mfrc522_handle_t handle,
mfrc522_bool_t  enable 
)

enable or disable test amp rcv

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set test amp rcv failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7202 of file driver_mfrc522.c.

◆ mfrc522_set_test_analog_control_aux_1()

uint8_t mfrc522_set_test_analog_control_aux_1 ( mfrc522_handle_t handle,
mfrc522_test_analog_control_t  control 
)

set the test analog control aux 1

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]controlaux control
Returns
status code
  • 0 success
  • 1 set test analog control aux 1
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7412 of file driver_mfrc522.c.

◆ mfrc522_set_test_analog_control_aux_2()

uint8_t mfrc522_set_test_analog_control_aux_2 ( mfrc522_handle_t handle,
mfrc522_test_analog_control_t  control 
)

set the test analog control aux 2

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]controlaux control
Returns
status code
  • 0 success
  • 1 set test analog control aux 2
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 7494 of file driver_mfrc522.c.

◆ mfrc522_set_test_bus_flip()

uint8_t mfrc522_set_test_bus_flip ( mfrc522_handle_t handle,
mfrc522_bool_t  enable 
)

enable or disable test bus flip

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set test bus flip failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6579 of file driver_mfrc522.c.

◆ mfrc522_set_test_bus_signal_1()

uint8_t mfrc522_set_test_bus_signal_1 ( mfrc522_handle_t handle,
uint8_t  s 
)

set the test bus signal 1

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]sset signal
Returns
status code
  • 0 success
  • 1 set test bus signal 1 failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 s is over 7
Note
none

Definition at line 6402 of file driver_mfrc522.c.

◆ mfrc522_set_test_bus_signal_2()

uint8_t mfrc522_set_test_bus_signal_2 ( mfrc522_handle_t handle,
uint8_t  s 
)

set the test bus signal 2

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]sset signal
Returns
status code
  • 0 success
  • 1 set test bus signal 2 failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 s is over 0x1F
Note
none

Definition at line 6491 of file driver_mfrc522.c.

◆ mfrc522_set_test_dac_1()

uint8_t mfrc522_set_test_dac_1 ( mfrc522_handle_t handle,
uint8_t  dac 
)

set the test dac 1

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]dacset dac
Returns
status code
  • 0 success
  • 1 set test dac 1
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 dac is over 0x3F
Note
none

Definition at line 7577 of file driver_mfrc522.c.

◆ mfrc522_set_test_dac_2()

uint8_t mfrc522_set_test_dac_2 ( mfrc522_handle_t handle,
uint8_t  dac 
)

set the test dac 2

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]dacset dac
Returns
status code
  • 0 success
  • 1 set test dac 2
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 dac is over 0x3F
Note
none

Definition at line 7658 of file driver_mfrc522.c.

◆ mfrc522_set_test_pin_enable()

uint8_t mfrc522_set_test_pin_enable ( mfrc522_handle_t handle,
uint8_t  pin 
)

set the test pin enable

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]pinset pin map
Returns
status code
  • 0 success
  • 1 set test pin enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • pin is over 0x3F
Note
none

Definition at line 6908 of file driver_mfrc522.c.

◆ mfrc522_set_test_pin_value()

uint8_t mfrc522_set_test_pin_value ( mfrc522_handle_t handle,
uint8_t  value 
)

set the test pin value

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]valueset value
Returns
status code
  • 0 success
  • 1 set test pin enable failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 value is over 0x3F
Note
none

Definition at line 7079 of file driver_mfrc522.c.

◆ mfrc522_set_test_port_io()

uint8_t mfrc522_set_test_port_io ( mfrc522_handle_t handle,
mfrc522_bool_t  enable 
)

enable or disable test port io

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set test port io failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6996 of file driver_mfrc522.c.

◆ mfrc522_set_test_prbs15()

uint8_t mfrc522_set_test_prbs15 ( mfrc522_handle_t handle,
mfrc522_bool_t  enable 
)

enable or disable test prbs15

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set test prbs15 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6743 of file driver_mfrc522.c.

◆ mfrc522_set_test_prbs9()

uint8_t mfrc522_set_test_prbs9 ( mfrc522_handle_t handle,
mfrc522_bool_t  enable 
)

enable or disable test prbs9

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set test prbs9 failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6661 of file driver_mfrc522.c.

◆ mfrc522_set_test_rs232_line()

uint8_t mfrc522_set_test_rs232_line ( mfrc522_handle_t handle,
mfrc522_bool_t  enable 
)

enable or disable test rs232 line

Parameters
[in]*handlepointer to an mfrc522 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set test rs232 line failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 6825 of file driver_mfrc522.c.