Tizen RT Public API
v1.1 D4
|
Iotbus APIs for I2C. More...
#include <stdint.h>
#include <sys/types.h>
Go to the source code of this file.
Typedefs | |
typedef struct _iotbus_i2c_s * | iotbus_i2c_context_h |
Pointer definition to the internal struct _iotbus_i2c_s. More... | |
Enumerations | |
enum | iotbus_i2c_mode_e { IOTBUS_I2C_STD = 0, IOTBUS_I2C_FAST = 1, IOTBUS_I2C_HIGH = 2 } |
Enumeration of I2C frequency mode. More... | |
Functions | |
iotbus_i2c_context_h | iotbus_i2c_init (int bus) |
initializes i2c_context. More... | |
int | iotbus_i2c_stop (iotbus_i2c_context_h hnd) |
closes i2c_context. More... | |
int | iotbus_i2c_set_frequency (iotbus_i2c_context_h hnd, iotbus_i2c_mode_e mode) |
sets the i2c frequency. More... | |
int | iotbus_i2c_set_address (iotbus_i2c_context_h hnd, uint8_t address) |
sets the i2c slave address. More... | |
int | iotbus_i2c_read (iotbus_i2c_context_h hnd, uint8_t *data, size_t length) |
reads from i2c device. More... | |
int | iotbus_i2c_write (iotbus_i2c_context_h hnd, const uint8_t *data, size_t length) |
writes to i2c device. More... | |
Iotbus APIs for I2C.
Definition in file iotbus_i2c.h.