IsSupported

Checks if the OEM device data can be read and written through the I2C bus on a GPU.

Syntax

Copied!

ADLX_RESULT     IsSupported (ADLX_I2C_LINE  line, adlx_int address, adlx_bool* isSupported)

Parameters

  1. [in] line ADLX_I2C_LINE The I2C line.

  2. [in] address adlx_int The 7-bit I2C slave device address which is shifted one bit to the left.

  1. [out] isSupported adlx_bool* A pointer to a variable where the status of the I2C bus read and write is returned. The variable is true if the OEM device data can be read and written through the I2C bus. The variable is false if the OEM device data cannot be read and written through the I2C bus.

Return Value

If the status of the I2C bus read and write is successfully returned, ADLX_OK is returned.

If the status of the I2C bus read and write is not successfully returned, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Requirements

Header

include “II2C.h”

Minimum version

1.0