Rock Monitoring  V 1.0
PCT2075 Class Reference

Class that handles the communication to the temperature sensor PCT2075. More...

#include <PCT2075.h>

Collaboration diagram for PCT2075:
Collaboration graph

Public Member Functions

 PCT2075 ()
 
void init (uint8_t slaveAddr)
 This method initializes the temperature sensor PCT2075. More...
 
uint8_t getTemp (int8_t &Temp)
 This method gets the temperatur value of the temperature sensor PCT2075. More...
 
void goToSleep ()
 This method sets the Temperature Sensor in shutdown mode. More...
 

Private Attributes

uint8_t i2cSlaveAddr
 

Detailed Description

Class that handles the communication to the temperature sensor PCT2075.

Definition at line 29 of file PCT2075.h.

Constructor & Destructor Documentation

PCT2075::PCT2075 ( )

Definition at line 5 of file PCT2075.cpp.

Member Function Documentation

uint8_t PCT2075::getTemp ( int8_t &  Temp)

This method gets the temperatur value of the temperature sensor PCT2075.

Parameters
int18_t& Temp, reference to data of temperature sensor
Returns
uint8_t state, gives back 1 for Error and 0 for ok

Definition at line 55 of file PCT2075.cpp.

void PCT2075::goToSleep ( )

This method sets the Temperature Sensor in shutdown mode.

Definition at line 76 of file PCT2075.cpp.

void PCT2075::init ( uint8_t  slaveAddr)

This method initializes the temperature sensor PCT2075.

Parameters
intslaveAddr, value from 0 to 3, sets the i2c slave address

Definition at line 12 of file PCT2075.cpp.

Member Data Documentation

uint8_t PCT2075::i2cSlaveAddr
private

Definition at line 40 of file PCT2075.h.


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