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>
95 lines
5.2 KiB
Rust
95 lines
5.2 KiB
Rust
#[doc = r"Register block"]
|
|
#[repr(C)]
|
|
pub struct RegisterBlock {
|
|
#[doc = "0x00..0x20 - Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is configured in CONFIG\\[n\\].POLARITY."]
|
|
pub tasks_out: [TASKS_OUT; 8],
|
|
_reserved1: [u8; 0x10],
|
|
#[doc = "0x30..0x50 - Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it high."]
|
|
pub tasks_set: [TASKS_SET; 8],
|
|
_reserved2: [u8; 0x10],
|
|
#[doc = "0x60..0x80 - Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it low."]
|
|
pub tasks_clr: [TASKS_CLR; 8],
|
|
#[doc = "0x80..0xa0 - Description collection: Subscribe configuration for task OUT\\[n\\]"]
|
|
pub subscribe_out: [SUBSCRIBE_OUT; 8],
|
|
_reserved4: [u8; 0x10],
|
|
#[doc = "0xb0..0xd0 - Description collection: Subscribe configuration for task SET\\[n\\]"]
|
|
pub subscribe_set: [SUBSCRIBE_SET; 8],
|
|
_reserved5: [u8; 0x10],
|
|
#[doc = "0xe0..0x100 - Description collection: Subscribe configuration for task CLR\\[n\\]"]
|
|
pub subscribe_clr: [SUBSCRIBE_CLR; 8],
|
|
#[doc = "0x100..0x120 - Description collection: Event generated from pin specified in CONFIG\\[n\\].PSEL"]
|
|
pub events_in: [EVENTS_IN; 8],
|
|
_reserved7: [u8; 0x5c],
|
|
#[doc = "0x17c - Event generated from multiple input GPIO pins with SENSE mechanism enabled"]
|
|
pub events_port: EVENTS_PORT,
|
|
#[doc = "0x180..0x1a0 - Description collection: Publish configuration for event IN\\[n\\]"]
|
|
pub publish_in: [PUBLISH_IN; 8],
|
|
_reserved9: [u8; 0x5c],
|
|
#[doc = "0x1fc - Publish configuration for event PORT"]
|
|
pub publish_port: PUBLISH_PORT,
|
|
_reserved10: [u8; 0x0104],
|
|
#[doc = "0x304 - Enable interrupt"]
|
|
pub intenset: INTENSET,
|
|
#[doc = "0x308 - Disable interrupt"]
|
|
pub intenclr: INTENCLR,
|
|
_reserved12: [u8; 0x0204],
|
|
#[doc = "0x510..0x530 - Description collection: Configuration for OUT\\[n\\], SET\\[n\\], and CLR\\[n\\]
|
|
tasks and IN\\[n\\]
|
|
event"]
|
|
pub config: [CONFIG; 8],
|
|
}
|
|
#[doc = "TASKS_OUT (w) register accessor: an alias for `Reg<TASKS_OUT_SPEC>`"]
|
|
pub type TASKS_OUT = crate::Reg<tasks_out::TASKS_OUT_SPEC>;
|
|
#[doc = "Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is configured in CONFIG\\[n\\].POLARITY."]
|
|
pub mod tasks_out;
|
|
#[doc = "TASKS_SET (w) register accessor: an alias for `Reg<TASKS_SET_SPEC>`"]
|
|
pub type TASKS_SET = crate::Reg<tasks_set::TASKS_SET_SPEC>;
|
|
#[doc = "Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it high."]
|
|
pub mod tasks_set;
|
|
#[doc = "TASKS_CLR (w) register accessor: an alias for `Reg<TASKS_CLR_SPEC>`"]
|
|
pub type TASKS_CLR = crate::Reg<tasks_clr::TASKS_CLR_SPEC>;
|
|
#[doc = "Description collection: Task for writing to pin specified in CONFIG\\[n\\].PSEL. Action on pin is to set it low."]
|
|
pub mod tasks_clr;
|
|
#[doc = "SUBSCRIBE_OUT (rw) register accessor: an alias for `Reg<SUBSCRIBE_OUT_SPEC>`"]
|
|
pub type SUBSCRIBE_OUT = crate::Reg<subscribe_out::SUBSCRIBE_OUT_SPEC>;
|
|
#[doc = "Description collection: Subscribe configuration for task OUT\\[n\\]"]
|
|
pub mod subscribe_out;
|
|
#[doc = "SUBSCRIBE_SET (rw) register accessor: an alias for `Reg<SUBSCRIBE_SET_SPEC>`"]
|
|
pub type SUBSCRIBE_SET = crate::Reg<subscribe_set::SUBSCRIBE_SET_SPEC>;
|
|
#[doc = "Description collection: Subscribe configuration for task SET\\[n\\]"]
|
|
pub mod subscribe_set;
|
|
#[doc = "SUBSCRIBE_CLR (rw) register accessor: an alias for `Reg<SUBSCRIBE_CLR_SPEC>`"]
|
|
pub type SUBSCRIBE_CLR = crate::Reg<subscribe_clr::SUBSCRIBE_CLR_SPEC>;
|
|
#[doc = "Description collection: Subscribe configuration for task CLR\\[n\\]"]
|
|
pub mod subscribe_clr;
|
|
#[doc = "EVENTS_IN (rw) register accessor: an alias for `Reg<EVENTS_IN_SPEC>`"]
|
|
pub type EVENTS_IN = crate::Reg<events_in::EVENTS_IN_SPEC>;
|
|
#[doc = "Description collection: Event generated from pin specified in CONFIG\\[n\\].PSEL"]
|
|
pub mod events_in;
|
|
#[doc = "EVENTS_PORT (rw) register accessor: an alias for `Reg<EVENTS_PORT_SPEC>`"]
|
|
pub type EVENTS_PORT = crate::Reg<events_port::EVENTS_PORT_SPEC>;
|
|
#[doc = "Event generated from multiple input GPIO pins with SENSE mechanism enabled"]
|
|
pub mod events_port;
|
|
#[doc = "PUBLISH_IN (rw) register accessor: an alias for `Reg<PUBLISH_IN_SPEC>`"]
|
|
pub type PUBLISH_IN = crate::Reg<publish_in::PUBLISH_IN_SPEC>;
|
|
#[doc = "Description collection: Publish configuration for event IN\\[n\\]"]
|
|
pub mod publish_in;
|
|
#[doc = "PUBLISH_PORT (rw) register accessor: an alias for `Reg<PUBLISH_PORT_SPEC>`"]
|
|
pub type PUBLISH_PORT = crate::Reg<publish_port::PUBLISH_PORT_SPEC>;
|
|
#[doc = "Publish configuration for event PORT"]
|
|
pub mod publish_port;
|
|
#[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 = "CONFIG (rw) register accessor: an alias for `Reg<CONFIG_SPEC>`"]
|
|
pub type CONFIG = crate::Reg<config::CONFIG_SPEC>;
|
|
#[doc = "Description collection: Configuration for OUT\\[n\\], SET\\[n\\], and CLR\\[n\\]
|
|
tasks and IN\\[n\\]
|
|
event"]
|
|
pub mod config;
|