Function nvapi_sys::i2c::NvAPI_I2CWrite [] [src]

pub unsafe fn NvAPI_I2CWrite(
    hPhysicalGpu: NvPhysicalGpuHandle,
    pI2cInfo: *mut NV_I2C_INFO
) -> NvAPI_Status

This function writes the data buffer to the I2C port.

The I2C request must be for a DDC port: pI2cInfo->bIsDDCPort = 1.

A data buffer size larger than 16 bytes may be rejected if a register address is specified. In such a case, NVAPI_ARGUMENT_EXCEED_MAX_SIZE would be returned.

If a register address is specified (i.e. regAddrSize is positive), then the register address will be written and the data buffer will immediately follow without a restart.

Returns