SHETSourceServer Class Reference

#include <SHETSource.h>

List of all members.

Public Member Functions

 SHETSourceServer (void)
SHETSourceRemoteClientgetClient (int address)
void pollClients (void)

Detailed Description

Sets up the device as an I2C bus master and provides utilities to poll clients.


Constructor & Destructor Documentation

SHETSourceServer::SHETSourceServer ( void   ) 

Sets up the current device as a bus master and creates SHETSourceRemoteClient objects for all addresses up to MAX_ADDRESS.


Member Function Documentation

SHETSourceRemoteClient * SHETSourceServer::getClient ( int  address  ) 

Getter for SHETSourceRemoteClient objects.

Parameters:
address The I2C address of the required object. WARNING: No sanity checks are done so don't request addresses that are beyond MAX_ADDRESS so requesting beyond this has undefined behaviour.
Returns:
A SHETSourceRemoteClient for the given address.
void SHETSourceServer::pollClients ( void   ) 

Poll all addresses up to MAX_ADDRESS updating the SHETSourceRemoteClient objects with status information.

Sends a poll request to all clients and notes the connection status and the state of the output notify flags.


The documentation for this class was generated from the following files:
 All Classes Functions Variables
Generated on Thu Jun 3 15:50:50 2010 by  doxygen 1.6.3