libyggdrasil
v1.0.0
|
I2C abstraction implementation for Asgard. More...
#include <c/common/types.h>
Go to the source code of this file.
Classes | |
struct | i2c_t |
I2C handle type. More... | |
Functions | |
C_LINKAGE bool | yggdrasil_I2C_Init (i2c_t i2c) |
I2C initialization. More... | |
C_LINKAGE bool | yggdrasil_I2C_Deinit (i2c_t i2c) |
I2C deinitialization. More... | |
C_LINKAGE void | yggdrasil_I2C_Write (i2c_t i2c, u8 address, void *data, size_t size) |
I2C write. More... | |
C_LINKAGE void | yggdrasil_I2C_WriteRegister (i2c_t i2c, u8 address, u8 reg, void *data, size_t size) |
I2C write register. More... | |
C_LINKAGE void | yggdrasil_I2C_Read (i2c_t i2c, u8 address, void *data, size_t size) |
I2C read. More... | |
C_LINKAGE void | yggdrasil_I2C_ReadRegister (i2c_t i2c, u8 address, u8 reg, void *data, size_t size) |
I2C read register. More... | |
I2C abstraction implementation for Asgard.
I2C read.
i2c | I2C handle | |
address | I2C device address | |
[out] | data | Received data |
size | Size of the data to receive |
C_LINKAGE void yggdrasil_I2C_ReadRegister | ( | i2c_t | i2c, |
u8 | address, | ||
u8 | reg, | ||
void * | data, | ||
size_t | size | ||
) |
I2C read register.
i2c | I2C handle | |
address | I2C device address | |
reg | I2C device register address | |
[out] | data | Received data |
size | Size of the data to receive |
I2C write.
i2c | I2C handle |
address | I2C device address |
data | Data to transmit |
size | Size of the data to transmit |