|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include "cdc_views/PinEntryView.h"#include "cdc_views/KeyCodes.h"#include "cdc_views/MessageBox.h"#include "cdc_views/RenderHelpers.h"#include "cdc_ui/ViewStack.h"#include "cdc_core/PinManager.h"#include "cdc_ui/I18n.h"#include "cdc_hal/IDisplay.h"#include "cdc_log.h"#include <goodisplay/gdey029T94.h>#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::ui |
| Centralized key-code constants for cdc_views. | |
Functions | |
| PinEntryView * | cdc::ui::showPinEntry (const char *title, PinEntryView::VerifyCallback onVerify, PinEntryView::SuccessCallback onSuccess, uint8_t maxLength, uint8_t minLength, uint8_t maxAttempts) |
| Shows a shared PIN entry view instance. | |
Variables | |
| static const char * | TAG = "PinEntryView" |
| static constexpr int | TITLE_Y = 15 |
| Display layout constants. | |
| static constexpr int | PIN_Y = 50 |
| static constexpr int | PIN_DOT_SIZE = 16 |
| static constexpr int | PIN_DOT_SPACING = 24 |
| static constexpr int | RETRIES_Y = 80 |
| static constexpr uint32_t | TOAST_DURATION_SHORT_MS = 1500 |
| Toast message display durations in milliseconds. | |
| static constexpr uint32_t | TOAST_DURATION_LONG_MS = 3000 |
| static constexpr uint32_t | LOCKOUT_REFRESH_MS = 1000 |
| Refresh interval for the lockout countdown display. | |
| static PinEntryView | cdc::ui::s_sharedPinEntry |
| Convenience factory/helper function. | |
|
staticconstexpr |
Refresh interval for the lockout countdown display.
Definition at line 36 of file PinEntryView.cpp.
Referenced by cdc::ui::PinEntryView::onTick().
|
staticconstexpr |
Definition at line 27 of file PinEntryView.cpp.
|
staticconstexpr |
Definition at line 28 of file PinEntryView.cpp.
|
staticconstexpr |
Definition at line 26 of file PinEntryView.cpp.
|
staticconstexpr |
Definition at line 29 of file PinEntryView.cpp.
Referenced by cdc::ui::PinEntryView::render().
|
static |
PinEntryView Implementation
Secure PIN code input with masked display. Errors are shown via MessageBox overlay.
Definition at line 20 of file PinEntryView.cpp.
|
staticconstexpr |
Display layout constants.
Definition at line 25 of file PinEntryView.cpp.
|
staticconstexpr |
Definition at line 33 of file PinEntryView.cpp.
|
staticconstexpr |
Toast message display durations in milliseconds.
Definition at line 32 of file PinEntryView.cpp.