C# Class EtherMania.com.WeatherShield1

Show file Open project: ethermania/WeatherShield1 Class Usage Examples

Public Properties

Property Type Description
DEFAULTADDRESS Byte
DEFAULTCLOCK_PIN Cpu.Pin
DEFAULTIODATA_PIN Cpu.Pin

Public Methods

Method Description
WeatherShield1 ( ) : System
WeatherShield1 ( Cpu clockPin, Cpu dataPin, Byte deviceAddress ) : System
averageValuesReady ( ) : bool
echo ( Byte parameter ) : Byte
readAveragedValue ( units unitType ) : float
readRawValue ( units unitType, sample sampleNum ) : short
resetConnection ( ) : void
setBoardAddress ( Byte newAddress ) : void
setSampleTime ( Byte seconds ) : void

Private Methods

Method Description
decodeFloatValue ( ) : float
decodeShortValue ( ) : short
pulseClockPin ( ) : void
readAnswer ( commands command ) : bool
readByte ( ) : Byte
sendByte ( Byte ucData ) : void
sendCommand ( commands command, Byte parameter ) : void

Method Details

WeatherShield1() public method

public WeatherShield1 ( ) : System
return System

WeatherShield1() public method

public WeatherShield1 ( Cpu clockPin, Cpu dataPin, Byte deviceAddress ) : System
clockPin Microsoft.SPOT.Hardware.Cpu
dataPin Microsoft.SPOT.Hardware.Cpu
deviceAddress Byte
return System

averageValuesReady() public method

public averageValuesReady ( ) : bool
return bool

echo() public method

public echo ( Byte parameter ) : Byte
parameter Byte
return Byte

readAveragedValue() public method

public readAveragedValue ( units unitType ) : float
unitType units
return float

readRawValue() public method

public readRawValue ( units unitType, sample sampleNum ) : short
unitType units
sampleNum sample
return short

resetConnection() public method

public resetConnection ( ) : void
return void

setBoardAddress() public method

public setBoardAddress ( Byte newAddress ) : void
newAddress Byte
return void

setSampleTime() public method

public setSampleTime ( Byte seconds ) : void
seconds Byte
return void

Property Details

DEFAULTADDRESS public static property

public static Byte DEFAULTADDRESS
return Byte

DEFAULTCLOCK_PIN public static property

public static Cpu.Pin DEFAULTCLOCK_PIN
return Cpu.Pin

DEFAULTIODATA_PIN public static property

public static Cpu.Pin DEFAULTIODATA_PIN
return Cpu.Pin