rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ui_setting_keypad.h
Go to the documentation of this file.
1
22#pragma once
23
24#include <stdbool.h>
25#include <stddef.h>
26
27#include "gfx.h"
28#include "settings.h"
29#include "ui_keypad.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
42
52
62
73
85
94const char *ui_setting_keypad_sda_pins(char *buf, size_t n);
95
105const char *ui_setting_keypad_tap_pins(char *buf, size_t n);
106
124const char *ui_setting_keypad_why(setting_id_t id, float v, char *buf,
125 size_t n);
126
134
147 float v);
148
149#ifdef __cplusplus
150}
151#endif
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
#define k
Short name for kst_panel_k inside the overlay's seven files.
Definition kst_panel_int.h:238
Device settings: a typed schema, a value per entry, and a persistence seam.
setting_id_t
Every setting's id, in schema order.
Definition settings.h:67
Definition gfx.h:81
A numeric keypad: what it was opened with, what is typed, and the press it holds.
Definition ui_keypad.h:61
A numeric keypad over part of a screen, for a value a slider is too coarse to place.
bool ui_setting_keypad_takes(setting_id_t id, float v)
Whether settings_set() takes v for id as a value the - and.
Definition ui_setting_keypad.c:109
int ui_setting_keypad_decimals(setting_id_t id)
The digits the keypad takes after the point for id.
Definition ui_setting_keypad.c:19
const char * ui_setting_keypad_why(setting_id_t id, float v, char *buf, size_t n)
The line a setting's keypad shows in place of the range after refusing v inside it.
Definition ui_setting_keypad.c:155
void ui_setting_keypad_open(ui_keypad_t *k, gfx_rect_t area, setting_id_t id)
Open k over area for setting id.
Definition ui_setting_keypad.c:41
const char * ui_setting_keypad_tap_pins(char *buf, size_t n)
The GPIOs Tap pin can have, from settings_tap_pin_valid().
Definition ui_setting_keypad.c:150
bool ui_setting_keypad_offered(setting_id_t id)
Whether a tap on the value of id opens the keypad.
Definition ui_setting_keypad.c:24
const char * ui_setting_keypad_sda_pins(char *buf, size_t n)
The GPIOs Sensor SDA can have, from settings_sense_sda_valid().
Definition ui_setting_keypad.c:145
bool ui_setting_keypad_signed(setting_id_t id)
Whether the keypad of id carries the +/- key.
Definition ui_setting_keypad.c:34
ui_setkey_result_t ui_setting_keypad_ok(ui_keypad_t *k, setting_id_t id, float v)
Take the value an OK on k handed back for id.
Definition ui_setting_keypad.c:235
ui_setkey_result_t
What an OK on a setting's keypad came to.
Definition ui_setting_keypad.h:128
@ UI_SETKEY_SET
Definition ui_setting_keypad.h:129
@ UI_SETKEY_REFUSED
Definition ui_setting_keypad.h:130
@ UI_SETKEY_LOCKED
Definition ui_setting_keypad.h:131