HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
bno08x Namespace Reference

Classes

class  CommInterface
 CRTP base class for BNO08x communication interfaces. More...
 

Enumerations

enum class  CtrlPin : uint8_t {
  RSTN = 0 , BOOTN , WAKE , PS0 ,
  PS1
}
 Identifies the hardware control pins of the BNO08x. More...
 
enum class  GpioSignal : uint8_t { INACTIVE = 0 , ACTIVE = 1 }
 Abstract signal level for control pins. More...
 

Enumeration Type Documentation

◆ CtrlPin

enum class bno08x::CtrlPin : uint8_t
strong

Identifies the hardware control pins of the BNO08x.

Used with GpioSet() / GpioSetActive() / GpioSetInactive() to control the sensor's dedicated GPIO pins through the CommInterface.

The mapping from GpioSignal::ACTIVE / INACTIVE to physical HIGH / LOW is determined by the platform bus implementation, based on the board's active-level design:

  • RSTN: Active-low (ACTIVE → physical LOW, asserts reset)
  • BOOTN: Active-low (ACTIVE → physical LOW, enters bootloader)
  • WAKE: Active-low (ACTIVE → physical LOW, wakes sensor from suspend)
  • PS0: Active-high (ACTIVE → physical HIGH, PS0 = 1)
  • PS1: Active-high (ACTIVE → physical HIGH, PS1 = 1)
Enumerator
RSTN 

Hardware reset (active-low on the physical pin)

BOOTN 

Bootloader entry (active-low on the physical pin)

WAKE 

Wake from suspend, SPI mode only (active-low on the physical pin)

PS0 

Protocol select bit 0 (active-high on the physical pin)

PS1 

Protocol select bit 1 (active-high on the physical pin)

◆ GpioSignal

enum class bno08x::GpioSignal : uint8_t
strong

Abstract signal level for control pins.

Decouples the driver's intent from the physical pin polarity. The platform bus implementation translates ACTIVE / INACTIVE to the correct electrical level for each pin.

Enumerator
INACTIVE 

Pin function is deasserted.

ACTIVE 

Pin function is asserted.