HardFOC Core
API reference
Loading...
Searching...
No Matches
Functions
anonymous_namespace{Bno08xHandler.cpp} Namespace Reference

Functions

void PrepareResetPin (BaseGpio *reset_gpio) noexcept
 Configure RSTN as an active-low output (idempotent).
 
bool DriveResetPin (BaseGpio *reset_gpio, bno08x::GpioSignal signal) noexcept
 

Function Documentation

◆ DriveResetPin()

bool anonymous_namespace{Bno08xHandler.cpp}::DriveResetPin ( BaseGpio *  reset_gpio,
bno08x::GpioSignal  signal 
)
noexcept
Returns
true when the pin was driven, or is not wired (nothing to drive).

◆ PrepareResetPin()

void anonymous_namespace{Bno08xHandler.cpp}::PrepareResetPin ( BaseGpio *  reset_gpio)
noexcept

Configure RSTN as an active-low output (idempotent).

Bno08xHandler::Initialize() pulses RSTN (HardwareReset) before Begin() opens the link, so the pin must be usable before Open() runs. Without this the first reset pulse was dropped: the pin was not yet initialized and SetState() returned GPIO_ERR_NOT_INITIALIZED.