All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
furi_hal_rfid.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stdint.h>
9#include <stdbool.h>
10#include <stddef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
18void furi_hal_rfid_init(void);
19
23
27
31
36void furi_hal_rfid_tim_read_start(float freq, float duty_cycle);
37
41
45
49
50typedef void (*FuriHalRfidReadCaptureCallback)(bool level, uint32_t duration, void* context);
51
52void furi_hal_rfid_tim_read_capture_start(FuriHalRfidReadCaptureCallback callback, void* context);
53
54void furi_hal_rfid_tim_read_capture_stop(void);
55
56typedef void (*FuriHalRfidDMACallback)(bool half, void* context);
57
58void furi_hal_rfid_tim_emulate_dma_start(
59 uint32_t* duration,
60 uint32_t* pulse,
61 size_t length,
62 FuriHalRfidDMACallback callback,
63 void* context);
64
65void furi_hal_rfid_tim_emulate_dma_stop(void);
66
71void furi_hal_rfid_set_read_period(uint32_t period);
72
77void furi_hal_rfid_set_read_pulse(uint32_t pulse);
78
81
84
85typedef void (*FuriHalRfidCompCallback)(bool level, void* context);
86
88void furi_hal_rfid_comp_set_callback(FuriHalRfidCompCallback callback, void* context);
89
92
95
102bool furi_hal_rfid_field_is_present(uint32_t* frequency);
103
104#ifdef __cplusplus
105}
106#endif
void furi_hal_rfid_pin_pull_release(void)
Release rfid pull pin.
Definition furi_hal_rfid.c:174
bool furi_hal_rfid_field_is_present(uint32_t *frequency)
Check Field Presence.
Definition furi_hal_rfid.c:584
void furi_hal_rfid_field_detect_stop(void)
Stop/Disable Field Presence detect.
Definition furi_hal_rfid.c:565
void furi_hal_rfid_pins_reset(void)
Config rfid pins to reset state.
Definition furi_hal_rfid.c:98
void furi_hal_rfid_field_detect_start(void)
Start/Enable Field Presence detect.
Definition furi_hal_rfid.c:519
void furi_hal_rfid_comp_stop(void)
Stop/Disable comparator.
Definition furi_hal_rfid.c:443
void furi_hal_rfid_set_read_pulse(uint32_t pulse)
Set read timer pulse.
Definition furi_hal_rfid.c:426
void furi_hal_rfid_tim_read_continue(void)
Continue read timer.
Definition furi_hal_rfid.c:204
void furi_hal_rfid_comp_start(void)
Start/Enable comparator.
Definition furi_hal_rfid.c:434
void furi_hal_rfid_init(void)
Initialize RFID subsystem.
Definition furi_hal_rfid.c:70
void furi_hal_rfid_tim_read_start(float freq, float duty_cycle)
Start read timer.
Definition furi_hal_rfid.c:182
void furi_hal_rfid_tim_read_stop(void)
Stop read timer.
Definition furi_hal_rfid.c:212
void furi_hal_rfid_set_read_period(uint32_t period)
Set read timer period.
Definition furi_hal_rfid.c:422
void furi_hal_rfid_comp_set_callback(FuriHalRfidCompCallback callback, void *context)
Set comparator callback.
Definition furi_hal_rfid.c:450
void furi_hal_rfid_pin_pull_pulldown(void)
Pulldown rfid pull pin.
Definition furi_hal_rfid.c:178
void furi_hal_rfid_tim_read_pause(void)
Pause read timer, to be able to continue later.
Definition furi_hal_rfid.c:208