Arduino Hardware I2C for AVR MCUs (plain c)
1.3
Arduino Hardware I2C for AVR MCUs (plain c) documentation
|
#include <ci2c.h>
Functions | |
void | setup () |
void | loop () |
bool | I2C_wr_advanced (I2C_SLAVE *slave, const uint16_t reg_addr, uint8_t *data, const uint16_t bytes) |
This procedure calls appropriate functions to perform a proper send transaction on I2C bus. More... | |
bool | I2C_rd_advanced (I2C_SLAVE *slave, const uint16_t reg_addr, uint8_t *data, const uint16_t bytes) |
This procedure calls appropriate functions to perform a proper receive transaction on I2C bus. More... | |
bool | I2C_get_chip_id (I2C_SLAVE *slave, uint8_t *data) |
This procedure calls appropriate functions to get chip ID of FUJITSU devices. More... | |
Variables | |
const uint8_t | blank = 0xEE |
I2C_SLAVE | FRAM |
bool I2C_get_chip_id | ( | I2C_SLAVE * | slave, |
uint8_t * | data | ||
) |
This procedure calls appropriate functions to get chip ID of FUJITSU devices.
[in,out] | slave | - pointer to the I2C slave structure |
[in,out] | data | - pointer to the first byte of a block of data to read |
bool I2C_rd_advanced | ( | I2C_SLAVE * | slave, |
const uint16_t | reg_addr, | ||
uint8_t * | data, | ||
const uint16_t | bytes | ||
) |
This procedure calls appropriate functions to perform a proper receive transaction on I2C bus.
[in,out] | slave | - pointer to the I2C slave structure |
[in] | reg_addr | - register address in register map |
[in,out] | data | - pointer to the first byte of a block of data to read |
[in] | bytes | - indicates how many bytes of data to read |
bool I2C_wr_advanced | ( | I2C_SLAVE * | slave, |
const uint16_t | reg_addr, | ||
uint8_t * | data, | ||
const uint16_t | bytes | ||
) |
This procedure calls appropriate functions to perform a proper send transaction on I2C bus.
[in,out] | slave | - pointer to the I2C slave structure |
[in] | reg_addr | - register address in register map |
[in] | data | - pointer to the first byte of a block of data to write |
[in] | bytes | - indicates how many bytes of data to write |
void loop | ( | ) |
void setup | ( | ) |
const uint8_t blank = 0xEE |
I2C_SLAVE FRAM |