Struct LinuxDdcDevice

Source
pub struct LinuxDdcDevice { /* private fields */ }

Implementations§

Source§

impl LinuxDdcDevice

Source

pub fn new(i2c_sysnum: usize, drm_device: Device) -> Self

Trait Implementations§

Source§

impl DdcCommunicationBase for LinuxDdcDevice

Source§

fn delay(&self, delay_ms: u64)

implement delay for your device
Source§

fn transmit(&mut self, addr: u8, data: &[u8]) -> Result<(), DdcCiError>

implement raw i2c writing on your device
Source§

fn receive(&mut self, addr: u8) -> Result<[u8; 64], DdcCiError>

implement raw i2c reading on your device buffer size is limited to 64 bit which is double of the allowed data fragment size for ddc communication
Source§

impl DdcDevice for LinuxDdcDevice

Source§

fn name(&self) -> String

Source§

fn read_edid(&mut self) -> Result<Edid, DdcError>

Read Edid Data from Ddc Device
Source§

impl Ddc for LinuxDdcDevice

Source§

impl DeriveDdcCiDevice for LinuxDdcDevice

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<X> DdcCiDevice for X

Source§

fn read_capabilities(&mut self) -> Result<Capabilities, DdcError>

Read Device Capabilities
Source§

fn get_vcp_feature<V>(&mut self) -> Result<V, DdcError>
where V: VcpValue,

Gets the current value of an MCCS VCP feature.
Source§

fn set_vcp_feature<V>(&mut self, vcp_value: V) -> Result<(), DdcError>
where V: VcpValue,

Sets a VCP feature to the specified value.
Source§

fn save_current_settings(&mut self) -> Result<(), DdcError>

Instruct the device to save its current settings.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.