VIDEO_PORT_I2C_INTERFACE structure (video.h)

The VIDEO_PORT_I2C_INTERFACE structure describes the I2C service routines provided by the video port driver.

Syntax

typedef struct _VIDEO_PORT_I2C_INTERFACE {
  IN USHORT                  Size;
  IN USHORT                  Version;
  OUT PVOID                  Context;
  OUT PINTERFACE_REFERENCE   InterfaceReference;
  OUT PINTERFACE_DEREFERENCE InterfaceDereference;
  OUT PI2C_START             I2CStart;
  OUT PI2C_STOP              I2CStop;
  OUT PI2C_WRITE             I2CWrite;
  OUT PI2C_READ              I2CRead;
} VIDEO_PORT_I2C_INTERFACE, *PVIDEO_PORT_I2C_INTERFACE;

Members

Size

Specifies the size in bytes of this structure.

Version

Specifies the version of the interface to be returned by the miniport driver. The current interface version is defined in video.h, and has the form VIDEO_PORT_I2C_INTERFACE_N.

Context

Pointer to a miniport driver-defined context for the interface.

InterfaceReference

Pointer to the video port driver-implemented reference routine for this interface.

InterfaceDereference

Pointer to the video port driver-implemented dereference routine for this interface.

I2CStart

Pointer to the video port driver's I2CStart routine.

I2CStop

Pointer to the video port driver's I2CStop routine.

I2CWrite

Pointer to the video port driver's I2CWrite routine.

I2CRead

Pointer to the video port driver's I2CRead routine.

Remarks

PnP video miniport drivers that can use I²C should fill in the Size and Version members of this structure, and then call VideoPortQueryServices, which initializes the remaining members of this structure.

Requirements

Requirement Value
Header video.h (include Video.h)

See also

INTERFACE

VideoPortQueryServices