#[repr(C)]pub struct mxr_rc_settings_t {
pub target: mxr_uid_t,
pub rc_target: u8,
pub ip: [c_char; 16],
pub cec_enabled: bool,
pub cec_auto_on: bool,
pub forward_rc: bool,
pub forward_ir: bool,
pub rc_status: u8,
pub status_name: [c_char; 32],
}Expand description
The remote-control configuration of a source bay.
Fields§
§target: mxr_uid_tThe device this configuration belongs to.
rc_target: u8The control method, as the wire value.
Zero is infrared, a method a bay really uses, so it is not a stand-in
for “not reported”. Check that mxr_rc_settings() returned MXR_OK
before reading this: a device that has not sent its settings yet
leaves the struct as the caller allocated it, and a zeroed one then
reads as a bay set to infrared. mxr_bay_info_t answers the same
question with a has_rc_type flag beside its rc_type.
ip: [c_char; 16]The control target’s address, empty 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, as the wire value. One above the last this library knows is passed through as it arrived.
status_name: [c_char; 32]The driver-reported status string, empty when unknown.
Trait Implementations§
Source§impl Clone for mxr_rc_settings_t
impl Clone for mxr_rc_settings_t
Source§fn clone(&self) -> mxr_rc_settings_t
fn clone(&self) -> mxr_rc_settings_t
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more