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

#include <i2c.h>

Public Member Functions

I2CRegisteroperator= (uint8_t value)
 
I2CRegisteroperator &= (uint8_t value)
 
I2CRegisteroperator|= (uint8_t value)
 
 operator uint8_t () const
 
uint8_t get () const
 

Protected Member Functions

 I2CRegister (I2CDevice *parent, uint8_t a_register)
 

Protected Attributes

I2CDeviceparent_
 
uint8_t register_
 

Detailed Description

Definition at line 15 of file i2c.h.

Constructor & Destructor Documentation

◆ I2CRegister()

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

Definition at line 28 of file i2c.h.

Member Function Documentation

◆ get()

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

Definition at line 33 of file i2c.cpp.

◆ operator &=()

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

◆ operator uint8_t()

esphome::i2c::I2CRegister::operator uint8_t ( ) const
inlineexplicit

Definition at line 21 of file i2c.h.

◆ operator=()

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

Definition at line 18 of file i2c.cpp.

◆ operator|=()

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

Definition at line 27 of file i2c.cpp.

Field Documentation

◆ parent_

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

Definition at line 30 of file i2c.h.

◆ register_

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

Definition at line 31 of file i2c.h.


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