Loading...
Searching...
No Matches
furi_hal_ibutton.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stdbool.h>
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef void (*FuriHalIbuttonEmulateCallback)(void* context);
16
18void furi_hal_ibutton_init(void);
19
27 uint32_t period,
28 FuriHalIbuttonEmulateCallback callback,
29 void* context);
30
35void furi_hal_ibutton_emulate_set_next(uint32_t period);
36
41
46
51
56void furi_hal_ibutton_pin_write(const bool state);
57
58#ifdef __cplusplus
59}
60#endif
void furi_hal_ibutton_emulate_start(uint32_t period, FuriHalIbuttonEmulateCallback callback, void *context)
Start emulation timer.
Definition furi_hal_ibutton.c:44
void furi_hal_ibutton_pin_write(const bool state)
iButton write pin
Definition furi_hal_ibutton.c:103
void furi_hal_ibutton_emulate_set_next(uint32_t period)
Update emulation timer period.
Definition furi_hal_ibutton.c:74
void furi_hal_ibutton_pin_configure(void)
Set the pin to normal mode (open collector), and sets it to float.
Definition furi_hal_ibutton.c:93
void furi_hal_ibutton_emulate_stop(void)
Stop emulation timer.
Definition furi_hal_ibutton.c:78
void furi_hal_ibutton_init(void)
Initialize.
Definition furi_hal_ibutton.c:37
void furi_hal_ibutton_pin_reset(void)
Sets the pin to analog mode, and sets it to float.
Definition furi_hal_ibutton.c:98