pub struct RcSettings {
pub target: DeviceUid,
pub rc_target: u8,
pub ip: Option<Ipv4Addr>,
pub cec_enabled: bool,
pub cec_auto_on: bool,
pub forward_rc: bool,
pub forward_ir: bool,
pub rc_status: u8,
pub status_name: String,
}Expand description
The remote-control configuration of a source bay.
Fields§
§target: DeviceUidThe device this configuration belongs to.
rc_target: u8The control method (rc_target_t).
A single byte: the enum is plain and Cortex-M builds with
-fshort-enums, so three bytes of padding follow it before the address.
That padding is not zero - firmware copies an uncleared stack local over
the payload - so widening this to a u32 makes one unchanged setting
decode differently on every frame.
ip: Option<Ipv4Addr>The control target’s address, None when unset.
cec_enabled: boolWhether CEC is enabled.
cec_auto_on: boolWhether CEC powers the sink on automatically.
forward_rc: boolWhether remote-control commands are forwarded.
forward_ir: boolWhether infrared is forwarded.
rc_status: u8The driver state on the source (mxr_rc_status_t).
A value above the last one this library knows is passed through as it arrived rather than clamped, so a firmware update cannot make it read as a known state.
status_name: StringThe driver-reported status string, empty when unknown.
Trait Implementations§
Source§impl Clone for RcSettings
impl Clone for RcSettings
Source§fn clone(&self) -> RcSettings
fn clone(&self) -> RcSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more