![]() |
LibDriver FM11RFXX
|
driver fm11rfxx source file More...
#include "driver_fm11rfxx.h"Go to the source code of this file.
Functions | |
| uint8_t | fm11rfxx_init (fm11rfxx_handle_t *handle) |
| initialize the chip | |
| uint8_t | fm11rfxx_deinit (fm11rfxx_handle_t *handle) |
| close the chip | |
| uint8_t | fm11rfxx_request (fm11rfxx_handle_t *handle, fm11rfxx_type_t *type) |
| fm11rfxx request | |
| 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_set_modulation (fm11rfxx_handle_t *handle, fm11rfxx_load_modulation_t mod) |
| fm11rfxx set the load modulation | |
| uint8_t | fm11rfxx_set_personalized_uid (fm11rfxx_handle_t *handle, fm11rfxx_personalized_uid_t type) |
| fm11rfxx set the personalized uid | |
| uint8_t | fm11rfxx_anticollision_cl1 (fm11rfxx_handle_t *handle, uint8_t id[4]) |
| fm11rfxx anti collision cl1 | |
| uint8_t | fm11rfxx_anticollision_cl2 (fm11rfxx_handle_t *handle, uint8_t id[4]) |
| fm11rfxx anti collision cl2 | |
| uint8_t | fm11rfxx_select_cl1 (fm11rfxx_handle_t *handle, uint8_t id[4]) |
| fm11rfxx select cl1 | |
| uint8_t | fm11rfxx_select_cl2 (fm11rfxx_handle_t *handle, uint8_t id[4]) |
| fm11rfxx select cl2 | |
| 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_read (fm11rfxx_handle_t *handle, uint8_t block, uint8_t data[16]) |
| fm11rfxx read | |
| uint8_t | fm11rfxx_write (fm11rfxx_handle_t *handle, uint8_t block, uint8_t data[16]) |
| fm11rfxx write | |
| 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 | |
| uint8_t | fm11rfxx_value_write (fm11rfxx_handle_t *handle, uint8_t block, int32_t value, uint8_t addr) |
| fm11rfxx value write | |
| uint8_t | fm11rfxx_value_read (fm11rfxx_handle_t *handle, uint8_t block, int32_t *value, uint8_t *addr) |
| fm11rfxx value read | |
| uint8_t | fm11rfxx_increment (fm11rfxx_handle_t *handle, uint8_t block, uint32_t value) |
| fm11rfxx increment | |
| uint8_t | fm11rfxx_decrement (fm11rfxx_handle_t *handle, uint8_t block, uint32_t value) |
| fm11rfxx decrement | |
| uint8_t | fm11rfxx_transfer (fm11rfxx_handle_t *handle, uint8_t block) |
| fm11rfxx transfer | |
| uint8_t | fm11rfxx_restore (fm11rfxx_handle_t *handle, uint8_t block) |
| fm11rfxx restore | |
| 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_sector_block_count (fm11rfxx_handle_t *handle, uint8_t sector, uint8_t *count) |
| fm11rfxx get the sector's block counter | |
| 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_sector_last_block (fm11rfxx_handle_t *handle, uint8_t sector, uint8_t *block) |
| fm11rfxx get the sector's last block | |
| 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 | |
| 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_transceiver (fm11rfxx_handle_t *handle, uint8_t *in_buf, uint8_t in_len, uint8_t *out_buf, uint8_t *out_len) |
| transceiver data | |
| uint8_t | fm11rfxx_info (fm11rfxx_info_t *info) |
| get chip information | |
driver fm11rfxx source file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Date | Version | Author | Description |
|---|---|---|---|
| 2024/07/30 | 1.0 | Shifeng Li | first upload |
Definition in file driver_fm11rfxx.c.
| #define CHIP_NAME "FMSH FM11RFXX" |
| #define DRIVER_VERSION 1000 |
driver version
Definition at line 49 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_ANTICOLLISION_CL1 0x9320U |
anti collision cl1 command
Definition at line 56 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_ANTICOLLISION_CL2 0x9520U |
anti collision cl2 command
Definition at line 58 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_AUTHENTICATION_WITH_KEY_A 0x60 |
authentication with key a command
Definition at line 61 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_AUTHENTICATION_WITH_KEY_B 0x61 |
authentication with key b command
Definition at line 62 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_HALT 0x5000U |
halt command
Definition at line 60 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_MIFARE_DECREMENT 0xC0 |
decrement command
Definition at line 67 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_MIFARE_INCREMENT 0xC1 |
increment command
Definition at line 68 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_MIFARE_READ 0x30 |
read command
Definition at line 65 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_MIFARE_RESTORE 0xC2 |
restore command
Definition at line 69 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_MIFARE_TRANSFER 0xB0 |
transfer command
Definition at line 70 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_MIFARE_WRITE 0xA0 |
write command
Definition at line 66 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_PERSONALIZE_UID_USAGE 0x40 |
personalize uid usage command
Definition at line 63 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_REQUEST 0x26 |
| #define FM11RFXX_COMMAND_SELECT_CL1 0x9370U |
select cl1 command
Definition at line 57 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_SELECT_CL2 0x9570U |
select cl2 command
Definition at line 59 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_SET_MOD_TYPE 0x43 |
set mod type command
Definition at line 64 of file driver_fm11rfxx.c.
| #define FM11RFXX_COMMAND_WAKE_UP 0x52 |
wake up command
Definition at line 55 of file driver_fm11rfxx.c.
| #define MANUFACTURER_NAME "FMSH" |
manufacturer name
Definition at line 43 of file driver_fm11rfxx.c.
| #define MAX_CURRENT 30.0f |
chip max current
Definition at line 46 of file driver_fm11rfxx.c.
| #define SUPPLY_VOLTAGE_MAX 4.0f |
chip max supply voltage
Definition at line 45 of file driver_fm11rfxx.c.
| #define SUPPLY_VOLTAGE_MIN 3.3f |
chip min supply voltage
Definition at line 44 of file driver_fm11rfxx.c.
| #define TEMPERATURE_MAX 70.0f |
chip max operating temperature
Definition at line 48 of file driver_fm11rfxx.c.
| #define TEMPERATURE_MIN -25.0f |
chip min operating temperature
Definition at line 47 of file driver_fm11rfxx.c.