|
ChibiOS/HAL
6.1.0
|
I2C Driver code. More...
#include "hal.h"Go to the source code of this file.
Functions | |
| void | i2cInit (void) |
| I2C Driver initialization. More... | |
| void | i2cObjectInit (I2CDriver *i2cp) |
Initializes the standard part of a I2CDriver structure. More... | |
| void | i2cStart (I2CDriver *i2cp, const I2CConfig *config) |
| Configures and activates the I2C peripheral. More... | |
| void | i2cStop (I2CDriver *i2cp) |
| Deactivates the I2C peripheral. More... | |
| i2cflags_t | i2cGetErrors (I2CDriver *i2cp) |
| Returns the errors mask associated to the previous operation. More... | |
| msg_t | i2cMasterTransmitTimeout (I2CDriver *i2cp, i2caddr_t addr, const uint8_t *txbuf, size_t txbytes, uint8_t *rxbuf, size_t rxbytes, sysinterval_t timeout) |
| Sends data via the I2C bus. More... | |
| msg_t | i2cMasterReceiveTimeout (I2CDriver *i2cp, i2caddr_t addr, uint8_t *rxbuf, size_t rxbytes, sysinterval_t timeout) |
| Receives data from the I2C bus. More... | |
| void | i2cAcquireBus (I2CDriver *i2cp) |
| Gains exclusive access to the I2C bus. More... | |
| void | i2cReleaseBus (I2CDriver *i2cp) |
| Releases exclusive access to the I2C bus. More... | |
I2C Driver code.
Definition in file hal_i2c.c.