PiStorms  4.012
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
mindsensors.PPS58 Class Reference

PPS58: this class provides functions for PPS58 from mindsensors.com for read and write operations. More...

Inheritance diagram for mindsensors.PPS58:

Public Member Functions

def __init__
 Initialize the class with the i2c address of your PPS58. More...
 
def command
 Writes a value to the command register. More...
 
def get_unit
 Reads a value assigned to the unit of pressure cureently in use on the PPS58. More...
 
def get_absolute
 Reads the absolute pressure of the PPS58. More...
 
def get_gauge
 Reads the gauge, or relative, pressure of the PPS58. More...
 
def get_reference
 Reads the reference pressure of the PPS58. More...
 
def get_raw
 Reads the raw pressure value of the PPS58. More...
 
def set_reference
 Sets the reference pressure to the current absolute pressure value. More...
 
def set_unit_PSI
 Sets the unit of measure to pounds per square inch. More...
 
def set_unit_mbar
 Sets the unit of measure to millibar. More...
 
def set_unit_kpascal
 Sets the unit of measure to kilopascal. More...
 

Static Public Attributes

tuple PPS58_ADDRESS = (0x18)
 Default PPS58 I2C Address.
 
int COMMAND = 0x41
 Command Register.
 
int UNIT = 0x42
 Unit Register. More...
 
int ABS = 0x43
 Absolute Pressure Register. More...
 
int GAUGE = 0x45
 Gauge (Relative) Pressure Register. More...
 
int REF = 0x47
 Reference Pressure Register. More...
 
int RAW = 0x53
 Raw Pressure Register. More...
 

Detailed Description

PPS58: this class provides functions for PPS58 from mindsensors.com for read and write operations.

Constructor & Destructor Documentation

def mindsensors.PPS58.__init__ (   self,
  pps58_address = PPS58_ADDRESS 
)

Initialize the class with the i2c address of your PPS58.

Parameters
selfThe object pointer.
pps58_addressAddress of your PPS58.

Member Function Documentation

def mindsensors.PPS58.command (   self,
  cmd 
)

Writes a value to the command register.

Parameters
selfThe object pointer.
cmdValue to write to the command register.
def mindsensors.PPS58.get_absolute (   self)

Reads the absolute pressure of the PPS58.

Parameters
selfThe object pointer.
def mindsensors.PPS58.get_gauge (   self)

Reads the gauge, or relative, pressure of the PPS58.

Parameters
selfThe object pointer.
def mindsensors.PPS58.get_raw (   self)

Reads the raw pressure value of the PPS58.

Parameters
selfThe object pointer.
def mindsensors.PPS58.get_reference (   self)

Reads the reference pressure of the PPS58.

Parameters
selfThe object pointer.
def mindsensors.PPS58.get_unit (   self)

Reads a value assigned to the unit of pressure cureently in use on the PPS58.

Parameters
selfThe object pointer.
def mindsensors.PPS58.set_reference (   self)

Sets the reference pressure to the current absolute pressure value.

Parameters
selfThe object pointer.
def mindsensors.PPS58.set_unit_kpascal (   self)

Sets the unit of measure to kilopascal.

Parameters
selfThe object pointer.
def mindsensors.PPS58.set_unit_mbar (   self)

Sets the unit of measure to millibar.

Parameters
selfThe object pointer.
def mindsensors.PPS58.set_unit_PSI (   self)

Sets the unit of measure to pounds per square inch.

Parameters
selfThe object pointer.

Member Data Documentation

int mindsensors.PPS58.ABS = 0x43
static

Absolute Pressure Register.

Will return an integer value

int mindsensors.PPS58.GAUGE = 0x45
static

Gauge (Relative) Pressure Register.

Will return an integer value

int mindsensors.PPS58.RAW = 0x53
static

Raw Pressure Register.

Will return a long integer value

int mindsensors.PPS58.REF = 0x47
static

Reference Pressure Register.

Will return an integer value

int mindsensors.PPS58.UNIT = 0x42
static

Unit Register.

Will Return a byte value


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