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
NVAPI_OK
: Completed requestNVAPI_ERROR
: Miscellaneous error occurred.NVAPI_HANDLE_INVALIDATED
: Handle passed has been invalidated (see user guide).NVAPI_EXPECTED_PHYSICAL_GPU_HANDLE
: Handle passed is not a physical GPU handle.NVAPI_INCOMPATIBLE_STRUCT_VERSION
: Structure version is not supported.NVAPI_INVALID_ARGUMENT
: Argument does not meet specified requirementsNVAPI_ARGUMENT_EXCEED_MAX_SIZE
: exceeds the maximum