LibDriver FM11RFXX
Loading...
Searching...
No Matches
driver_fm11rfxx.h File Reference

driver fm11rfxx header file More...

#include <stdio.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for driver_fm11rfxx.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fm11rfxx_handle_s
 fm11rfxx handle structure definition More...
struct  fm11rfxx_info_s
 fm11rfxx information structure definition More...

Macros

#define DRIVER_FM11RFXX_LINK_INIT(HANDLE, STRUCTURE)
 initialize fm11rfxx_handle_t structure
#define DRIVER_FM11RFXX_LINK_CONTACTLESS_INIT(HANDLE, FUC)
 link contactless_init function
#define DRIVER_FM11RFXX_LINK_CONTACTLESS_DEINIT(HANDLE, FUC)
 link contactless_deinit function
#define DRIVER_FM11RFXX_LINK_CONTACTLESS_TRANSCEIVER(HANDLE, FUC)
 link contactless_transceiver function
#define DRIVER_FM11RFXX_LINK_DELAY_MS(HANDLE, FUC)
 link delay_ms function
#define DRIVER_FM11RFXX_LINK_DEBUG_PRINT(HANDLE, FUC)
 link debug_print function

Typedefs

typedef struct fm11rfxx_handle_s fm11rfxx_handle_t
 fm11rfxx handle structure definition
typedef struct fm11rfxx_info_s fm11rfxx_info_t
 fm11rfxx information structure definition

Enumerations

enum  fm11rfxx_type_t { FM11RFXX_TYPE_INVALID = 0x00 , FM11RFXX_TYPE_FM11RF08 = 0x01 , FM11RFXX_TYPE_FM11RF32 = 0x02 }
 fm11rfxx type enumeration definition More...
enum  fm11rfxx_load_modulation_t { FM11RFXX_LOAD_MODULATION_NORMAL = 0x00 , FM11RFXX_LOAD_MODULATION_STRONG = 0x01 }
 fm11rfxx load modulation enumeration definition More...
enum  fm11rfxx_personalized_uid_t { FM11RFXX_PERSONALIZED_UID_0 = 0x00 , FM11RFXX_PERSONALIZED_UID_1 = 0x40 , FM11RFXX_PERSONALIZED_UID_2 = 0x20 , FM11RFXX_PERSONALIZED_UID_3 = 0x60 }
 fm11rfxx personalized uid enumeration definition More...
enum  fm11rfxx_authentication_key_t { FM11RFXX_AUTHENTICATION_KEY_A = 0x00 , FM11RFXX_AUTHENTICATION_KEY_B = 0x01 }
 fm11rfxx authentication key enumeration definition More...

Functions

uint8_t fm11rfxx_info (fm11rfxx_info_t *info)
 get chip information
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

Detailed Description

driver fm11rfxx header 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.

Version
1.0.0
Author
Shifeng Li
Date
2024-07-30

history

Date Version Author Description
2024/07/30 1.0 Shifeng Li first upload

Definition in file driver_fm11rfxx.h.