Struct nvapi_hi::sys::i2c::NV_I2C_INFO_V1 [] [src]

#[repr(C)]
pub struct NV_I2C_INFO_V1 { 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, }

Used in NvAPI_I2CRead() and NvAPI_I2CWrite()

Fields

The structure version.

The Display Mask of the concerned display.

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

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.

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

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

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

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

The target speed of the transaction (between 28Kbps to 40Kbps; not guaranteed).

Deprecated in V2+. Must be set to NVAPI_I2C_SPEED_DEPRECATED.

Methods

impl NV_I2C_INFO_V1
[src]

[src]

Trait Implementations

impl Debug for NV_I2C_INFO_V1
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for NV_I2C_INFO_V1
[src]

impl Clone for NV_I2C_INFO_V1
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more