XDK API  3.6.0
Documentation
Macros | Functions | Variables
XdkExtensionPortI2c

This Module contains necessary implementation in order to enable user to develop his application using the Extension port I2C communication interface. This module can be used a reference design for interfacing user device via I2C of extension port. More...

+ Collaboration diagram for XdkExtensionPortI2c:

Macros

#define BCDS_MODULE_ID   XDK_APP_MODULE_ID_EXTENSION_PORT_I2C
 
#define EXT_PORT_I2C_REG1_ADDR   UINT8_C(0x22)
 
#define EXT_PORT_I2C_REG1_VAL   UINT8_C(0x08)
 
#define EXT_PORT_I2C_REG2_ADDR   UINT8_C(0x00)
 
#define EXT_PORT_I2C_REG2_VAL   UINT8_C(0x0F)
 
#define EXT_PORT_I2C_SLAVE_ADDR   UINT8_C(0x68)
 

Functions

Retcode_T ExtensionI2cExample_DeInitialize (void)
 This API is used to deinitialize the I2C interface. Once this called, from there-on user needs to call ExtensionI2cExample_Initialize for using the I2C communication again. More...
 
Retcode_T ExtensionI2cExample_Initialize (CmdProcessor_T *handle)
 This API is used to prepare the I2C with the user configuration data. More...
 
Retcode_T ExtensionI2cExample_Read (uint8_t slaveAddr, uint8_t regAddr, uint8_t *readVal, uint8_t readLength)
 This API is used to read the data received over the I2C extension port interface. More...
 
Retcode_T ExtensionI2cExample_ValidateChip (void)
 This API is used to demonstrate read and write on the extension port I2C interface. More...
 
Retcode_T ExtensionI2cExample_Write (uint8_t slaveAddr, uint8_t regAddr, uint8_t *writeVal, uint8_t writeLength)
 This API is used to write the data received over the I2C extension port interface. More...
 
static void I2cMcuCallback (I2C_T i2c, struct MCU_I2C_Event_S event)
 

Variables

static I2cTranceiverHandle_T I2CTranceiverInstance
 

Detailed Description

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_APP_MODULE_ID_EXTENSION_PORT_I2C
#define EXT_PORT_I2C_REG1_ADDR   UINT8_C(0x22)
#define EXT_PORT_I2C_REG1_VAL   UINT8_C(0x08)
#define EXT_PORT_I2C_REG2_ADDR   UINT8_C(0x00)
#define EXT_PORT_I2C_REG2_VAL   UINT8_C(0x0F)
#define EXT_PORT_I2C_SLAVE_ADDR   UINT8_C(0x68)

Function Documentation

Retcode_T ExtensionI2cExample_DeInitialize ( void  )

Refer interface header for description

Retcode_T ExtensionI2cExample_Initialize ( CmdProcessor_T handle)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T ExtensionI2cExample_Read ( uint8_t  slaveAddr,
uint8_t  regAddr,
uint8_t *  readVal,
uint8_t  readLength 
)

Refer interface header for description

+ Here is the caller graph for this function:

Retcode_T ExtensionI2cExample_ValidateChip ( void  )

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T ExtensionI2cExample_Write ( uint8_t  slaveAddr,
uint8_t  regAddr,
uint8_t *  writeVal,
uint8_t  writeLength 
)

Refer interface header for description

+ Here is the caller graph for this function:

static void I2cMcuCallback ( I2C_T  i2c,
struct MCU_I2C_Event_S  event 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

I2cTranceiverHandle_T I2CTranceiverInstance
static

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:55 by doxygen 1.8.8