NV_I2C_INFO_V2

Struct NV_I2C_INFO_V2 

Source
#[repr(C)]
pub struct NV_I2C_INFO_V2 { pub version: u32, pub displayMask: u32, pub bIsDDCPort: u8, pub i2cDevAddress: u8, pub pbI2cRegAddress: *mut u8, pub regAddrSize: u32, pub pbData: *mut u8, pub cbSize: u32, pub i2cSpeed: u32, pub i2cSpeedKhz: NV_I2C_SPEED, }
Expand description

Used in NvAPI_I2CRead() and NvAPI_I2CWrite()

Fields§

§version: u32

The structure version.

§displayMask: u32

The Display Mask of the concerned display.

§bIsDDCPort: u8

This flag indicates either the DDC port (TRUE) or the communication port (FALSE) of the concerned display.

§i2cDevAddress: u8

The address of the I2C slave. The address should be shifted left by one. Fo example, the I2C address 0x50, often used for reading EDIDs, would be stored here as 0xA0. This matches the position within the byte sent by the master, the last bit is reserved to specify the read or write direction.

§pbI2cRegAddress: *mut u8

The I2C target register address. May be NULL, which indicates no register address should be sent.

§regAddrSize: u32

The size in bytes of target register address. If pbI2cRegAddress is NULL, this field must be 0.

§pbData: *mut u8

The buffer of data which is to be read or written (depending on the command).

§cbSize: u32

The size of the data buffer, pbData, to be read or written.

§i2cSpeed: u32

Deprecated - must be set to NVAPI_I2C_SPEED_DEPRECATED.

§i2cSpeedKhz: NV_I2C_SPEED

The target speed of the transaction in (kHz) (Chosen from the enum NV_I2C_SPEED).

Implementations§

Trait Implementations§

Source§

impl Clone for NV_I2C_INFO_V2

Source§

fn clone(&self) -> NV_I2C_INFO_V2

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NV_I2C_INFO_V2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for NV_I2C_INFO_V2

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.