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>
144 lines
7.8 KiB
Rust
144 lines
7.8 KiB
Rust
#[doc = r"Register block"]
|
|
#[repr(C)]
|
|
pub struct RegisterBlock {
|
|
#[doc = "0x00 - Start HFCLK source"]
|
|
pub tasks_hfclkstart: TASKS_HFCLKSTART,
|
|
#[doc = "0x04 - Stop HFCLK source"]
|
|
pub tasks_hfclkstop: TASKS_HFCLKSTOP,
|
|
#[doc = "0x08 - Start LFCLK source"]
|
|
pub tasks_lfclkstart: TASKS_LFCLKSTART,
|
|
#[doc = "0x0c - Stop LFCLK source"]
|
|
pub tasks_lfclkstop: TASKS_LFCLKSTOP,
|
|
_reserved4: [u8; 0x70],
|
|
#[doc = "0x80 - Subscribe configuration for task HFCLKSTART"]
|
|
pub subscribe_hfclkstart: SUBSCRIBE_HFCLKSTART,
|
|
#[doc = "0x84 - Subscribe configuration for task HFCLKSTOP"]
|
|
pub subscribe_hfclkstop: SUBSCRIBE_HFCLKSTOP,
|
|
#[doc = "0x88 - Subscribe configuration for task LFCLKSTART"]
|
|
pub subscribe_lfclkstart: SUBSCRIBE_LFCLKSTART,
|
|
#[doc = "0x8c - Subscribe configuration for task LFCLKSTOP"]
|
|
pub subscribe_lfclkstop: SUBSCRIBE_LFCLKSTOP,
|
|
_reserved8: [u8; 0x70],
|
|
#[doc = "0x100 - HFCLK oscillator started"]
|
|
pub events_hfclkstarted: EVENTS_HFCLKSTARTED,
|
|
#[doc = "0x104 - LFCLK started"]
|
|
pub events_lfclkstarted: EVENTS_LFCLKSTARTED,
|
|
_reserved10: [u8; 0x78],
|
|
#[doc = "0x180 - Publish configuration for event HFCLKSTARTED"]
|
|
pub publish_hfclkstarted: PUBLISH_HFCLKSTARTED,
|
|
#[doc = "0x184 - Publish configuration for event LFCLKSTARTED"]
|
|
pub publish_lfclkstarted: PUBLISH_LFCLKSTARTED,
|
|
_reserved12: [u8; 0x0178],
|
|
#[doc = "0x300 - Enable or disable interrupt"]
|
|
pub inten: INTEN,
|
|
#[doc = "0x304 - Enable interrupt"]
|
|
pub intenset: INTENSET,
|
|
#[doc = "0x308 - Disable interrupt"]
|
|
pub intenclr: INTENCLR,
|
|
#[doc = "0x30c - Pending interrupts"]
|
|
pub intpend: INTPEND,
|
|
_reserved16: [u8; 0xf8],
|
|
#[doc = "0x408 - Status indicating that HFCLKSTART task has been triggered"]
|
|
pub hfclkrun: HFCLKRUN,
|
|
#[doc = "0x40c - The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE)"]
|
|
pub hfclkstat: HFCLKSTAT,
|
|
_reserved18: [u8; 0x04],
|
|
#[doc = "0x414 - Status indicating that LFCLKSTART task has been triggered"]
|
|
pub lfclkrun: LFCLKRUN,
|
|
#[doc = "0x418 - The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE)"]
|
|
pub lfclkstat: LFCLKSTAT,
|
|
#[doc = "0x41c - Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered"]
|
|
pub lfclksrccopy: LFCLKSRCCOPY,
|
|
_reserved21: [u8; 0xf8],
|
|
#[doc = "0x518 - Clock source for the LFCLK. LFCLKSTART task starts starts a clock source selected with this register."]
|
|
pub lfclksrc: LFCLKSRC,
|
|
}
|
|
#[doc = "TASKS_HFCLKSTART (w) register accessor: an alias for `Reg<TASKS_HFCLKSTART_SPEC>`"]
|
|
pub type TASKS_HFCLKSTART = crate::Reg<tasks_hfclkstart::TASKS_HFCLKSTART_SPEC>;
|
|
#[doc = "Start HFCLK source"]
|
|
pub mod tasks_hfclkstart;
|
|
#[doc = "TASKS_HFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_HFCLKSTOP_SPEC>`"]
|
|
pub type TASKS_HFCLKSTOP = crate::Reg<tasks_hfclkstop::TASKS_HFCLKSTOP_SPEC>;
|
|
#[doc = "Stop HFCLK source"]
|
|
pub mod tasks_hfclkstop;
|
|
#[doc = "TASKS_LFCLKSTART (w) register accessor: an alias for `Reg<TASKS_LFCLKSTART_SPEC>`"]
|
|
pub type TASKS_LFCLKSTART = crate::Reg<tasks_lfclkstart::TASKS_LFCLKSTART_SPEC>;
|
|
#[doc = "Start LFCLK source"]
|
|
pub mod tasks_lfclkstart;
|
|
#[doc = "TASKS_LFCLKSTOP (w) register accessor: an alias for `Reg<TASKS_LFCLKSTOP_SPEC>`"]
|
|
pub type TASKS_LFCLKSTOP = crate::Reg<tasks_lfclkstop::TASKS_LFCLKSTOP_SPEC>;
|
|
#[doc = "Stop LFCLK source"]
|
|
pub mod tasks_lfclkstop;
|
|
#[doc = "SUBSCRIBE_HFCLKSTART (rw) register accessor: an alias for `Reg<SUBSCRIBE_HFCLKSTART_SPEC>`"]
|
|
pub type SUBSCRIBE_HFCLKSTART = crate::Reg<subscribe_hfclkstart::SUBSCRIBE_HFCLKSTART_SPEC>;
|
|
#[doc = "Subscribe configuration for task HFCLKSTART"]
|
|
pub mod subscribe_hfclkstart;
|
|
#[doc = "SUBSCRIBE_HFCLKSTOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_HFCLKSTOP_SPEC>`"]
|
|
pub type SUBSCRIBE_HFCLKSTOP = crate::Reg<subscribe_hfclkstop::SUBSCRIBE_HFCLKSTOP_SPEC>;
|
|
#[doc = "Subscribe configuration for task HFCLKSTOP"]
|
|
pub mod subscribe_hfclkstop;
|
|
#[doc = "SUBSCRIBE_LFCLKSTART (rw) register accessor: an alias for `Reg<SUBSCRIBE_LFCLKSTART_SPEC>`"]
|
|
pub type SUBSCRIBE_LFCLKSTART = crate::Reg<subscribe_lfclkstart::SUBSCRIBE_LFCLKSTART_SPEC>;
|
|
#[doc = "Subscribe configuration for task LFCLKSTART"]
|
|
pub mod subscribe_lfclkstart;
|
|
#[doc = "SUBSCRIBE_LFCLKSTOP (rw) register accessor: an alias for `Reg<SUBSCRIBE_LFCLKSTOP_SPEC>`"]
|
|
pub type SUBSCRIBE_LFCLKSTOP = crate::Reg<subscribe_lfclkstop::SUBSCRIBE_LFCLKSTOP_SPEC>;
|
|
#[doc = "Subscribe configuration for task LFCLKSTOP"]
|
|
pub mod subscribe_lfclkstop;
|
|
#[doc = "EVENTS_HFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_HFCLKSTARTED_SPEC>`"]
|
|
pub type EVENTS_HFCLKSTARTED = crate::Reg<events_hfclkstarted::EVENTS_HFCLKSTARTED_SPEC>;
|
|
#[doc = "HFCLK oscillator started"]
|
|
pub mod events_hfclkstarted;
|
|
#[doc = "EVENTS_LFCLKSTARTED (rw) register accessor: an alias for `Reg<EVENTS_LFCLKSTARTED_SPEC>`"]
|
|
pub type EVENTS_LFCLKSTARTED = crate::Reg<events_lfclkstarted::EVENTS_LFCLKSTARTED_SPEC>;
|
|
#[doc = "LFCLK started"]
|
|
pub mod events_lfclkstarted;
|
|
#[doc = "PUBLISH_HFCLKSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_HFCLKSTARTED_SPEC>`"]
|
|
pub type PUBLISH_HFCLKSTARTED = crate::Reg<publish_hfclkstarted::PUBLISH_HFCLKSTARTED_SPEC>;
|
|
#[doc = "Publish configuration for event HFCLKSTARTED"]
|
|
pub mod publish_hfclkstarted;
|
|
#[doc = "PUBLISH_LFCLKSTARTED (rw) register accessor: an alias for `Reg<PUBLISH_LFCLKSTARTED_SPEC>`"]
|
|
pub type PUBLISH_LFCLKSTARTED = crate::Reg<publish_lfclkstarted::PUBLISH_LFCLKSTARTED_SPEC>;
|
|
#[doc = "Publish configuration for event LFCLKSTARTED"]
|
|
pub mod publish_lfclkstarted;
|
|
#[doc = "INTEN (rw) register accessor: an alias for `Reg<INTEN_SPEC>`"]
|
|
pub type INTEN = crate::Reg<inten::INTEN_SPEC>;
|
|
#[doc = "Enable or disable interrupt"]
|
|
pub mod inten;
|
|
#[doc = "INTENSET (rw) register accessor: an alias for `Reg<INTENSET_SPEC>`"]
|
|
pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>;
|
|
#[doc = "Enable interrupt"]
|
|
pub mod intenset;
|
|
#[doc = "INTENCLR (rw) register accessor: an alias for `Reg<INTENCLR_SPEC>`"]
|
|
pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>;
|
|
#[doc = "Disable interrupt"]
|
|
pub mod intenclr;
|
|
#[doc = "INTPEND (r) register accessor: an alias for `Reg<INTPEND_SPEC>`"]
|
|
pub type INTPEND = crate::Reg<intpend::INTPEND_SPEC>;
|
|
#[doc = "Pending interrupts"]
|
|
pub mod intpend;
|
|
#[doc = "HFCLKRUN (r) register accessor: an alias for `Reg<HFCLKRUN_SPEC>`"]
|
|
pub type HFCLKRUN = crate::Reg<hfclkrun::HFCLKRUN_SPEC>;
|
|
#[doc = "Status indicating that HFCLKSTART task has been triggered"]
|
|
pub mod hfclkrun;
|
|
#[doc = "HFCLKSTAT (r) register accessor: an alias for `Reg<HFCLKSTAT_SPEC>`"]
|
|
pub type HFCLKSTAT = crate::Reg<hfclkstat::HFCLKSTAT_SPEC>;
|
|
#[doc = "The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE)"]
|
|
pub mod hfclkstat;
|
|
#[doc = "LFCLKRUN (r) register accessor: an alias for `Reg<LFCLKRUN_SPEC>`"]
|
|
pub type LFCLKRUN = crate::Reg<lfclkrun::LFCLKRUN_SPEC>;
|
|
#[doc = "Status indicating that LFCLKSTART task has been triggered"]
|
|
pub mod lfclkrun;
|
|
#[doc = "LFCLKSTAT (r) register accessor: an alias for `Reg<LFCLKSTAT_SPEC>`"]
|
|
pub type LFCLKSTAT = crate::Reg<lfclkstat::LFCLKSTAT_SPEC>;
|
|
#[doc = "The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE)"]
|
|
pub mod lfclkstat;
|
|
#[doc = "LFCLKSRCCOPY (r) register accessor: an alias for `Reg<LFCLKSRCCOPY_SPEC>`"]
|
|
pub type LFCLKSRCCOPY = crate::Reg<lfclksrccopy::LFCLKSRCCOPY_SPEC>;
|
|
#[doc = "Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered"]
|
|
pub mod lfclksrccopy;
|
|
#[doc = "LFCLKSRC (rw) register accessor: an alias for `Reg<LFCLKSRC_SPEC>`"]
|
|
pub type LFCLKSRC = crate::Reg<lfclksrc::LFCLKSRC_SPEC>;
|
|
#[doc = "Clock source for the LFCLK. LFCLKSTART task starts starts a clock source selected with this register."]
|
|
pub mod lfclksrc;
|