C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
HW_I2C_Slave Class Reference

this is a C++ wrapper for the original pico SDK i2c slave API More...

#include <hw_i2c.h>

Collaboration diagram for HW_I2C_Slave:
Collaboration graph

Public Member Functions

 HW_I2C_Slave (struct_ConfigSlaveI2C slave_config)
 Construct a new hw i2c slave object.
 
void slave_isr (i2c_slave_event_t event)
 this is the actual Interrupt Service Routine executed by the slave after each received data
 

Public Attributes

struct_SlaveMemory context
 a data structure used to configure the slave device
 

Detailed Description

this is a C++ wrapper for the original pico SDK i2c slave API

Constructor & Destructor Documentation

◆ HW_I2C_Slave()

HW_I2C_Slave::HW_I2C_Slave ( struct_ConfigSlaveI2C slave_config)

Construct a new hw i2c slave object.

Parameters
slave_config

Member Function Documentation

◆ slave_isr()

void HW_I2C_Slave::slave_isr ( i2c_slave_event_t event)

this is the actual Interrupt Service Routine executed by the slave after each received data

Parameters
eventthe type of data/command received

The documentation for this class was generated from the following files: