Library for basic air data calculations  0.5b
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SSC Class Reference

#include <SSC.h>

Public Types

enum  Error {
  NoError = 0, ConnectionError = 1, CommunicationError = 2, NotRunningError = 3,
  DiagnosticError = 4, CommandModeError = 5, ErrorMask = 15
}
 
enum  Flag { RunningFlag = 128, FlagsMask = ~ErrorMask }
 

Public Member Functions

 SSC (uint8_t address, uint8_t busno=10)
 
uint8_t address () const
 
uint8_t busno () const
 
uint8_t error () const
 
uint8_t flags () const
 
bool isRunning () const
 
float minPressure () const
 
void setMinPressure (float p)
 
float maxPressure () const
 
void setMaxPressure (float p)
 
uint16_t minRaw () const
 
void setMinRaw (uint16_t raw)
 
uint16_t maxRaw () const
 
void setMaxRaw (uint16_t raw)
 
uint16_t pressure_Raw () const
 
uint16_t temperature_Raw () const
 
float pressure () const
 
float temperature () const
 
uint8_t update ()
 
float rawToPressure (uint16_t raw) const
 
uint8_t commandRequest (Stream &stream)
 

Static Public Member Functions

static float rawToPressure (uint16_t raw, uint16_t rawMin, uint16_t rawMax, float pMin, float pMax)
 
static float rawToTemperature (uint16_t raw)
 

Member Enumeration Documentation

◆ Error

enum SSC::Error
Enumerator
NoError 
ConnectionError 
CommunicationError 
NotRunningError 
DiagnosticError 
CommandModeError 
ErrorMask 

◆ Flag

enum SSC::Flag
Enumerator
RunningFlag 
FlagsMask 

Constructor & Destructor Documentation

◆ SSC()

SSC::SSC ( uint8_t  address,
uint8_t  busno = 10 
)

Member Function Documentation

◆ address()

uint8_t SSC::address ( ) const
inline

◆ busno()

uint8_t SSC::busno ( ) const
inline

◆ commandRequest()

uint8_t SSC::commandRequest ( Stream &  stream)

◆ error()

uint8_t SSC::error ( ) const
inline

◆ flags()

uint8_t SSC::flags ( ) const
inline

◆ isRunning()

bool SSC::isRunning ( ) const
inline

◆ maxPressure()

float SSC::maxPressure ( ) const
inline

◆ maxRaw()

uint16_t SSC::maxRaw ( ) const
inline

◆ minPressure()

float SSC::minPressure ( ) const
inline

◆ minRaw()

uint16_t SSC::minRaw ( ) const
inline

◆ pressure()

float SSC::pressure ( ) const
inline

◆ pressure_Raw()

uint16_t SSC::pressure_Raw ( ) const
inline

◆ rawToPressure() [1/2]

float SSC::rawToPressure ( uint16_t  raw) const
inline

◆ rawToPressure() [2/2]

static float SSC::rawToPressure ( uint16_t  raw,
uint16_t  rawMin,
uint16_t  rawMax,
float  pMin,
float  pMax 
)
inlinestatic

◆ rawToTemperature()

static float SSC::rawToTemperature ( uint16_t  raw)
inlinestatic

◆ setMaxPressure()

void SSC::setMaxPressure ( float  p)
inline

◆ setMaxRaw()

void SSC::setMaxRaw ( uint16_t  raw)
inline

◆ setMinPressure()

void SSC::setMinPressure ( float  p)
inline

◆ setMinRaw()

void SSC::setMinRaw ( uint16_t  raw)
inline

◆ temperature()

float SSC::temperature ( ) const
inline

◆ temperature_Raw()

uint16_t SSC::temperature_Raw ( ) const
inline

◆ update()

uint8_t SSC::update ( )

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