ESPHome  1.15.1
Public Member Functions | Protected Attributes
esphome::i2c::I2CRegister Class Reference

#include <i2c.h>

Public Member Functions

 I2CRegister (I2CDevice *parent, uint8_t a_register)
 
I2CRegisteroperator= (uint8_t value)
 
I2CRegisteroperator= (const std::vector< uint8_t > &value)
 
I2CRegisteroperator &= (uint8_t value)
 
I2CRegisteroperator|= (uint8_t value)
 
uint8_t get ()
 

Protected Attributes

I2CDeviceparent_
 
uint8_t register_
 

Detailed Description

Definition at line 139 of file i2c.h.

Constructor & Destructor Documentation

◆ I2CRegister()

esphome::i2c::I2CRegister::I2CRegister ( I2CDevice parent,
uint8_t  a_register 
)
inline

Definition at line 141 of file i2c.h.

Member Function Documentation

◆ get()

uint8_t esphome::i2c::I2CRegister::get ( )

Definition at line 226 of file i2c.cpp.

◆ operator &=()

I2CRegister& esphome::i2c::I2CRegister::operator&= ( uint8_t  value)

◆ operator=() [1/2]

I2CRegister & esphome::i2c::I2CRegister::operator= ( uint8_t  value)

Definition at line 211 of file i2c.cpp.

◆ operator=() [2/2]

I2CRegister & esphome::i2c::I2CRegister::operator= ( const std::vector< uint8_t > &  value)

Definition at line 231 of file i2c.cpp.

◆ operator|=()

I2CRegister & esphome::i2c::I2CRegister::operator|= ( uint8_t  value)

Definition at line 221 of file i2c.cpp.

Field Documentation

◆ parent_

I2CDevice* esphome::i2c::I2CRegister::parent_
protected

Definition at line 151 of file i2c.h.

◆ register_

uint8_t esphome::i2c::I2CRegister::register_
protected

Definition at line 152 of file i2c.h.


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