Loading...
Searching...
No Matches
byte_input.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <gui/view.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15typedef struct ByteInput ByteInput;
16
18typedef void (*ByteInputCallback)(void* context);
19
21typedef void (*ByteChangedCallback)(void* context);
22
28
33void byte_input_free(ByteInput* byte_input);
34
42
53 ByteInput* byte_input,
54 ByteInputCallback input_callback,
55 ByteChangedCallback changed_callback,
56 void* callback_context,
57 uint8_t* bytes,
58 uint8_t bytes_count);
59
65void byte_input_set_header_text(ByteInput* byte_input, const char* text);
66
67#ifdef __cplusplus
68}
69#endif
void byte_input_set_result_callback(ByteInput *byte_input, ByteInputCallback input_callback, ByteChangedCallback changed_callback, void *callback_context, uint8_t *bytes, uint8_t bytes_count)
Set byte input result callback.
Definition services/gui/modules/byte_input.c:845
View * byte_input_get_view(ByteInput *byte_input)
Get byte input view.
Definition services/gui/modules/byte_input.c:840
void(* ByteChangedCallback)(void *context)
callback that is executed when byte buffer is changed
Definition byte_input.h:21
void(* ByteInputCallback)(void *context)
callback that is executed on save button press
Definition byte_input.h:18
void byte_input_free(ByteInput *byte_input)
Deinitialize and free byte input.
Definition services/gui/modules/byte_input.c:834
void byte_input_set_header_text(ByteInput *byte_input, const char *text)
Set byte input header text.
Definition services/gui/modules/byte_input.c:868
ByteInput * byte_input_alloc(void)
Allocate and initialize byte input.
Definition services/gui/modules/byte_input.c:811
ByteInput type.
Definition services/gui/modules/byte_input.c:8
Definition view_i.h:16
GUI: View API.