6 #include "../ens160_base/ens160_base.h" 11 static const char *
const TAG =
"ens160_i2c.sensor";
13 bool ENS160I2CComponent::read_byte(uint8_t a_register, uint8_t *data) {
14 return I2CDevice::read_byte(a_register, data);
16 bool ENS160I2CComponent::write_byte(uint8_t a_register, uint8_t data) {
17 return I2CDevice::write_byte(a_register, data);
19 bool ENS160I2CComponent::read_bytes(uint8_t a_register, uint8_t *data,
size_t len) {
20 return I2CDevice::read_bytes(a_register, data, len);
22 bool ENS160I2CComponent::write_bytes(uint8_t a_register, uint8_t *data,
size_t len) {
23 return I2CDevice::write_bytes(a_register, data, len);
26 void ENS160I2CComponent::dump_config() {
27 ENS160Component::dump_config();
Implementation of SPI Controller mode.