![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
Simple interface to the TI-RTOS driver. Also manages switching between I2C-buses.
============================================================================
#include "stdbool.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) |
#define SENSOR_I2C_0 0 |
#define SENSOR_I2C_1 1 |
#define SENSOR_I2C_NONE -1 |
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 | ||
) |