feat: add display UI with splash screen, dashboard, and RSSI sparkline
Implement full SSD1306 OLED display support: - Splash screen on boot (1.5s) with project name, version, board - Dashboard showing radio state, config, counters, RSSI/SNR - RSSI history sparkline (64-sample ring buffer, 2px-wide bars) - DisplayOn/DisplayOff host commands routed via dedicated channel - Pure render functions against generic DrawTarget (no hardware coupling) - Display on/off control bypasses radio task entirely Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17624 files changed
+4564928
-38
No files matched your search
Vendored
+106
@@ -0,0 +1,106 @@
|
||||
#[doc = r"Register block"]
|
||||
#[repr(C)]
|
||||
pub struct RegisterBlock {
|
||||
#[doc = "0x00 - Start Timer."]
|
||||
pub tasks_start: TASKS_START,
|
||||
#[doc = "0x04 - Stop Timer."]
|
||||
pub tasks_stop: TASKS_STOP,
|
||||
#[doc = "0x08 - Increment Timer (In counter mode)."]
|
||||
pub tasks_count: TASKS_COUNT,
|
||||
#[doc = "0x0c - Clear timer."]
|
||||
pub tasks_clear: TASKS_CLEAR,
|
||||
#[doc = "0x10 - Shutdown timer."]
|
||||
pub tasks_shutdown: TASKS_SHUTDOWN,
|
||||
_reserved5: [u8; 0x2c],
|
||||
#[doc = "0x40..0x50 - Capture Timer value to CC\\[n\\]
|
||||
registers."]
|
||||
pub tasks_capture: [TASKS_CAPTURE; 4],
|
||||
_reserved6: [u8; 0xf0],
|
||||
#[doc = "0x140..0x150 - Compare event on CC\\[n\\]
|
||||
match."]
|
||||
pub events_compare: [EVENTS_COMPARE; 4],
|
||||
_reserved7: [u8; 0xb0],
|
||||
#[doc = "0x200 - Shortcuts for Timer."]
|
||||
pub shorts: SHORTS,
|
||||
_reserved8: [u8; 0x0100],
|
||||
#[doc = "0x304 - Interrupt enable set register."]
|
||||
pub intenset: INTENSET,
|
||||
#[doc = "0x308 - Interrupt enable clear register."]
|
||||
pub intenclr: INTENCLR,
|
||||
_reserved10: [u8; 0x01f8],
|
||||
#[doc = "0x504 - Timer Mode selection."]
|
||||
pub mode: MODE,
|
||||
#[doc = "0x508 - Sets timer behaviour."]
|
||||
pub bitmode: BITMODE,
|
||||
_reserved12: [u8; 0x04],
|
||||
#[doc = "0x510 - 4-bit prescaler to source clock frequency (max value 9). Source clock frequency is divided by 2^SCALE."]
|
||||
pub prescaler: PRESCALER,
|
||||
_reserved13: [u8; 0x2c],
|
||||
#[doc = "0x540..0x550 - Capture/compare registers."]
|
||||
pub cc: [CC; 4],
|
||||
_reserved14: [u8; 0x0aac],
|
||||
#[doc = "0xffc - Peripheral power control."]
|
||||
pub power: POWER,
|
||||
}
|
||||
#[doc = "TASKS_START (w) register accessor: an alias for `Reg<TASKS_START_SPEC>`"]
|
||||
pub type TASKS_START = crate::Reg<tasks_start::TASKS_START_SPEC>;
|
||||
#[doc = "Start Timer."]
|
||||
pub mod tasks_start;
|
||||
#[doc = "TASKS_STOP (w) register accessor: an alias for `Reg<TASKS_STOP_SPEC>`"]
|
||||
pub type TASKS_STOP = crate::Reg<tasks_stop::TASKS_STOP_SPEC>;
|
||||
#[doc = "Stop Timer."]
|
||||
pub mod tasks_stop;
|
||||
#[doc = "TASKS_COUNT (w) register accessor: an alias for `Reg<TASKS_COUNT_SPEC>`"]
|
||||
pub type TASKS_COUNT = crate::Reg<tasks_count::TASKS_COUNT_SPEC>;
|
||||
#[doc = "Increment Timer (In counter mode)."]
|
||||
pub mod tasks_count;
|
||||
#[doc = "TASKS_CLEAR (w) register accessor: an alias for `Reg<TASKS_CLEAR_SPEC>`"]
|
||||
pub type TASKS_CLEAR = crate::Reg<tasks_clear::TASKS_CLEAR_SPEC>;
|
||||
#[doc = "Clear timer."]
|
||||
pub mod tasks_clear;
|
||||
#[doc = "TASKS_SHUTDOWN (w) register accessor: an alias for `Reg<TASKS_SHUTDOWN_SPEC>`"]
|
||||
pub type TASKS_SHUTDOWN = crate::Reg<tasks_shutdown::TASKS_SHUTDOWN_SPEC>;
|
||||
#[doc = "Shutdown timer."]
|
||||
pub mod tasks_shutdown;
|
||||
#[doc = "TASKS_CAPTURE (w) register accessor: an alias for `Reg<TASKS_CAPTURE_SPEC>`"]
|
||||
pub type TASKS_CAPTURE = crate::Reg<tasks_capture::TASKS_CAPTURE_SPEC>;
|
||||
#[doc = "Capture Timer value to CC\\[n\\]
|
||||
registers."]
|
||||
pub mod tasks_capture;
|
||||
#[doc = "EVENTS_COMPARE (rw) register accessor: an alias for `Reg<EVENTS_COMPARE_SPEC>`"]
|
||||
pub type EVENTS_COMPARE = crate::Reg<events_compare::EVENTS_COMPARE_SPEC>;
|
||||
#[doc = "Compare event on CC\\[n\\]
|
||||
match."]
|
||||
pub mod events_compare;
|
||||
#[doc = "SHORTS (rw) register accessor: an alias for `Reg<SHORTS_SPEC>`"]
|
||||
pub type SHORTS = crate::Reg<shorts::SHORTS_SPEC>;
|
||||
#[doc = "Shortcuts for Timer."]
|
||||
pub mod shorts;
|
||||
#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
|
||||
pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
|
||||
#[doc = "Interrupt enable set register."]
|
||||
pub mod intenset;
|
||||
#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
|
||||
pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
|
||||
#[doc = "Interrupt enable clear register."]
|
||||
pub mod intenclr;
|
||||
#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
|
||||
pub type MODE = crate::Reg<mode::MODE_SPEC>;
|
||||
#[doc = "Timer Mode selection."]
|
||||
pub mod mode;
|
||||
#[doc = "BITMODE (rw) register accessor: an alias for `Reg<BITMODE_SPEC>`"]
|
||||
pub type BITMODE = crate::Reg<bitmode::BITMODE_SPEC>;
|
||||
#[doc = "Sets timer behaviour."]
|
||||
pub mod bitmode;
|
||||
#[doc = "PRESCALER (rw) register accessor: an alias for `Reg<PRESCALER_SPEC>`"]
|
||||
pub type PRESCALER = crate::Reg<prescaler::PRESCALER_SPEC>;
|
||||
#[doc = "4-bit prescaler to source clock frequency (max value 9). Source clock frequency is divided by 2^SCALE."]
|
||||
pub mod prescaler;
|
||||
#[doc = "CC (rw) register accessor: an alias for `Reg<CC_SPEC>`"]
|
||||
pub type CC = crate::Reg<cc::CC_SPEC>;
|
||||
#[doc = "Capture/compare registers."]
|
||||
pub mod cc;
|
||||
#[doc = "POWER (rw) register accessor: an alias for `Reg<POWER_SPEC>`"]
|
||||
pub type POWER = crate::Reg<power::POWER_SPEC>;
|
||||
#[doc = "Peripheral power control."]
|
||||
pub mod power;
|
||||
Reference in new issue
Block a user