C# Class EtherMania.com.WeatherShield1

ファイルを表示 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_oe static_oe property

public static Byte DEFAULTADDRESS
return Byte

DEFAULTCLOCK_PIN public_oe static_oe property

public static Cpu.Pin DEFAULTCLOCK_PIN
return Cpu.Pin

DEFAULTIODATA_PIN public_oe static_oe property

public static Cpu.Pin DEFAULTIODATA_PIN
return Cpu.Pin