TI-RTOS Drivers  tidrivers_full_2_20_00_08
Macros | Functions
SensorI2C.h File Reference

Detailed Description

Simple interface to the TI-RTOS driver. Also manages switching between I2C-buses.

============================================================================


#include "stdbool.h"
Include dependency graph for SensorI2C.h:

Go to the source code of this file.

Macros

#define SENSOR_I2C_0   0
 
#define SENSOR_I2C_1   1
 
#define SENSOR_I2C_NONE   -1
 

Functions

bool SensorI2C_open (void)
 
bool SensorI2C_select (uint8_t interface, uint8_t slaveAddress)
 
bool SensorI2C_readReg (uint8_t addr, uint8_t *pBuf, uint8_t nBytes)
 
bool SensorI2C_writeReg (uint8_t addr, uint8_t *pBuf, uint8_t nBytes)
 
void SensorI2C_deselect (void)
 
void SensorI2C_close (void)
 
bool SensorI2C_read (uint8_t *data, uint8_t len)
 
bool SensorI2C_write (uint8_t *data, uint8_t len)
 

Macro Definition Documentation

#define SENSOR_I2C_0   0
#define SENSOR_I2C_1   1
#define SENSOR_I2C_NONE   -1

Function Documentation

bool SensorI2C_open ( void  )
bool SensorI2C_select ( uint8_t  interface,
uint8_t  slaveAddress 
)
bool SensorI2C_readReg ( uint8_t  addr,
uint8_t *  pBuf,
uint8_t  nBytes 
)
bool SensorI2C_writeReg ( uint8_t  addr,
uint8_t *  pBuf,
uint8_t  nBytes 
)
void SensorI2C_deselect ( void  )
void SensorI2C_close ( void  )
bool SensorI2C_read ( uint8_t *  data,
uint8_t  len 
)
bool SensorI2C_write ( uint8_t *  data,
uint8_t  len 
)
Copyright 2016, Texas Instruments Incorporated