C# Class EtherMania.com.WeatherShield1

Afficher le fichier Open project: ethermania/WeatherShield1 Class Usage Examples

Méthodes publiques

Свойство Type Description
DEFAULTADDRESS Byte
DEFAULTCLOCK_PIN Cpu.Pin
DEFAULTIODATA_PIN Cpu.Pin

Méthodes publiques

Méthode 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

Méthode 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 méthode

public WeatherShield1 ( ) : System
Résultat System

WeatherShield1() public méthode

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

averageValuesReady() public méthode

public averageValuesReady ( ) : bool
Résultat bool

echo() public méthode

public echo ( Byte parameter ) : Byte
parameter Byte
Résultat Byte

readAveragedValue() public méthode

public readAveragedValue ( units unitType ) : float
unitType units
Résultat float

readRawValue() public méthode

public readRawValue ( units unitType, sample sampleNum ) : short
unitType units
sampleNum sample
Résultat short

resetConnection() public méthode

public resetConnection ( ) : void
Résultat void

setBoardAddress() public méthode

public setBoardAddress ( Byte newAddress ) : void
newAddress Byte
Résultat void

setSampleTime() public méthode

public setSampleTime ( Byte seconds ) : void
seconds Byte
Résultat void

Property Details

DEFAULTADDRESS public_oe static_oe property

public static Byte DEFAULTADDRESS
Résultat Byte

DEFAULTCLOCK_PIN public_oe static_oe property

public static Cpu.Pin DEFAULTCLOCK_PIN
Résultat Cpu.Pin

DEFAULTIODATA_PIN public_oe static_oe property

public static Cpu.Pin DEFAULTIODATA_PIN
Résultat Cpu.Pin