Flipper Developer Docs
Loading...
Searching...
No Matches
ibutton_key.h
Go to the documentation of this file.
1
7
#pragma once
8
9
#include <
core/string.h
>
10
11
#include "protocols/protocol_common.h"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
typedef
struct
iButtonKey
iButtonKey
;
18
24
iButtonKey
*
ibutton_key_alloc
(
size_t
data_size);
25
30
void
ibutton_key_free
(
iButtonKey
* key);
31
37
iButtonProtocolId
ibutton_key_get_protocol_id
(
const
iButtonKey
* key);
38
44
void
ibutton_key_set_protocol_id
(
iButtonKey
* key, iButtonProtocolId protocol_id);
45
50
void
ibutton_key_reset
(
iButtonKey
* key);
51
52
#ifdef __cplusplus
53
}
54
#endif
ibutton_key_reset
void ibutton_key_reset(iButtonKey *key)
Reset the protocol id and data held by the key.
Definition
ibutton_key.c:27
ibutton_key_alloc
iButtonKey * ibutton_key_alloc(size_t data_size)
Allocate a key object.
Definition
ibutton_key.c:10
ibutton_key_set_protocol_id
void ibutton_key_set_protocol_id(iButtonKey *key, iButtonProtocolId protocol_id)
Set the protocol id held by the key.
Definition
ibutton_key.c:41
ibutton_key_get_protocol_id
iButtonProtocolId ibutton_key_get_protocol_id(const iButtonKey *key)
Get the protocol id held by the key.
Definition
ibutton_key.c:35
ibutton_key_free
void ibutton_key_free(iButtonKey *key)
Destroy the key object, free resources.
Definition
ibutton_key.c:20
string.h
Furi string container.
iButtonKey
Definition
ibutton_key.c:4
lib
ibutton
ibutton_key.h
Generated by
1.12.0