µracoli Manual Version foo

- µracoli
- User Guide
- Reference Guide

I2C Bus Driver
Sensor Drivers

## Detailed Description

## Functions

void i2c_init | ( | uint32_t | freq_Hz | ) |

initialize I2C bus

Examples:
  xmpl_i2c.c, xmpl_isl29020.c, xmpl_lm73.c, xmpl_sensor.c, and xmpl_tsl2550.c.

uint8_t i2c_master_writeread | ( | uint8_t | devaddr,
|  | uint8_t * | writebuf,
|  | uint8_t | bytestowrite,
|  | uint8_t * | readbuf,
|  | uint8_t | bytestoread
| ) |  |

combined read and write of datablocks on the I2C bus.

Examples:
  xmpl_i2c.c.

uint8_t i2c_probe | ( | uint8_t | devaddr | ) |

probe the presence of a device on the I2C bus.

Examples:
  xmpl_i2c.c.