XDK API  3.6.0
Documentation
Macros | Functions | Variables
ExtensionI2cExample.c File Reference
#include "XdkAppInfo.h"
#include "AppController.h"
#include "ExtensionI2cExample.h"
#include "BCDS_I2CTransceiver.h"
#include "BSP_ExtensionPort.h"
#include "BCDS_MCU_I2C.h"
#include "BCDS_Basics.h"
#include "stdio.h"
+ Include dependency graph for ExtensionI2cExample.c:

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
 

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:39 by doxygen 1.8.8