C# Class nd2.Program.Ds1307

Exibir arquivo Open project: cjdaly/napkin

Public Properties

Property Type Description
I2CAddress ushort

Public Methods

Method Description
Ds1307 ( int clockRateKhz ) : System
Read ( Microsoft.SPOT.Hardware.I2CDevice i2cDevice, byte address, int length ) : byte[]
Test ( Microsoft.SPOT.Hardware.I2CDevice i2cDevice ) : void
Write ( Microsoft.SPOT.Hardware.I2CDevice i2cDevice, byte address, byte data ) : void

Private Methods

Method Description
IntToBcdByte ( int value ) : byte

Method Details

Ds1307() public method

public Ds1307 ( int clockRateKhz ) : System
clockRateKhz int
return System

Read() public method

public Read ( Microsoft.SPOT.Hardware.I2CDevice i2cDevice, byte address, int length ) : byte[]
i2cDevice Microsoft.SPOT.Hardware.I2CDevice
address byte
length int
return byte[]

Test() public method

public Test ( Microsoft.SPOT.Hardware.I2CDevice i2cDevice ) : void
i2cDevice Microsoft.SPOT.Hardware.I2CDevice
return void

Write() public method

public Write ( Microsoft.SPOT.Hardware.I2CDevice i2cDevice, byte address, byte data ) : void
i2cDevice Microsoft.SPOT.Hardware.I2CDevice
address byte
data byte
return void

Property Details

I2CAddress public_oe property

public ushort I2CAddress
return ushort