ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsSHT31_RHUM Class Reference

#include <ngcdcsSENS.hpp>

Inheritance diagram for ngcdcsSHT31_RHUM:
ngcdcsSENS

Public Member Functions

 ngcdcsSHT31_RHUM (int filterSize=9)
 
virtual ~ngcdcsSHT31_RHUM ()
 Destructor.
 
- Public Member Functions inherited from ngcdcsSENS
ngcdcsSENSoperator= (const ngcdcsSENS &other)
 Operator =.
 
 ngcdcsSENS (int filterSize=9)
 Constructor.
 
 ngcdcsSENS (const ngcdcsSENS &other)
 Copy constructor.
 
virtual ~ngcdcsSENS ()
 Destructor.
 
void AttachLogging (ngcbOBJ *obj)
 Attach logging system.
 
char * ErrMsg ()
 Error message.
 
void Prefix (const char *s)
 Set prefix for logging and alarm system.
 
void Reset ()
 Reset errors and alarms.
 
void ClearFilter (int prefill)
 Clear sensor filter.
 
int FilterStatus ()
 Get filter status (return 1 if filter is filled with valid data)
 
int Process (const int *r, ngcbALARM_SYS *alarmSystem)
 Process sensor register(s)
 

Protected Member Functions

int Value (const int *r, double *data)
 Compute sensor data from register.
 
- Protected Member Functions inherited from ngcdcsSENS
void OpsLog (const char *msg)
 Operational log.
 

Additional Inherited Members

- Public Attributes inherited from ngcdcsSENS
double value
 Sensor value.
 
int error
 Sensor error flag.
 
int active
 Sensor enabled.
 
int faults
 Number of faulty sensor reads.
 
ngcdcs_rck_t rck
 Range-check.
 
char unit [8]
 Sensor unit.
 
char format [8]
 Sensor data format (floating point precision)
 
char name [32]
 Sensor name.
 
ngcbMEDIANfilter
 Median filter for sensor.
 
- Protected Attributes inherited from ngcdcsSENS
int valid
 Sensor data valid (flag)
 

Detailed Description

SENSIRION SHT31 relative humidity sensor class

Constructor & Destructor Documentation

◆ ngcdcsSHT31_RHUM()

ngcdcsSHT31_RHUM::ngcdcsSHT31_RHUM ( int filterSize = 9)
explicit

◆ ~ngcdcsSHT31_RHUM()

ngcdcsSHT31_RHUM::~ngcdcsSHT31_RHUM ( )
virtual

Destructor.

Member Function Documentation

◆ Value()

int ngcdcsSHT31_RHUM::Value ( const int * r,
double * data )
protectedvirtual

Compute sensor data from register.

Reimplemented from ngcdcsSENS.


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