From 350ae0a1a9721b8889b038cf2fce6a88f1c288e3 Mon Sep 17 00:00:00 2001 From: barthess Date: Sat, 18 Jun 2011 11:12:33 +0000 Subject: I2C. API BROKEN! Structure fields renamed in underscore naming style. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3055 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/i2c.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'os/hal/include') diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h index f5465985b..6b8661c7e 100644 --- a/os/hal/include/i2c.h +++ b/os/hal/include/i2c.h @@ -148,15 +148,12 @@ struct I2CSlaveConfig{ */ i2cerrorcallback_t id_err_callback; - /** - * @brief Receive and transmit buffers. - */ - size_t txbytes; - size_t rxbytes; + size_t txbytes; /*!< Number of bytes to transmitted. */ + size_t rxbytes; /*!< Number of bytes to received. */ i2cblock_t *rxbuf; /*!< Pointer to receive buffer. */ i2cblock_t *txbuf; /*!< Pointer to transmit buffer.*/ - uint16_t slave_addr; - uint8_t nbit_address; /*!< Length of address (must be 7 or 10).*/ + uint16_t slave_addr; /*!< Slave device address.*/ + uint8_t nbit_addr; /*!< Length of address (must be 7 or 10).*/ i2cflags_t errors; i2cflags_t flags; /* Status Change @p EventSource.*/ -- cgit v1.2.3