sim_lib_view_spatial/halo_glance.rs
1//! Halo configuration over the shared DEVICE_3 glance adapter.
2
3use sim_lib_view_device::{AckChannel, GlanceAdapter, GlanceBudget};
4
5/// Modeled acknowledgement duration for a Halo tap.
6pub const HALO_ACK_MS: u64 = 120;
7
8/// Returns the Halo mono-HUD one-card budget.
9pub fn halo_glance_budget() -> GlanceBudget {
10 GlanceBudget {
11 cells: 6,
12 glyphs: 128,
13 ack: AckChannel::GlyphFlash,
14 }
15}
16
17/// Builds the shared DEVICE_3 [`GlanceAdapter`] configured for Halo.
18///
19/// Halo remains a one-card device path. This function supplies only a budget and
20/// acknowledgement duration; card extraction and tap acknowledgement stay in the
21/// shared device adapter.
22pub fn halo_glance_config() -> GlanceAdapter {
23 GlanceAdapter::new(halo_glance_budget(), HALO_ACK_MS)
24}