aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-07 19:23:09 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-07 19:23:09 +0000
commit3799bf56f52f7a5be9eeda6757c6642105c4ed66 (patch)
tree561082b62d25f9f4ec0f26c2cb5657b1e27c8aae /os/hal/include
parentb9df6d7c801d711fda3d83cd9a2eb7b456f60276 (diff)
downloadChibiOS-3799bf56f52f7a5be9eeda6757c6642105c4ed66.tar.gz
ChibiOS-3799bf56f52f7a5be9eeda6757c6642105c4ed66.tar.bz2
ChibiOS-3799bf56f52f7a5be9eeda6757c6642105c4ed66.zip
I2C. Error handling from userland code added.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3572 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/i2c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h
index 8cfd97e75..5ee4887e9 100644
--- a/os/hal/include/i2c.h
+++ b/os/hal/include/i2c.h
@@ -181,15 +181,16 @@ extern "C" {
void i2cObjectInit(I2CDriver *i2cp);
void i2cStart(I2CDriver *i2cp, const I2CConfig *config);
void i2cStop(I2CDriver *i2cp);
- void i2cMasterTransmit(I2CDriver *i2cp,
+ i2cflags_t i2cMasterTransmit(I2CDriver *i2cp,
uint8_t slave_addr,
uint8_t *txbuf, size_t txbytes,
uint8_t *rxbuf, size_t rxbytes);
- void i2cMasterReceive(I2CDriver *i2cp,
+ i2cflags_t i2cMasterReceive(I2CDriver *i2cp,
uint8_t slave_addr, uint8_t *rxbuf, size_t rxbytes);
void i2cMasterStart(I2CDriver *i2cp);
void i2cMasterStop(I2CDriver *i2cp);
void i2cAddFlagsI(I2CDriver *i2cp, i2cflags_t mask);
+ i2cflags_t i2cGetAndClearFlags(I2CDriver *i2cp);
#if I2C_USE_MUTUAL_EXCLUSION
void i2cAcquireBus(I2CDriver *i2cp);