SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
sensorlib Namespace Reference

Functions

constexpr uint32_t _bv (uint8_t b)
 
constexpr uint8_t _lowByte (uint16_t w)
 
constexpr uint8_t _highByte (uint16_t w)
 
template<typename T >
constexpr T _bitRead (T value, uint8_t bit)
 
template<typename T >
void _bitSet (T &value, uint8_t bit)
 
template<typename T >
void _bitClear (T &value, uint8_t bit)
 
template<typename T >
void _bitToggle (T &value, uint8_t bit)
 
template<typename T >
void _bitWrite (T &value, uint8_t bit, bool bitvalue)
 
template<typename T >
constexpr bool _isBitSet (T value, uint8_t bit)
 

Function Documentation

◆ _bitClear()

template<typename T >
void sensorlib::_bitClear ( T &  value,
uint8_t  bit 
)
inline

Definition at line 93 of file SensorLib.h.

Referenced by _bitWrite(), and SensorCM32181::powerOn().

◆ _bitRead()

template<typename T >
constexpr T sensorlib::_bitRead ( value,
uint8_t  bit 
)
constexpr

Definition at line 81 of file SensorLib.h.

Referenced by SensorCM32181::getIrqStatus().

◆ _bitSet()

template<typename T >
void sensorlib::_bitSet ( T &  value,
uint8_t  bit 
)
inline

Definition at line 87 of file SensorLib.h.

Referenced by _bitWrite(), and SensorCM32181::powerDown().

◆ _bitToggle()

template<typename T >
void sensorlib::_bitToggle ( T &  value,
uint8_t  bit 
)
inline

Definition at line 99 of file SensorLib.h.

◆ _bitWrite()

template<typename T >
void sensorlib::_bitWrite ( T &  value,
uint8_t  bit,
bool  bitvalue 
)
inline

Definition at line 105 of file SensorLib.h.

References _bitClear(), and _bitSet().

Referenced by SensorCM32181::disableINT(), and SensorCM32181::enableINT().

◆ _bv()

constexpr uint32_t sensorlib::_bv ( uint8_t  b)
constexpr

◆ _highByte()

◆ _isBitSet()

template<typename T >
constexpr bool sensorlib::_isBitSet ( value,
uint8_t  bit 
)
constexpr

◆ _lowByte()