58 uint8_t data_check[16];
61 uint8_t block_2_10_14;
187 for (i = 0; i < 16; i++)
212 for (i = 0; i < 16; i++)
214 data[i] = rand() % 256;
217 for (i = 0; i < 16; i++)
241 for (i = 0; i < 16; i++)
507 for (i = 0; i < 16; i++)
514 for (i = 0; i < 200; i += 15)
530 for (i = 0; i < 40; i += 5)
546 for (i = 0; i < 40; i += 5)
603 0, &block_0_0_4, &block_1_5_9,
604 &block_2_10_14, &block_3_15,
614 block_0_0_4, block_1_5_9, block_2_10_14, block_3_15);
617 key_b[0], key_b[1], key_b[2], key_b[3], key_b[4], key_b[5]);
driver fm11rfxx card test header file
uint8_t fm11rfxx_select_cl1(fm11rfxx_handle_t *handle, uint8_t id[4])
fm11rfxx select cl1
uint8_t fm11rfxx_sector_first_block(fm11rfxx_handle_t *handle, uint8_t sector, uint8_t *block)
fm11rfxx get the sector's first block
uint8_t fm11rfxx_get_sector_permission(fm11rfxx_handle_t *handle, uint8_t sector, uint8_t *block_0_0_4, uint8_t *block_1_5_9, uint8_t *block_2_10_14, uint8_t *block_3_15, uint8_t *user_data, uint8_t key_b[6])
fm11rfxx get the sector permission
uint8_t fm11rfxx_deinit(fm11rfxx_handle_t *handle)
close the chip
uint8_t fm11rfxx_sector_last_block(fm11rfxx_handle_t *handle, uint8_t sector, uint8_t *block)
fm11rfxx get the sector's last block
uint8_t fm11rfxx_anticollision_cl1(fm11rfxx_handle_t *handle, uint8_t id[4])
fm11rfxx anti collision cl1
uint8_t fm11rfxx_info(fm11rfxx_info_t *info)
get chip information
uint8_t fm11rfxx_set_sector_permission(fm11rfxx_handle_t *handle, uint8_t sector, uint8_t key_a[6], uint8_t block_0_0_4, uint8_t block_1_5_9, uint8_t block_2_10_14, uint8_t block_3_15, uint8_t user_data, uint8_t key_b[6])
fm11rfxx set the sector permission
fm11rfxx_type_t
fm11rfxx type enumeration definition
uint8_t fm11rfxx_read(fm11rfxx_handle_t *handle, uint8_t block, uint8_t data[16])
fm11rfxx read
uint8_t fm11rfxx_authentication(fm11rfxx_handle_t *handle, uint8_t id[4], uint8_t block, fm11rfxx_authentication_key_t key_type, uint8_t key[6])
fm11rfxx authentication
uint8_t fm11rfxx_value_write(fm11rfxx_handle_t *handle, uint8_t block, int32_t value, uint8_t addr)
fm11rfxx value write
struct fm11rfxx_info_s fm11rfxx_info_t
fm11rfxx information structure definition
uint8_t fm11rfxx_restore(fm11rfxx_handle_t *handle, uint8_t block)
fm11rfxx restore
uint8_t fm11rfxx_value_init(fm11rfxx_handle_t *handle, uint8_t block, int32_t value, uint8_t addr)
fm11rfxx init one block as a value block
struct fm11rfxx_handle_s fm11rfxx_handle_t
fm11rfxx handle structure definition
uint8_t fm11rfxx_decrement(fm11rfxx_handle_t *handle, uint8_t block, uint32_t value)
fm11rfxx decrement
uint8_t fm11rfxx_value_read(fm11rfxx_handle_t *handle, uint8_t block, int32_t *value, uint8_t *addr)
fm11rfxx value read
uint8_t fm11rfxx_wake_up(fm11rfxx_handle_t *handle, fm11rfxx_type_t *type)
fm11rfxx wake up
uint8_t fm11rfxx_halt(fm11rfxx_handle_t *handle)
fm11rfxx halt
uint8_t fm11rfxx_init(fm11rfxx_handle_t *handle)
initialize the chip
uint8_t fm11rfxx_increment(fm11rfxx_handle_t *handle, uint8_t block, uint32_t value)
fm11rfxx increment
uint8_t fm11rfxx_write(fm11rfxx_handle_t *handle, uint8_t block, uint8_t data[16])
fm11rfxx write
uint8_t fm11rfxx_block_to_sector(fm11rfxx_handle_t *handle, uint8_t block, uint8_t *sector)
fm11rfxx block number to sector number
uint8_t fm11rfxx_transfer(fm11rfxx_handle_t *handle, uint8_t block)
fm11rfxx transfer
uint8_t fm11rfxx_sector_block_count(fm11rfxx_handle_t *handle, uint8_t sector, uint8_t *count)
fm11rfxx get the sector's block counter
@ FM11RFXX_AUTHENTICATION_KEY_A
void fm11rfxx_interface_debug_print(const char *const fmt,...)
interface print format data
void fm11rfxx_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t fm11rfxx_interface_contactless_init(void)
interface contactless init
uint8_t fm11rfxx_interface_contactless_transceiver(uint8_t *in_buf, uint8_t in_len, uint8_t *out_buf, uint8_t *out_len)
interface contactless transceiver
uint8_t fm11rfxx_interface_contactless_deinit(void)
interface contactless deinit
#define DRIVER_FM11RFXX_LINK_INIT(HANDLE, STRUCTURE)
initialize fm11rfxx_handle_t structure
#define DRIVER_FM11RFXX_LINK_CONTACTLESS_TRANSCEIVER(HANDLE, FUC)
link contactless_transceiver function
#define DRIVER_FM11RFXX_LINK_CONTACTLESS_DEINIT(HANDLE, FUC)
link contactless_deinit function
#define DRIVER_FM11RFXX_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_FM11RFXX_LINK_CONTACTLESS_INIT(HANDLE, FUC)
link contactless_init function
#define DRIVER_FM11RFXX_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
uint8_t fm11rfxx_card_test(void)
card test
float supply_voltage_max_v
char manufacturer_name[32]
float supply_voltage_min_v