#[repr(C)]pub struct cec_log_addrs {
pub log_addr: [u8; 4],
pub log_addr_mask: CEC_LOG_ADDR_MASK,
pub cec_version: u8,
pub num_log_addrs: u8,
pub vendor_id: VendorId,
pub flags: CEC_LOG_ADDRS_FL,
pub osd_name: [c_uchar; 15],
pub primary_device_type: [u8; 4],
pub log_addr_type: [u8; 4],
pub all_device_types: [u8; 4],
pub features: [[u8; 12]; 4],
}Expand description
CEC logical addresses structure
Fields§
§log_addr: [u8; 4]The claimed logical addresses. Set by the driver.
log_addr_mask: CEC_LOG_ADDR_MASKCurrent logical address mask. Set by the driver.
cec_version: u8The CEC version that the adapter should implement. Set by the caller.
num_log_addrs: u8How many logical addresses should be claimed. Set by the caller.
vendor_id: VendorIdThe vendor ID of the device. Set by the caller.
flags: CEC_LOG_ADDRS_FLFlags.
osd_name: [c_uchar; 15]The OSD name of the device. Set by the caller.
primary_device_type: [u8; 4]The primary device type for each logical address. Set by the caller.
log_addr_type: [u8; 4]The logical address types. Set by the caller.
all_device_types: [u8; 4]CEC 2.0: all device types represented by the logical address. Set by the caller.
features: [[u8; 12]; 4]CEC 2.0: The logical address features. Set by the caller.
Implementations§
Source§impl cec_log_addrs
impl cec_log_addrs
Trait Implementations§
Source§impl Clone for cec_log_addrs
impl Clone for cec_log_addrs
Source§fn clone(&self) -> cec_log_addrs
fn clone(&self) -> cec_log_addrs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for cec_log_addrs
impl Debug for cec_log_addrs
Source§impl Default for cec_log_addrs
impl Default for cec_log_addrs
Source§fn default() -> cec_log_addrs
fn default() -> cec_log_addrs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for cec_log_addrs
impl RefUnwindSafe for cec_log_addrs
impl Send for cec_log_addrs
impl Sync for cec_log_addrs
impl Unpin for cec_log_addrs
impl UnsafeUnpin for cec_log_addrs
impl UnwindSafe for cec_log_addrs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more