libyggdrasil
v1.0.0
|
I2C implementation for Asgard. More...
#include <i2c.hpp>
Static Public Member Functions | |
static bool | init () |
Init function. More... | |
static bool | deinit () |
Deinit function. More... | |
template<size_t N> | |
static ALWAYS_INLINE void | read (u8 address, std::array< u8, N > &data) |
I2C receive. More... | |
template<size_t N> | |
static ALWAYS_INLINE void | write (u8 address, const std::array< u8, N > &data) |
I2C write. More... | |
I2C implementation for Asgard.
Context | I2C context |
|
inlinestatic |
Deinit function.
|
inlinestatic |
Init function.
|
inlinestatic |
I2C receive.
N | Data size |
address | Device address |
data | Array for the read data |
|
inlinestatic |