15 void setup()
override;
20 size_t read_count)
override;
ErrorCode map_errno_to_error_code_(int err)
void set_device(const std::string &device)
float get_setup_priority() const override
void update_error_(const std::string &error)
const std::string & get_device() const
void set_frequency(uint32_t frequency)
ErrorCode write_readv(uint8_t address, const uint8_t *write_buffer, size_t write_count, uint8_t *read_buffer, size_t read_count) override
void dump_config() override
This Class provides the methods to read and write bytes from an I2CBus.
bool scan_
Should we scan ? Can be set in the yaml.
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
constexpr float BUS
For communication buses like i2c/spi.