HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
BNO08x_TestConfig::I2CParams Struct Reference

I2C Communication Parameters. More...

#include <esp32_bno08x_test_config.hpp>

Static Public Attributes

static constexpr uint32_t FREQUENCY = 400000
 400kHz I2C frequency (Fast Mode)
 
static constexpr uint8_t DEVICE_ADDRESS = 0x4B
 7-bit I2C address (SA0=HIGH)
 
static constexpr uint8_t ALT_ADDRESS = 0x4A
 Alternative address (SA0=LOW)
 
static constexpr uint32_t SCL_WAIT_US = 50000
 Clock stretching timeout (50ms)
 
static constexpr bool PULLUP_ENABLE = true
 Enable internal pullups.
 

Detailed Description

I2C Communication Parameters.

The BNO08x supports I2C frequencies up to 400kHz (Fast Mode).

I2C Addressing (per BNO08x datasheet):

  • 0x4B when SA0 = HIGH (default)
  • 0x4A when SA0 = LOW

Clock stretching: BNO08x can hold SCL low when data is not ready. scl_wait_us must be long enough to accommodate this (50ms recommended).

Member Data Documentation

◆ ALT_ADDRESS

constexpr uint8_t BNO08x_TestConfig::I2CParams::ALT_ADDRESS = 0x4A
staticconstexpr

Alternative address (SA0=LOW)

◆ DEVICE_ADDRESS

constexpr uint8_t BNO08x_TestConfig::I2CParams::DEVICE_ADDRESS = 0x4B
staticconstexpr

7-bit I2C address (SA0=HIGH)

◆ FREQUENCY

constexpr uint32_t BNO08x_TestConfig::I2CParams::FREQUENCY = 400000
staticconstexpr

400kHz I2C frequency (Fast Mode)

◆ PULLUP_ENABLE

constexpr bool BNO08x_TestConfig::I2CParams::PULLUP_ENABLE = true
staticconstexpr

Enable internal pullups.

◆ SCL_WAIT_US

constexpr uint32_t BNO08x_TestConfig::I2CParams::SCL_WAIT_US = 50000
staticconstexpr

Clock stretching timeout (50ms)


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