In development. It changes without notice.
Namespaces
The namespaces, with a line on each:
| kleidos | The firmware's modules, one nested namespace each (kleidos::, kleidos::ble, kleidos::). Some of the interface types, the user interface and the hardware layer have namespaces beside it |
| kleidos:: | The application itself: the boot (setup()), the instances and the per-tick dispatcher (main.cpp), and the runtime seam the serial console of a debug build reaches |
| kleidos:: | Bluetooth Low Energy: the facade the rest of the firmware calls, the stack task, the bonded hosts, the link and its security |
| kleidos:: | The bonded hosts: one NVS slot per host with its name, kept in step with NimBLE's keystore |
| kleidos:: | The owner's host order: sorting, moving and the place a new host takes |
| kleidos:: | The live link: its snapshot, and the connection and advertising timing a central may negotiate |
| kleidos:: | The HID-over-GATT profile: the report map, the boot and battery reports |
| kleidos:: | Who may pair, connect and receive keystrokes: the link-security rules |
| kleidos:: | The numeric-comparison prompt of LE Secure Connections pairing, its state read without a lock |
| kleidos:: | The re-pairing gate: a bonded host pairs again only when the owner allows it |
| kleidos:: | What the host's keystore may keep (see store_ |
| kleidos:: | Which stored records outlive a host sync (see keystore_ |
| kleidos:: | The rules the session state is read by: its public state, whether it takes a burst, and the state a burst leaves it in |
| kleidos:: | The task that owns the NimBLE host: its command queue, its event bus, the host adapter and the gate on calls into the host |
| kleidos:: | The encoding of the debug console's guard reads (judge word, gate count slots) |
| kleidos:: | Helpers shared by the board sources (Board Configurations) |
| kleidos:: | Seed power-profile pieces every board's PowerProfile is built from |
| kleidos:: | The brand registry: from a credential's domain to the logo drawn beside it |
| kleidos:: | Cryptography around the vault's own: PBKDF2 and its engines, the device binding, the export envelope, the portal's key-derivation worker and the known-answer self-test |
| kleidos:: | PBKDF2-HMAC-SHA256 on a SHA engine, and the ladder of engines |
| kleidos:: | The on-device known-answer self-test of the crypto primitives |
| kleidos:: | The board's compile-time identity, panel, feature and pin constants |
| kleidos:: | Diagnostics: the dual-core watches (watchdog, stacks, heap), runtime statistics, the power meter and the telemetry sampler |
| kleidos:: | The on-device power meter: consumption per state, the session's charge and the last deep sleep's average current |
| kleidos:: | The power meter's arithmetic, with no hardware in it: charge integration, time and charge booked per state, and the current model |
| kleidos:: | The timing of a power run: a fixed sequence of timed phases the board steps through on its own |
| kleidos:: | The render loop's profiling counters, which only a profiling build keeps |
| kleidos:: | The telemetry sampler: it records on demand and costs nothing while idle |
| kleidos:: | The chip drivers, one nested namespace per kind of part: displays, power, touch, keyboards, motion, clocks, GPS, audio and the bus |
| kleidos:: | Audio chip drivers: the I2S codecs and the speaker amplifiers, each kind behind one contract |
| kleidos:: | The ES8311 codec's registers, their values and the two sequences its driver writes |
| kleidos:: | The internal I2C bus: register access to one device, and a chip probe's memo gated on the bus being up |
| kleidos:: | The board's internal I2C bus: its pins, its selection and its register I/O |
| kleidos:: | Panel controller descriptions, TFT and e-paper: command tables, memory windows and read rules, with no bus I/O |
| kleidos:: | Tells an ILI9342C from an ILI9342E by reading the panel's own registers |
| kleidos:: | The SSD1681's waveform tables and the passes of its six-tone grayscale, as pure functions |
| kleidos:: | GPS receiver drivers (u-blox M10, CASIC L76K), their shared types and the factory that finds which one is fitted |
| kleidos:: | The u-blox M10's UBX-CFG keys and the payload layouts of the messages the driver reads |
| kleidos:: | An NMEA 0183 time parser for a one-shot clock sync |
| kleidos:: | The verified GPS park: a pure machine that listens before it writes |
| kleidos:: | Whether an unidentified receiver speaks UBX or NMEA, decided from its byte stream |
| kleidos:: | Motion sensor drivers (BMI270, MPU6886), their contract, the factory that probes the chip and the no-op sensor of a board without one |
| kleidos:: | The BMI270's registers, its configuration image and the encoding behind the driver's register sequences |
| kleidos:: | Keyboard controller drivers (the TCA8418, the T-Deck's controller), their contract, the probe factory and the no-op controller |
| kleidos:: | The LILYGO T-Deck keyboard controller's commands and the frames they go in |
| kleidos:: | Power-management chip drivers (AXP192, AXP2101, M5PM1, IP5306) behind one contract, and the AW9523 expander |
| kleidos:: | The AXP192's registers, the outputs a board leaves off, and the power key and power-off of the X-Powers chips |
| kleidos:: | Real-time-clock chip drivers: the BM8563, their contract and the probe that finds one |
| kleidos:: | Capacitive touch controller drivers (FT6x36, GT911), their contract and the probe that finds one |
| kleidos:: | The quadrature trackball driver, its contract and the no-op driver of a board without one |
| kleidos:: | The board hardware abstraction the application calls instead of a chip driver |
| kleidos:: | The M5Cardputer ADV keycap matrix: its keymap, the TCA8418 event decode and the one rule that turns a press into a character |
| kleidos:: | The panel: shapes, text and frames, the same calls on every board |
| kleidos:: | The board's display panel and bus, described at compile time |
| kleidos:: | The panel drivers behind display:: and the frame bookkeeping they share |
| kleidos:: | The anti-aliased font format of the interface and its decoder |
| kleidos:: | 2D drawing primitives over an abstract RGB565 surface |
| kleidos:: | Bitmap text, measured and drawn over a graphics surface |
| kleidos:: | The one-shot GPS time sync: its pure state machine, the device wiring and the verified park of the receiver |
| kleidos:: | The keyboard backlight's level vocabulary, shared by its one setting and the drivers that drive it |
| kleidos:: | The unattended brightness sweep's schedule, as pure arithmetic |
| kleidos:: | Key codes shared across keyboard implementations |
| kleidos:: | The board's peripheral roles: how each one is switched, and the parks the firmware owes it |
| kleidos:: | The pure rule behind hal:: per-role decision |
| kleidos:: | The power-off sleep at the PMIC: its steps, the clock chip's disarm and the filter of the power key's boot press |
| kleidos:: | Clicks of a power key read as a GPIO, without the press that switched the board on |
| kleidos:: | The SD card's mount, held for the length of one action |
| kleidos:: | The sound catalog, the volume law and the two renderers of a sound |
| kleidos:: | The speaker facade: tones and sounds queued to its task, the volume and the amplifier's gate |
| kleidos:: | The T-Deck's input: one key per poll of its keyboard controller, and its touch mapped onto the panel |
| kleidos:: | Key codes returned by the T-Deck keyboard controller |
| kleidos:: | What the FT6x36 pointer and the A/B/C zones share |
| kleidos:: | The one sample of a touch panel, and when the panel is read |
| kleidos:: | The wake-press rule for a quadrature trackball |
| kleidos:: | The rule for an input that meets a dark panel: it only wakes it |
| kleidos:: | A strict streaming JSON reader and writer with no allocation, and the binding of a document to structs through tables checked at compile time |
| kleidos:: | Networking over the Wi-Fi facade: the station session that holds Bluetooth off, the clock sync's join plan and the next boot into the portal |
| kleidos:: | The one-shot clock sync over a Wi-Fi station and NTP, and its pure decisions |
| kleidos:: | What a boot decides about an applied update, and when it confirms one |
| kleidos:: | The facades over ESP-IDF and FreeRTOS that the rest of the firmware calls, one nested namespace per service |
| kleidos:: | One-shot ADC sampling |
| kleidos:: | The monotonic time source: microseconds and milliseconds since boot, and deadlines on it |
| kleidos:: | The one boost that outlives the scope which raised it |
| kleidos:: | The crash ring that survives a reboot: addresses only, kept in RTC memory and mirrored to NVS |
| kleidos:: | The lock that keeps the hardware crypto engines and audio streaming apart |
| kleidos:: | Digital GPIO: configuration, level and interrupts |
| kleidos:: | The record of every heap allocation that failed |
| kleidos:: | The HTTP server of the admin portal and the update upload |
| kleidos:: | The I2C master bus |
| kleidos:: | I2S audio in standard (Philips) mode |
| kleidos:: | Automatic light sleep: the application's hold on it, the idle wait that lets go of the hold and the pins that end the wait |
| kleidos:: | LittleFS on the vault partition: the mount, which formats only a blank partition, file I/O and the memory-mapped read path |
| kleidos:: | Log levels per tag over ESP-IDF's logging, the hook its output goes through, and the silence of every tag for a scope |
| kleidos:: | Heap allocation in internal RAM or PSRAM, with owning helpers for each |
| kleidos:: | UDP sockets, and IPv4 addresses read as literals or from an IPv4-mapped IPv6 address |
| kleidos:: | Streaming an update image into the next application partition |
| kleidos:: | PWM output on the LEDC peripheral |
| kleidos:: | Tasks, queues, semaphores, mutexes, critical sections and time over FreeRTOS |
| kleidos:: | The SD card: FAT over SPI, its mount and file I/O |
| kleidos:: | The console's serial transport, and the rule a writer waits for another task's line by |
| kleidos:: | The SoC's SHA-256 engine for a PBKDF2 chain |
| kleidos:: | The sleep facade: deep-sleep entry and its wake sources, how the current boot started, the timed light sleep and the slow-clock sleep record |
| kleidos:: | The SoC's RTC slow clock: its source, ticks and calibration, and the regulator operating point it runs at |
| kleidos:: | The SPI master bus and its devices |
| kleidos:: | System control: the CPU clock, heap figures, chip and image identity, and restart |
| kleidos:: | A UART port |
| kleidos:: | POSIX file handles and paths on a VFS-mounted storage backend |
| kleidos:: | The task watchdog: its configuration, its subscriptions and a longer timeout for a bounded block |
| kleidos:: | Wi-Fi: the access point of the admin portal, the station session, the choice of channel and the driver's lifecycle |
| kleidos:: | The destructive effects every wipe and reset surface shares |
| kleidos:: | The brute-force guard and the audit log, below the vault (Security) |
| kleidos:: | The unlock-secret length policy and the character class of a numeric PIN |
| kleidos:: | The settings option model every settings surface renders |
| kleidos:: | What the application's states share: their screens' header and tabs, their models, and the logic of their prompts, pairing window and idle waits |
| kleidos:: | What a Bluetooth typing session says when it ends, from how its last burst ended |
| kleidos:: | The chooser of what a Bluetooth send types: its actions, their order and their labels |
| kleidos:: | Which recovery prompt a boot shows, and what it says |
| kleidos:: | The constants and helpers the credential detail screen's sources share |
| kleidos:: | When an entry prompt is at rest, and the idle clock of one that owns the loop |
| kleidos:: | The main loop's idle rule: when it may wait out an idle stretch, and how long |
| kleidos:: | The info overlay's rules: its keys, its steps and its bar |
| kleidos:: | The region arithmetic of a sliding list's frames (see list_ |
| kleidos:: | When an entry surface reads the brute-force lockout again |
| kleidos:: | Shared drawing of the first-time setup flows |
| kleidos:: | The pairing window's per-tick decision, shared by every page that opens it |
| kleidos:: | The keyboard panel's own helpers, shared by its drawn screens |
| kleidos:: | Menu item IDs, in disjoint ranges that keep the credential detail, the settings OPTION rows and the settings GROUP rows apart inside one OnDeviceMenu |
| kleidos:: | Sealing the vault into a card backup and putting one back, on every board |
| kleidos:: | What the SD restore tells the owner when it finishes, as plain data |
| kleidos:: | The words that name the unlock secret (see the file note) |
| kleidos:: | Where a send goes: the routing rule behind every "Type" gesture on HOME |
| kleidos:: | What the settings screens of the FSM decide and apply |
| kleidos:: | The helpers the overlay families of the settings screen share |
| kleidos:: | The two-button gestures of the Sticks: a hold, its gauge and what it does |
| kleidos:: | Whether a collected secret fits the vault on flash (see the file note) |
| kleidos:: | Wall-clock time: the time zones and their DST rules, the trust-gated epoch every reader shares, and the real-time clock |
| kleidos:: | The proleptic-Gregorian civil calendar in UTC: date and time of day to and from a Unix epoch, and the earliest epoch that counts as a set clock |
| kleidos:: | Whether the wall clock still holds a time a precise source set: NTP, the portal's browser time or a GPS fix |
| kleidos:: | The real-time clock behind one interface, a clock chip or the SoC's internal RTC, with how far its time can be trusted |
| kleidos:: | Persistence and labeling for the last clock-set source tag |
| kleidos:: | The backend of the boards without a clock chip: the SoC's own RTC timer, how far its time is trusted, and how its alarm and countdown become a timer wake |
| kleidos:: | One-time codes: the parameter rules, the code path, the gate and its time base |
| kleidos:: | The in-house UI library |
| kleidos:: | Anti-aliased circles, discs, rings and lines, drawn by coverage |
| kleidos:: | Drawing a brand's logo from the atlas |
| kleidos:: | Decoding a brand logo: the run-length decode and the expansion to RGB565 |
| kleidos:: | Placement of a column's rows in a band |
| kleidos:: | Key bytes written as text a person reads back (hex groups, base64) |
| kleidos:: | The notice a PIN surface shows for a lock whose cause it names |
| kleidos:: | The lockout countdown every PIN surface shows |
| kleidos:: | Integer helpers of the mark's geometry: rounding and the sine of an angle in tenths of a degree |
| kleidos:: | Integer helpers of a MarkBodyShape, for pixel boxes from sub-pixel lengths |
| kleidos:: | When the lock face reads the clock again |
| kleidos:: | A column of centered text blocks set whole inside a box |
| kleidos:: | Status toasts with hysteresis: the battery, the host link, the portal's clients and idle time, the auto-lock and an applied update |
| kleidos:: | Pure timing-arc math shared by the UI render and host tests |
| kleidos:: | Pure practice-code logic shared by the settings flow, the entry and host tests |
| kleidos:: | Pure two-step ring logic shared by the entry, its render and host tests |
| kleidos:: | Drawing of the two-step ring's sectors, rim labels and middle |
| kleidos:: | Popups drawn over any screen: decisions, choices, acknowledgements, progress and notices, and their queue |
| kleidos:: | The report an on-device vault write gives the owner, by outcome |
| kleidos:: | The e-paper's render mode per screen, and the detector of when a screen has settled |
| kleidos:: | Settings model, presenters and the shared settings seams |
| kleidos:: | The rule for a repaint that answers no input while the panel sleeps |
| kleidos:: | Word wrap and single-line fitting for the components |
| kleidos:: | The design tokens: color, spacing, radius and type, resolved per device |
| kleidos:: | Motion tokens: the timings every surface shares (the design system's "motion") |
| kleidos:: | What the unlock screens share while an unlock is verified: the wait ring and the result disc |
| kleidos:: | The vault's text-only pages and refusals |
| kleidos:: | The wipe countdown and its result screen |
| kleidos:: | Containers and helpers with no heap: an in-place function, queue and vector, bounded strings, and a wipe the compiler keeps |
| kleidos:: | Bounded C-string helpers and the fixed-capacity string built on them |
| kleidos:: | The vault: its records and their encryption, the record log and index, backups, import and the worker that runs them |
| kleidos:: | The JSON backup of the vault: the export, and the streamed restore of a backup document |
| kleidos:: | The packed binary codec of the vault's records |
| kleidos:: | The factory-reset tag: its codec and its one place on the flash |
| kleidos:: | A streaming JSON writer and reader with no allocation |
| kleidos:: | The passphrase the device generates (diceware) for an encrypted card backup |
| kleidos:: | Sealing the vault into a .kexp envelope and opening one back into it, streamed, for every surface |
| kleidos:: | The secret epoch's NVS counter (see the file note) |
| kleidos:: | A long job run as a sequence of bounded units, and what happens between them |
| kleidos:: | The pending-wipe marker (see the file note) |
| kleidos:: | The admin portal: its routes and the pure logic behind them |
| kleidos:: | The portal's REST handlers, the confirmation gate of its destructive routes and its streamed JSON answers |
| kleidos:: | The portal's list of credentials and its confirmed batch delete |
| kleidos:: | The portal's merge-import of credential items |
| kleidos:: | The portal's device information: chip, firmware, battery and the board's hardware inventory |
| kleidos:: | The portal's security decisions: who passes the gatekeeper, and each client's rate limit |
| kleidos:: | The authority the admin portal answers at, and where it sends a request that used another one |
| kleidos:: | The largest request body each buffered portal route accepts |
| kleidos:: | What the portal answers when a request body cannot be read or parsed |
| kleidos:: | What reading one request header found |
| kleidos:: | The portal's read-out of the firmware status and of an upload in progress |
| kleidos:: | The portal secret change's PIN-length rule, per kind of board |
| kleidos:: | Pure decisions of the admin portal's unlock-secret bar on edits that destroy a secret |
| kleidos:: | Pure decisions of the admin portal's settings routes |
| kleidos:: | The columnar JSON encoder of the telemetry history |
| kleidos:: | The portal's read-out of the real-time clock's health |
| kleidos:: | The decisions and formatting behind the portal's TOTP routes |
| kleidos:: | The parser of the embedded TOTP field that the portal's writes and imports share |