C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
hw_i2c.h File Reference
#include "hardware/i2c.h"
#include "pico/i2c_slave.h"
#include "pico/stdlib.h"
#include <set>
#include <string>
Include dependency graph for hw_i2c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  struct_I2CXferResult
 this data structure collects result when an I2C transfer is done. It gives a more verbose error description : a context and the number of transfered byte. More...
 
struct  struct_ConfigMasterI2C
 The configuration data of I2C interface used as Master. More...
 
struct  struct_ConfigSlaveI2C
 The configuration data of I2C interface used as Slave. More...
 
class  HW_I2C_Master
 this is a C++ wrapper for the original pico SDK i2c master API More...
 
struct  struct_SlaveMemory
 this is the structure of the memory used by the slave i2c interface More...
 
class  HW_I2C_Slave
 this is a C++ wrapper for the original pico SDK i2c slave API More...
 

Macros

#define I2C_STANDARD_MODE   100 * 1000
 I2C standard mode speed 100kb/s.
 
#define I2C_FAST_MODE   400 * 1000
 I2C fast mode speed 400kb/s.
 
#define I2C_FAST_MODE_PLUS   1000 * 1000
 I2C fast mode plus speed 1Mb/s.
 
#define I2C_SLAVE_DEFAULT_MAX_MEMORY_SIZE   256
 I2C max buffer memory size, default to 256 words.
 

Detailed Description

Author
xiansnn (xians.nosp@m.nn@h.nosp@m.otmai.nosp@m.l.co.nosp@m.m)
Version
0.1
Date
2025-01-11