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

#include <SensorErrorMixin.hpp>

Inheritance diagram for SensorErrorMixin:
[legend]

Public Member Functions

SENSOR_ERROR_CODE lastError () const
 
void clearError ()
 

Protected Member Functions

void setError (SENSOR_ERROR_CODE e)
 
SENSOR_ERROR_CODE setErrorAndReturn (SENSOR_ERROR_CODE e)
 

Detailed Description

Definition at line 33 of file SensorErrorMixin.hpp.

Member Function Documentation

◆ clearError()

void SensorErrorMixin::clearError ( )
inline

Definition at line 40 of file SensorErrorMixin.hpp.

References SENSOR_OK.

◆ lastError()

SENSOR_ERROR_CODE SensorErrorMixin::lastError ( ) const
inline

Definition at line 36 of file SensorErrorMixin.hpp.

◆ setError()

void SensorErrorMixin::setError ( SENSOR_ERROR_CODE  e)
inlineprotected

Definition at line 46 of file SensorErrorMixin.hpp.

Referenced by setErrorAndReturn().

◆ setErrorAndReturn()

SENSOR_ERROR_CODE SensorErrorMixin::setErrorAndReturn ( SENSOR_ERROR_CODE  e)
inlineprotected

Definition at line 50 of file SensorErrorMixin.hpp.

References setError().


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