HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
esp32_bno08x_test_config.hpp File Reference

Hardware configuration for BNO08x driver on ESP32-S3. More...

#include <cstdint>
Include dependency graph for esp32_bno08x_test_config.hpp:

Go to the source code of this file.

Classes

struct  BNO08x_TestConfig::I2CPins
 I2C Pin Configuration for ESP32-S3. More...
 
struct  BNO08x_TestConfig::ControlPins
 Control GPIO Pins for BNO08x. More...
 
struct  BNO08x_TestConfig::I2CParams
 I2C Communication Parameters. More...
 
struct  BNO08x_TestConfig::SensorSpecs
 Sensor Specifications. More...
 
struct  BNO08x_TestConfig::SupplyVoltage
 Supply Voltage Specifications (volts) More...
 
struct  BNO08x_TestConfig::Temperature
 Temperature Specifications (celsius) More...
 
struct  BNO08x_TestConfig::Timing
 Timing Parameters. More...
 
struct  BNO08x_TestConfig::Diagnostics
 Diagnostic Thresholds. More...
 
struct  BNO08x_TestConfig::TestConfig
 Test Configuration. More...
 
struct  BNO08x_TestConfig::AppConfig
 Application-specific Configuration. More...
 

Namespaces

namespace  BNO08x_TestConfig
 

Macros

#define ESP32_BNO08X_ENABLE_DETAILED_I2C_LOGGING   0
 Enable detailed I2C transaction logging.
 
#define BNO08X_VALIDATE_GPIO(pin)    static_assert((pin) >= 0 && (pin) < 49, "Invalid GPIO pin number for ESP32-S3")
 Hardware configuration validation.
 

Detailed Description

Hardware configuration for BNO08x driver on ESP32-S3.

This file contains the actual hardware configuration that is used by the HAL and example applications. Modify these values to match your hardware setup.

Macro Definition Documentation

◆ BNO08X_VALIDATE_GPIO

#define BNO08X_VALIDATE_GPIO ( pin)     static_assert((pin) >= 0 && (pin) < 49, "Invalid GPIO pin number for ESP32-S3")

Hardware configuration validation.

Compile-time checks to ensure configuration is valid.

Helper macro for compile-time GPIO pin validation

◆ ESP32_BNO08X_ENABLE_DETAILED_I2C_LOGGING

#define ESP32_BNO08X_ENABLE_DETAILED_I2C_LOGGING   0

Enable detailed I2C transaction logging.

When enabled (set to 1), the Esp32Bno08xI2cBus will log detailed information about each I2C transaction including:

  • TX/RX byte contents
  • SH-2 packet header parsing
  • Clock stretching events

When disabled (set to 0), only basic error logging is performed.

Default: 0 (disabled) - Set to 1 to enable for debugging