HardFOC Core
API reference
Loading...
Searching...
No Matches
Public Member Functions | List of all members
IBno08xDriverOps Class Referenceabstract

Internal abstract interface for type-erasing the BNO085<CommType> template. More...

#include <Bno08xHandler.h>

Inheritance diagram for IBno08xDriverOps:
Bno08xDriverImpl< CommType >

Public Member Functions

virtual ~IBno08xDriverOps () noexcept=default
 
virtual bool Begin () noexcept=0
 
virtual void Update () noexcept=0
 
virtual bool EnableSensor (BNO085Sensor sensor, uint32_t interval_ms, float sensitivity) noexcept=0
 
virtual bool DisableSensor (BNO085Sensor sensor) noexcept=0
 
virtual void SetCallback (SensorCallback cb) noexcept=0
 
virtual bool HasNewData (BNO085Sensor sensor) const noexcept=0
 
virtual SensorEvent GetLatest (BNO085Sensor sensor) const noexcept=0
 
virtual int GetLastError () const noexcept=0
 
virtual bool HardwareReset (uint32_t lowMs) noexcept=0
 Pin calls return false when the port could not drive a pin (GPIO error).
 
virtual bool SetBootPin (bool state) noexcept=0
 
virtual bool SetWakePin (bool state) noexcept=0
 
virtual bool SelectInterface (BNO085Interface iface) noexcept=0
 
virtual BNO085Interface GetInterfaceType () noexcept=0
 

Detailed Description

Internal abstract interface for type-erasing the BNO085<CommType> template.

This enables the handler to work with both I2C and SPI transports without exposing template parameters to handler users.

Constructor & Destructor Documentation

◆ ~IBno08xDriverOps()

virtual IBno08xDriverOps::~IBno08xDriverOps ( )
virtualdefaultnoexcept

Member Function Documentation

◆ Begin()

virtual bool IBno08xDriverOps::Begin ( )
pure virtualnoexcept

◆ DisableSensor()

virtual bool IBno08xDriverOps::DisableSensor ( BNO085Sensor  sensor)
pure virtualnoexcept

◆ EnableSensor()

virtual bool IBno08xDriverOps::EnableSensor ( BNO085Sensor  sensor,
uint32_t  interval_ms,
float  sensitivity 
)
pure virtualnoexcept

◆ GetInterfaceType()

virtual BNO085Interface IBno08xDriverOps::GetInterfaceType ( )
pure virtualnoexcept

◆ GetLastError()

virtual int IBno08xDriverOps::GetLastError ( ) const
pure virtualnoexcept

◆ GetLatest()

virtual SensorEvent IBno08xDriverOps::GetLatest ( BNO085Sensor  sensor) const
pure virtualnoexcept

◆ HardwareReset()

virtual bool IBno08xDriverOps::HardwareReset ( uint32_t  lowMs)
pure virtualnoexcept

Pin calls return false when the port could not drive a pin (GPIO error).

Implemented in Bno08xDriverImpl< CommType >.

◆ HasNewData()

virtual bool IBno08xDriverOps::HasNewData ( BNO085Sensor  sensor) const
pure virtualnoexcept

◆ SelectInterface()

virtual bool IBno08xDriverOps::SelectInterface ( BNO085Interface  iface)
pure virtualnoexcept

◆ SetBootPin()

virtual bool IBno08xDriverOps::SetBootPin ( bool  state)
pure virtualnoexcept

◆ SetCallback()

virtual void IBno08xDriverOps::SetCallback ( SensorCallback  cb)
pure virtualnoexcept

◆ SetWakePin()

virtual bool IBno08xDriverOps::SetWakePin ( bool  state)
pure virtualnoexcept

◆ Update()

virtual void IBno08xDriverOps::Update ( )
pure virtualnoexcept

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