9namespace pi4ioe5v6408 {
16 void setup()
override;
51 void setup()
override;
Helper class to easily give an object a parent of type T.
A class to cache the read state of a GPIO expander.
This Class provides the methods to read/write bytes from/to an i2c device.
bool digital_read_hw(uint8_t pin) override
bool read_gpio_outputs_()
void dump_config() override
uint8_t pull_enable_mask_
The mask to write as input buffer state - 1 means enabled, 0 means disabled.
uint8_t output_mask_
The mask to write as output state - 1 means HIGH, 0 means LOW.
uint8_t pull_up_down_mask_
The mask to write as pullup state - 1 means pullup, 0 means pulldown.
bool digital_read_cache(uint8_t pin) override
void digital_write_hw(uint8_t pin, bool value) override
PI4IOE5V6408Component()=default
uint8_t input_mask_
The state read in digital_read_hw - 1 means HIGH, 0 means LOW.
uint8_t mode_mask_
Mask for the pin mode - 1 means output, 0 means input.
void pin_mode(uint8_t pin, gpio::Flags flags)
float get_setup_priority() const override
void set_reset(bool reset)
Indicate if the component should reset the state during setup.
void digital_write(bool value) override
void pin_mode(gpio::Flags flags) override
std::string dump_summary() const override
void set_inverted(bool inverted)
void set_flags(gpio::Flags flags)
bool digital_read() override
void set_pin(uint8_t pin)
gpio::Flags get_flags() const override
Providing packet encoding functions for exchanging data with a remote host.