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>
60 lines
2.4 KiB
Rust
60 lines
2.4 KiB
Rust
#[doc = r"Register block"]
|
|
#[repr(C)]
|
|
pub struct RegisterBlock {
|
|
_reserved0: [u8; 0x0400],
|
|
#[doc = "0x400 - Ready flag"]
|
|
pub ready: READY,
|
|
_reserved1: [u8; 0x04],
|
|
#[doc = "0x408 - Ready flag"]
|
|
pub readynext: READYNEXT,
|
|
_reserved2: [u8; 0xf8],
|
|
#[doc = "0x504 - Configuration register"]
|
|
pub config: CONFIG,
|
|
_reserved3: [u8; 0x04],
|
|
#[doc = "0x50c - Register for erasing all non-volatile user memory"]
|
|
pub eraseall: ERASEALL,
|
|
_reserved4: [u8; 0x0c],
|
|
#[doc = "0x51c - Register for partial erase configuration"]
|
|
pub erasepagepartialcfg: ERASEPAGEPARTIALCFG,
|
|
_reserved5: [u8; 0x20],
|
|
#[doc = "0x540 - I-code cache configuration register"]
|
|
pub icachecnf: ICACHECNF,
|
|
_reserved6: [u8; 0x04],
|
|
#[doc = "0x548 - I-code cache hit counter"]
|
|
pub ihit: IHIT,
|
|
#[doc = "0x54c - I-code cache miss counter"]
|
|
pub imiss: IMISS,
|
|
}
|
|
#[doc = "READY (r) register accessor: an alias for `Reg<READY_SPEC>`"]
|
|
pub type READY = crate::Reg<ready::READY_SPEC>;
|
|
#[doc = "Ready flag"]
|
|
pub mod ready;
|
|
#[doc = "READYNEXT (r) register accessor: an alias for `Reg<READYNEXT_SPEC>`"]
|
|
pub type READYNEXT = crate::Reg<readynext::READYNEXT_SPEC>;
|
|
#[doc = "Ready flag"]
|
|
pub mod readynext;
|
|
#[doc = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
|
|
pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
|
|
#[doc = "Configuration register"]
|
|
pub mod config;
|
|
#[doc = "ERASEALL (w) register accessor: an alias for `Reg<ERASEALL_SPEC>`"]
|
|
pub type ERASEALL = crate::Reg<eraseall::ERASEALL_SPEC>;
|
|
#[doc = "Register for erasing all non-volatile user memory"]
|
|
pub mod eraseall;
|
|
#[doc = "ERASEPAGEPARTIALCFG (rw) register accessor: an alias for `Reg<ERASEPAGEPARTIALCFG_SPEC>`"]
|
|
pub type ERASEPAGEPARTIALCFG = crate::Reg<erasepagepartialcfg::ERASEPAGEPARTIALCFG_SPEC>;
|
|
#[doc = "Register for partial erase configuration"]
|
|
pub mod erasepagepartialcfg;
|
|
#[doc = "ICACHECNF (rw) register accessor: an alias for `Reg<ICACHECNF_SPEC>`"]
|
|
pub type ICACHECNF = crate::Reg<icachecnf::ICACHECNF_SPEC>;
|
|
#[doc = "I-code cache configuration register"]
|
|
pub mod icachecnf;
|
|
#[doc = "IHIT (rw) register accessor: an alias for `Reg<IHIT_SPEC>`"]
|
|
pub type IHIT = crate::Reg<ihit::IHIT_SPEC>;
|
|
#[doc = "I-code cache hit counter"]
|
|
pub mod ihit;
|
|
#[doc = "IMISS (rw) register accessor: an alias for `Reg<IMISS_SPEC>`"]
|
|
pub type IMISS = crate::Reg<imiss::IMISS_SPEC>;
|
|
#[doc = "I-code cache miss counter"]
|
|
pub mod imiss;
|