Main Page | Class Hierarchy | Class List | Class Members

BlueSense::Device Class Reference

Inheritance diagram for BlueSense::Device:

BlueSense::AdcInputDevice BlueSense::DacOutputDevice BlueSense::MotorDevice BlueSense::OCOutputDevice BlueSense::RelayOutputDevice BlueSense::RouterDevice BlueSense::ServoDevice BlueSense::StepperDevice BlueSense::SwitchInputDevice BlueSense::UnknownDevice List of all members.

Public Member Functions

bool isAccessible ()
bool detect (uint timeOut)
int getType ()
ushort getId ()
ushort getFirmwareVersion ()

Detailed Description

The device class holds common information for all BlueSense devices (eg. the identifier). It also defines some operations which can be done on all types of devices.
Author:
Dinne Bosman


Member Function Documentation

bool BlueSense::Device::detect uint  timeOut  )  [inline]
 

Tries to detect this device.

Parameters:
timeOut how long to detect
Returns:
true if found, false if still inaccessible.

Reimplemented in BlueSense::UnknownDevice.

ushort BlueSense::Device::getFirmwareVersion  )  [inline]
 

Returns:
software firmware version of a device

ushort BlueSense::Device::getId  )  [inline]
 

Returns:
the device's unique identifier

int BlueSense::Device::getType  )  [inline]
 

Returns:
Returns the type identifier

Reimplemented in BlueSense::UnknownDevice.

bool BlueSense::Device::isAccessible  )  [inline]
 

Checks if the device is accessible. The device is inaccessible when a wrong the device's identifier points to a device of another type. Or when the device type has not been registered with the master. eg.

See also:
AdcInputDevice::register(Master)
Returns:
true if accessible

Reimplemented in BlueSense::UnknownDevice.


The documentation for this class was generated from the following file:
Generated on Mon Jan 21 17:51:58 2008 for BlueSense.NET/Mono by  doxygen 1.4.4