#[repr(C)]pub struct NV_I2C_INFO_EX_V3 {
pub version: u32,
pub displayMask: u32,
pub bIsDDCPort: u8,
pub i2cDevAddress: u8,
pub pbI2cRegAddress: *mut u8,
pub regAddrSize: u32,
pub pbData: *mut u8,
pub pbRead: u32,
pub cbSize: u32,
pub i2cSpeedKhz: NV_I2C_SPEED,
pub portId: u8,
pub bIsPortIdSet: u32,
}Expand description
Used in NvAPI_I2CRead() and NvAPI_I2CWrite()
Fields§
§version: u32The structure version.
displayMask: u32The Display Mask of the concerned display.
bIsDDCPort: u8This flag indicates either the DDC port (TRUE) or the communication port (FALSE) of the concerned display.
i2cDevAddress: u8The 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 u8The I2C target register address. May be NULL, which indicates no register address should be sent.
regAddrSize: u32The size in bytes of target register address. If pbI2cRegAddress is NULL, this field must be 0.
pbData: *mut u8The buffer of data which is to be read or written (depending on the command).
pbRead: u32bytes to read ??? seems required on write too
cbSize: u32The size of the data buffer, pbData, to be read or written.
i2cSpeedKhz: NV_I2C_SPEEDThe target speed of the transaction in (kHz) (Chosen from the enum NV_I2C_SPEED).
portId: u8The portid on which device is connected (remember to set bIsPortIdSet if this value is set)
Optional for pre-Kepler
bIsPortIdSet: u32set this flag on if and only if portid value is set
Implementations§
Trait Implementations§
Source§impl Clone for NV_I2C_INFO_EX_V3
impl Clone for NV_I2C_INFO_EX_V3
Source§fn clone(&self) -> NV_I2C_INFO_EX_V3
fn clone(&self) -> NV_I2C_INFO_EX_V3
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more