Flipper Zero Firmware
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
14extern "C" {
15#endif
16
17typedef struct iButtonKey iButtonKey;
18
24iButtonKey* ibutton_key_alloc(size_t data_size);
25
31
37iButtonProtocolId ibutton_key_get_protocol_id(const iButtonKey* key);
38
44void ibutton_key_set_protocol_id(iButtonKey* key, iButtonProtocolId protocol_id);
45
51
52#ifdef __cplusplus
53}
54#endif
void ibutton_key_reset(iButtonKey *key)
Reset the protocol id and data held by the key.
Definition ibutton_key.c:27
iButtonKey * ibutton_key_alloc(size_t data_size)
Allocate a key object.
Definition ibutton_key.c:10
void ibutton_key_set_protocol_id(iButtonKey *key, iButtonProtocolId protocol_id)
Set the protocol id held by the key.
Definition ibutton_key.c:41
iButtonProtocolId ibutton_key_get_protocol_id(const iButtonKey *key)
Get the protocol id held by the key.
Definition ibutton_key.c:35
void ibutton_key_free(iButtonKey *key)
Destroy the key object, free resources.
Definition ibutton_key.c:20
Furi string primitive.
Definition ibutton_key.c:4