SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorBHI260AP Class Referencefinal

#include <SensorBHI260AP.hpp>

Inheritance diagram for SensorBHI260AP:
[legend]

Public Types

enum  BHI260AP_GPIO {
  MCSB1 = 1 , RESV1 = 2 , RESV2 = 3 , MCSB2 = 4 ,
  MCSB3 = 5 , MCSB4 = 6 , QSPI_CLK = 8 , QSPI_CSN = 9 ,
  QSPI_D0 = 10 , QSPI_D1 = 11 , QSPI_D2 = 12 , QSPI_D3 = 13 ,
  M2SCX = 14 , M2SDX = 15 , M2SDI = 16 , M3SCL = 17 ,
  M3SDA = 18 , JTAG_CLK = 19 , JTAG_DIO = 20 , M1SCX = 127 ,
  M1SDX = 128 , M1SDI = 129 , RESV3 = 130
}
 

Public Member Functions

 ~SensorBHI260AP ()=default
 
 SensorBHI260AP ()=default
 
void setBootFromFlash (bool boot_from_flash)
 setBootFromFlash
 
uint8_t digitalRead (uint8_t pin, bool pullup=false)
 digitalRead
 
void digitalWrite (uint8_t pin, uint8_t level)
 digitalWrite
 
void disableGpio (uint8_t pin)
 disableGpio
 

Protected Member Functions

uint16_t getConfirmationIDImpl () override
 Get the confirmation ID for the sensor.
 

Detailed Description

Definition at line 44 of file sensor/imu/bhi260/SensorBHI260AP.hpp.

Member Enumeration Documentation

◆ BHI260AP_GPIO

Enumerator
MCSB1 
RESV1 
RESV2 
MCSB2 
MCSB3 
MCSB4 
QSPI_CLK 
QSPI_CSN 
QSPI_D0 
QSPI_D1 
QSPI_D2 
QSPI_D3 
M2SCX 
M2SDX 
M2SDI 
M3SCL 
M3SDA 
JTAG_CLK 
JTAG_DIO 
M1SCX 
M1SDX 
M1SDI 
RESV3 

Definition at line 49 of file sensor/imu/bhi260/SensorBHI260AP.hpp.

Constructor & Destructor Documentation

◆ ~SensorBHI260AP()

SensorBHI260AP::~SensorBHI260AP ( )
default

◆ SensorBHI260AP()

SensorBHI260AP::SensorBHI260AP ( )
default

Member Function Documentation

◆ digitalRead()

uint8_t SensorBHI260AP::digitalRead ( uint8_t  pin,
bool  pullup = false 
)

digitalRead

Note
Read GPIO level, only for custom firmware
Parameters
pinsee BHI260AP_aux_BMM150_BME280_Expand_GPIO example
pulluptrue is set pullup or input mode
Return values
1is high ,0 is low

Definition at line 40 of file SensorBHI260AP.cpp.

References JTAG_DIO, and level.

Referenced by getGpioLevel().

◆ digitalWrite()

void SensorBHI260AP::digitalWrite ( uint8_t  pin,
uint8_t  level 
)

digitalWrite

Note
Write GPIO level, only for custom firmware
Parameters
pinsee BHI260AP_aux_BMM150_BME280_Expand_GPIO example
level1 is high ,0 is low
Return values
None

Definition at line 58 of file SensorBHI260AP.cpp.

References JTAG_DIO, and level.

Referenced by setGpioLevel().

◆ disableGpio()

void SensorBHI260AP::disableGpio ( uint8_t  pin)

disableGpio

Note
Disable GPIO function
Parameters
pinsee BHI260AP_aux_BMM150_BME280_Expand_GPIO example
Return values
None

Definition at line 65 of file SensorBHI260AP.cpp.

References JTAG_DIO.

Referenced by disGpioMode().

◆ getConfirmationIDImpl()

uint16_t SensorBHI260AP::getConfirmationIDImpl ( )
overrideprotected

Get the confirmation ID for the sensor.

Note
This ID is used to confirm the sensor's identity during communication.
Return values
Theconfirmation ID.

Definition at line 72 of file SensorBHI260AP.cpp.

◆ setBootFromFlash()

void SensorBHI260AP::setBootFromFlash ( bool  boot_from_flash)

setBootFromFlash

Note
Set whether to start from external flash
Parameters
boot_from_flashtrue boot form flash or boot form ram
Return values
None

Definition at line 35 of file SensorBHI260AP.cpp.

Referenced by setup().


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