Loading...
Searching...
No Matches
furi_hal_rfid.h File Reference

RFID HAL API. More...

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef void(* FuriHalRfidReadCaptureCallback) (bool level, uint32_t duration, void *context)
 
typedef void(* FuriHalRfidDMACallback) (bool half, void *context)
 
typedef void(* FuriHalRfidCompCallback) (bool level, void *context)
 

Functions

void furi_hal_rfid_init (void)
 Initialize RFID subsystem.
 
void furi_hal_rfid_pins_reset (void)
 Config rfid pins to reset state.
 
void furi_hal_rfid_pin_pull_release (void)
 Release rfid pull pin.
 
void furi_hal_rfid_pin_pull_pulldown (void)
 Pulldown rfid pull pin.
 
void furi_hal_rfid_tim_read_start (float freq, float duty_cycle)
 Start read timer.
 
void furi_hal_rfid_tim_read_pause (void)
 Pause read timer, to be able to continue later.
 
void furi_hal_rfid_tim_read_continue (void)
 Continue read timer.
 
void furi_hal_rfid_tim_read_stop (void)
 Stop read timer.
 
void furi_hal_rfid_tim_read_capture_start (FuriHalRfidReadCaptureCallback callback, void *context)
 
void furi_hal_rfid_tim_read_capture_stop (void)
 
void furi_hal_rfid_tim_emulate_dma_start (uint32_t *duration, uint32_t *pulse, size_t length, FuriHalRfidDMACallback callback, void *context)
 
void furi_hal_rfid_tim_emulate_dma_stop (void)
 
void furi_hal_rfid_set_read_period (uint32_t period)
 Set read timer period.
 
void furi_hal_rfid_set_read_pulse (uint32_t pulse)
 Set read timer pulse.
 
void furi_hal_rfid_comp_start (void)
 Start/Enable comparator.
 
void furi_hal_rfid_comp_stop (void)
 Stop/Disable comparator.
 
void furi_hal_rfid_comp_set_callback (FuriHalRfidCompCallback callback, void *context)
 Set comparator callback.
 
void furi_hal_rfid_field_detect_start (void)
 Start/Enable Field Presence detect.
 
void furi_hal_rfid_field_detect_stop (void)
 Stop/Disable Field Presence detect.
 
bool furi_hal_rfid_field_is_present (uint32_t *frequency)
 Check Field Presence.
 

Detailed Description

RFID HAL API.

Function Documentation

◆ furi_hal_rfid_field_is_present()

bool furi_hal_rfid_field_is_present ( uint32_t * frequency)

Check Field Presence.

Parameters
[out]frequencypointer to frequency value to be set if filed detected
Returns
true if field is present, false if not

◆ furi_hal_rfid_set_read_period()

void furi_hal_rfid_set_read_period ( uint32_t period)

Set read timer period.

Parameters
periodoverall duration

◆ furi_hal_rfid_set_read_pulse()

void furi_hal_rfid_set_read_pulse ( uint32_t pulse)

Set read timer pulse.

Parameters
pulseduration of high level

◆ furi_hal_rfid_tim_read_start()

void furi_hal_rfid_tim_read_start ( float freq,
float duty_cycle )

Start read timer.

Parameters
freqtimer frequency
duty_cycletimer duty cycle, 0.0-1.0