PI2C_WRITE callback function (video.h)
The I2CWrite function writes data over the I2C channel.
PI2C_WRITE Pi2cWrite;
BOOLEAN Pi2cWrite(
[in] IN PVOID HwDeviceExtension,
[in] IN PI2C_CALLBACKS I2CCallbacks,
[in] IN PUCHAR Buffer,
[in] IN ULONG Length
)
{...}
[in] HwDeviceExtension
Pointer to the miniport driver's per-adapter device extension.
[in] I2CCallbacks
Pointer to an I2C_CALLBACKS structure, containing pointers to miniport driver-defined functions that read and write data and clock lines.
[in] Buffer
Pointer to the data to be written.
[in] Length
Specifies the number of bytes to be written.
I2CWrite returns TRUE if the data was successfully written, and FALSE otherwise.
The video port implements this function, which can be accessed through a pointer in the VIDEO_PORT_I2C_INTERFACE structure.
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 2000 and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | video.h (include Video.h) |
IRQL | PASSIVE_LEVEL |