Flipper Developer Docs
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
12
extern
"C"
{
13
#endif
14
15
typedef
void (*FuriHalIbuttonEmulateCallback)(
void
* context);
16
18
void
furi_hal_ibutton_init
(
void
);
19
26
void
furi_hal_ibutton_emulate_start
(
27
uint32_t period,
28
FuriHalIbuttonEmulateCallback callback,
29
void
* context);
30
35
void
furi_hal_ibutton_emulate_set_next
(uint32_t period);
36
40
void
furi_hal_ibutton_emulate_stop
(
void
);
41
45
void
furi_hal_ibutton_pin_configure
(
void
);
46
50
void
furi_hal_ibutton_pin_reset
(
void
);
51
56
void
furi_hal_ibutton_pin_write
(
const
bool
state);
57
58
#ifdef __cplusplus
59
}
60
#endif
furi_hal_ibutton_emulate_start
void furi_hal_ibutton_emulate_start(uint32_t period, FuriHalIbuttonEmulateCallback callback, void *context)
Start emulation timer.
Definition
furi_hal_ibutton.c:44
furi_hal_ibutton_pin_write
void furi_hal_ibutton_pin_write(const bool state)
iButton write pin
Definition
furi_hal_ibutton.c:103
furi_hal_ibutton_emulate_set_next
void furi_hal_ibutton_emulate_set_next(uint32_t period)
Update emulation timer period.
Definition
furi_hal_ibutton.c:74
furi_hal_ibutton_pin_configure
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
furi_hal_ibutton_emulate_stop
void furi_hal_ibutton_emulate_stop(void)
Stop emulation timer.
Definition
furi_hal_ibutton.c:78
furi_hal_ibutton_init
void furi_hal_ibutton_init(void)
Initialize.
Definition
furi_hal_ibutton.c:37
furi_hal_ibutton_pin_reset
void furi_hal_ibutton_pin_reset(void)
Sets the pin to analog mode, and sets it to float.
Definition
furi_hal_ibutton.c:98
targets
f7
furi_hal
furi_hal_ibutton.h
Generated by
1.12.0