MHZ19::PwmReader::Pulse Union Reference

Used internally to measure a high/low pulse pair. More...

#include <PwmReader.h>

Collaboration diagram for MHZ19::PwmReader::Pulse:

Public Member Functions

uint16_t getCycleTime () const
 
bool isValid () const
 
uint16_t calculatePpm (DetectionRange range)
 

Public Attributes

struct {
   uint16_t   low
 
   uint16_t   high
 
}; 
 
uint32_t value
 

Detailed Description

Used internally to measure a high/low pulse pair.

Member Function Documentation

◆ calculatePpm()

uint16_t MHZ19::PwmReader::Pulse::calculatePpm ( DetectionRange  range)
inline

◆ getCycleTime()

uint16_t MHZ19::PwmReader::Pulse::getCycleTime ( ) const
inline

◆ isValid()

bool MHZ19::PwmReader::Pulse::isValid ( ) const
inline

Member Data Documentation

◆ 

struct { ... }

◆ high

uint16_t MHZ19::PwmReader::Pulse::high

◆ low

uint16_t MHZ19::PwmReader::Pulse::low

◆ value

uint32_t MHZ19::PwmReader::Pulse::value

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