PI2C_WRITE callback function

The I2CWrite function writes data over the I2C channel.

Syntax


PI2C_WRITE I2CWrite;

BOOLEAN I2CWrite(
  _In_ PVOID          HwDeviceExtension,
  _In_ PI2C_CALLBACKS I2CCallbacks,
  _In_ PUCHAR         Buffer,
  _In_ ULONG          Length
)
{ ... }

Parameters

HwDeviceExtension [in]

Pointer to the miniport driver's per-adapter device extension.

I2CCallbacks [in]

Pointer to an I2C_CALLBACKS structure, containing pointers to miniport driver-defined functions that read and write data and clock lines.

Buffer [in]

Pointer to the data to be written.

Length [in]

Specifies the number of bytes to be written.

Return value

I2CWrite returns TRUE if the data was successfully written, and FALSE otherwise.

Remarks

The video port implements this function, which can be accessed through a pointer in the VIDEO_PORT_I2C_INTERFACE structure.

Requirements

Target platform

Desktop

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Video.h (include Video.h)

IRQL

PASSIVE_LEVEL

See also

VIDEO_PORT_I2C_INTERFACE

 

 

Send comments about this topic to Microsoft

Show: