Struct ddc_i2c::I2cDdc
[−]
[src]
pub struct I2cDdc<I> { /* fields omitted */ }
A handle to provide DDC/CI operations on an I2C device.
Methods
impl<I> I2cDdc<I>
[src]
pub fn new(i2c: I) -> Self
[src]
Create a new DDC/CI handle with an existing open device.
pub fn into_inner(self) -> I
[src]
Consume the handle to return the inner device.
pub fn inner_ref(&self) -> &I
[src]
Borrow the inner device.
pub fn inner_mut(&mut self) -> &mut I
[src]
Mutably borrow the inner device.
Trait Implementations
impl<I: Clone> Clone for I2cDdc<I>
[src]
fn clone(&self) -> I2cDdc<I>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: Debug> Debug for I2cDdc<I>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<I: Address + BlockTransfer> Edid for I2cDdc<I>
[src]
type EdidError = I::Error
An error that can occur when reading the EDID from a device.
fn read_edid(&mut self, offset: u8, data: &mut [u8]) -> Result<usize, I::Error>
[src]
Read up to 256 bytes of the monitor's EDID.
impl<I: Address + BlockTransfer + BulkTransfer> Eddc for I2cDdc<I>
[src]
fn read_eddc_edid(
&mut self,
segment: u8,
offset: u8,
data: &mut [u8]
) -> Result<usize, I::Error>
[src]
&mut self,
segment: u8,
offset: u8,
data: &mut [u8]
) -> Result<usize, I::Error>
Read part of the EDID using the segments added in the Enhanced Display Data Channel (E-DDC) protocol. Read more
impl<I: Master> DdcHost for I2cDdc<I>
[src]
type Error = Error<I::Error>
An error that can occur when communicating with a DDC device. Read more
fn sleep(&mut self)
[src]
Wait for any previous commands to complete. Read more
impl<I: Address + ReadWrite> DdcCommandRaw for I2cDdc<I>
[src]
fn execute_raw<'a>(
&mut self,
data: &[u8],
out: &'a mut [u8],
response_delay: Duration
) -> Result<&'a mut [u8], Error<I::Error>>
[src]
&mut self,
data: &[u8],
out: &'a mut [u8],
response_delay: Duration
) -> Result<&'a mut [u8], Error<I::Error>>
Executes a raw DDC/CI command. Read more
impl<I: Address + ReadWrite> DdcCommandMarker for I2cDdc<I>
[src]
impl<I: Address + ReadWrite> DdcCommandRawMarker for I2cDdc<I>
[src]
fn set_sleep_delay(&mut self, delay: Delay)
[src]
Sets an internal Delay
that must expire before the next command is attempted. Read more