HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
Esp32Bno08xI2cBus::I2CConfig Struct Reference

I2C bus and device configuration structure. More...

#include <esp32_bno08x_bus.hpp>

Public Attributes

i2c_port_t port = I2C_NUM_0
 I2C port number.
 
gpio_num_t sda_pin = GPIO_NUM_4
 SDA pin (default GPIO4, same as pcal95555/pca9685)
 
gpio_num_t scl_pin = GPIO_NUM_5
 SCL pin (default GPIO5, same as pcal95555/pca9685)
 
uint32_t frequency = 400000
 I2C frequency in Hz (default 400kHz)
 
uint8_t device_address
 7-bit I2C device address (default 0x4B, SA0=HIGH; 0x4A if SA0=LOW)
 
bool pullup_enable = true
 Enable internal pullups.
 
gpio_num_t int_pin = GPIO_NUM_17
 Interrupt pin (default GPIO17, GPIO_NUM_NC if not used)
 
gpio_num_t rst_pin = GPIO_NUM_16
 Reset pin (default GPIO16, GPIO_NUM_NC if not used)
 

Detailed Description

I2C bus and device configuration structure.

Member Data Documentation

◆ device_address

uint8_t Esp32Bno08xI2cBus::I2CConfig::device_address
Initial value:
=
0x4B

7-bit I2C device address (default 0x4B, SA0=HIGH; 0x4A if SA0=LOW)

◆ frequency

uint32_t Esp32Bno08xI2cBus::I2CConfig::frequency = 400000

I2C frequency in Hz (default 400kHz)

◆ int_pin

gpio_num_t Esp32Bno08xI2cBus::I2CConfig::int_pin = GPIO_NUM_17

Interrupt pin (default GPIO17, GPIO_NUM_NC if not used)

◆ port

i2c_port_t Esp32Bno08xI2cBus::I2CConfig::port = I2C_NUM_0

I2C port number.

◆ pullup_enable

bool Esp32Bno08xI2cBus::I2CConfig::pullup_enable = true

Enable internal pullups.

◆ rst_pin

gpio_num_t Esp32Bno08xI2cBus::I2CConfig::rst_pin = GPIO_NUM_16

Reset pin (default GPIO16, GPIO_NUM_NC if not used)

◆ scl_pin

gpio_num_t Esp32Bno08xI2cBus::I2CConfig::scl_pin = GPIO_NUM_5

SCL pin (default GPIO5, same as pcal95555/pca9685)

◆ sda_pin

gpio_num_t Esp32Bno08xI2cBus::I2CConfig::sda_pin = GPIO_NUM_4

SDA pin (default GPIO4, same as pcal95555/pca9685)


The documentation for this struct was generated from the following file: