Sarian Basic 1-Wire Support Library
===================================

This folder contains a set of scripts that implement
an API to provide Sarian Basic language support for
the Sarian 1-Wire Pod. Using this API, simple applications
may be developed that allow access to 1-Wire devices and
to a GPS receiver connected to the Sarian 1-Wire Pod.

The API is split into a number of files. This is done
to reduce the size of user scripts and the amount of
memory used by applications.

The files are described below.

1Wire.sb    - contains the general 1-Wire functions, as follows:

    OneWire::Initialise
    OneWire::GetPodVersion
    OneWire::EnumerateDevices
    OneWire::ReadDeviceTable
    OneWire::GetDeviceTableSize
    OneWire::GetDeviceNumber
    OneWire::GetDeviceAddress
    OneWire::GetDeviceType
    OneWire::CRC16
    OneWire::CRC8
    OneWire::DataBlock
    OneWire::startPowerDelivery
    OneWire::setPowerNormal
    OneWire::getByte
    OneWire::waitforline

1Wire10.sb  - contains device specific functions for temperature
              devices, family ID 10

	OneWire10::ReadDevice
	OneWire10::CalcTemperature
	OneWire10::SetTemperatureResolution
	OneWire10::doTemperatureConvert
	OneWire10::GetTemperature

1Wire12.sb  - contains device specific functions for dual addressable
              switch devices, DS2406, family ID: 12

    OneWire12::WriteDevice
    OneWire12::ReadDevice
    OneWire12::IsPowerSupplied
    OneWire12::GetNumberChannels
    OneWire12::GetLevel
    OneWire12::GetLatchState
    OneWire12::GetSensedActivity
    OneWire12::SetLatchState

1Wire1D.sb  - contains device specific functions for external
              counter device, DS2423, family ID 1D

    OneWire1D::ReadDevice

1Wire20.sb  - contains device specific functions for A/D Converter
              device, DS2450, family ID 20

    OneWire20::ReadMemoryPage
    OneWire20::ReadDevice
    OneWire20::IsPowerExternal
    OneWire20::ConvertAll
    OneWire20::ConvertSingle
    OneWire20::doConvert
    OneWire20::interpretVoltage
    OneWire20::getRange
    OneWire20::getResolution
    OneWire20::getVoltageAll
    OneWire20::getVoltageSingle

1Wire26.sb - contains device specific functions for the DS2438
             smart battery monitor

    OneWire26::SetupAtoD
    OneWire26::ReadAtoD
    OneWire26::GetTemperature

1Wire29.sb  - contains device specific functions for 8 port switch device,
              DS2408, family ID: 29

    OneWire12::ReadDevice
    OneWire12::GetLevel
    OneWire12::GetLatchState
    OneWire12::GetSensedActivity
    OneWire12::SetLatchState
    OneWire12::WriteDevice
    OneWire12::GetNumberChannels

1WireGPS.sb - contains GPS specific functions:

    OneWireGPS::Initialise
    OneWireGPS::GetData
