Skip to content

IsSupported

Navigation: ADLX SDK ReferencesADLX InterfacesI2CIADLXI2C

Syntax

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

Parameters

#DirectionNameTypeDescription
1.[in]lineADLX_I2C_LINEThe I2C line.
#DirectionNameTypeDescription
---------------
2.[in]addressadlx_intThe 7-bit I2C slave device address which is shifted one bit to the left.
#DirectionNameTypeDescription
---------------
2.[out]isSupportedadlx_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

Headerinclude “II2C.h”
Minimum version1.0

See Also: ADLX Enums