ESPHome  2023.11.6
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

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 

Definition at line 28 of file i2c.h.

Member Function Documentation

◆ get()

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

Definition at line 75 of file i2c.cpp.

◆ operator &=()

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

◆ operator uint8_t()

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

Definition at line 21 of file i2c.h.

◆ operator=()

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

Definition at line 60 of file i2c.cpp.

◆ operator|=()

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

Definition at line 69 of file i2c.cpp.

Field Documentation

◆ parent_

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

Definition at line 30 of file i2c.h.

◆ register_

uint8_t esphome::i2c::I2CRegister::register_

Definition at line 31 of file i2c.h.

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