|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Host-side animation engine for the plugin canvas: fixed-point easing, element-offset tweens and multi-frame sprite playback. More...
#include <cstddef>#include <cstdint>Go to the source code of this file.
Classes | |
| struct | cdc::ui::anim::Completion |
| class | cdc::ui::anim::AnimTarget |
| Interface the animator drives; implemented by CanvasView on its elements. More... | |
| struct | cdc::ui::anim::TweenConfig |
| Tween start configuration (mirrors host_anim_t plus the blink shorthand). More... | |
| class | cdc::ui::anim::CanvasAnimator |
| Fixed-slot tween engine animating element offsets (plus a blink convenience that toggles visibility). More... | |
| class | cdc::ui::anim::SpriteStore |
| Fixed-slot store for multi-frame 1-bpp sprites with host-driven playback. Pixel data lives in an injected arena (PSRAM, owner-held). More... | |
| struct | cdc::ui::anim::SpriteStore::FrameView |
| Replay accessors: geometry, flags and pixel pointers of a sprite. More... | |
Namespaces | |
| namespace | cdc |
| namespace | cdc::ui |
| Centralized key-code constants for cdc_views. | |
| namespace | cdc::ui::anim |
Functions | |
| int32_t | cdc::ui::anim::ease (uint8_t curve, int32_t t) |
| Apply an easing curve to a normalized 8.8 fixed-point time. | |
Variables | |
| constexpr uint16_t | cdc::ui::anim::REPEAT_FOREVER = 0xFFFF |
| Repeat-forever sentinel shared by tweens and sprite playback. | |
Host-side animation engine for the plugin canvas: fixed-point easing, element-offset tweens and multi-frame sprite playback.
Pure logic with no ESP-IDF, FreeRTOS or display dependencies: time is passed in as milliseconds, results are applied through the AnimTarget interface and the sprite pixel arena is injected by the owner. This keeps the engine unit testable in the native PlatformIO environment (see test/host).
Definition in file CanvasAnim.h.