7 namespace mcp23xxx_base {
23 virtual bool read_reg(uint8_t reg, uint8_t *value);
25 virtual bool write_reg(uint8_t reg, uint8_t value);
27 virtual void update_reg(uint8_t pin,
bool pin_value, uint8_t reg_a);
34 void setup()
override;
38 std::string dump_summary()
const override;
void set_parent(MCP23XXXBase *parent)
void set_interrupt_mode(MCP23XXXInterruptMode interrupt_mode)
virtual bool write_reg(uint8_t reg, uint8_t value)
void set_flags(gpio::Flags flags)
void set_open_drain_ints(const bool value)
virtual void setup()
Where the component's initialization should happen.
MCP23XXXInterruptMode interrupt_mode_
virtual void pin_interrupt_mode(uint8_t pin, MCP23XXXInterruptMode interrupt_mode)
virtual void update_reg(uint8_t pin, bool pin_value, uint8_t reg_a)
virtual void pin_mode(uint8_t pin, gpio::Flags flags)
void set_pin(uint8_t pin)
virtual bool read_reg(uint8_t reg, uint8_t *value)
Implementation of SPI Controller mode.
virtual bool digital_read(uint8_t pin)
virtual void digital_write(uint8_t pin, bool value)
float get_setup_priority() const override
void set_inverted(bool inverted)