// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 Fábio Henrique de Lima Silva (fhl.bsb@gmail.com) All rights reserved.
//! Canonical mapping from [`GateState`] to [`RtStatusFlags`] bits
//! (`RT_STATUS_IS_SILENT`, `RT_STATUS_IS_FADING`).
//!
//! This module is the single source of truth; processing pipelines and host
//! adapters use [`report_gate_flags`] instead of duplicating the match arms.
use crateRtStatusFlags;
use crateGateState;
/// Reports the current gate state to the real-time status atomics.
///
/// - `Closed` → `IS_SILENT` set, `IS_FADING` cleared.
/// - `FadingIn` / `FadingOut` → `IS_SILENT` cleared, `IS_FADING` set.
/// - `Open` → both flags cleared.
///
/// Uses `Relaxed` ordering; safe for the real-time hot-path.