#include <SHETSource.h>
Public Member Functions | |
SHETSourceServer (void) | |
SHETSourceRemoteClient * | getClient (int address) |
void | pollClients (void) |
Sets up the device as an I2C bus master and provides utilities to poll clients.
SHETSourceServer::SHETSourceServer | ( | void | ) |
Sets up the current device as a bus master and creates SHETSourceRemoteClient objects for all addresses up to MAX_ADDRESS.
SHETSourceRemoteClient * SHETSourceServer::getClient | ( | int | address | ) |
Getter for SHETSourceRemoteClient objects.
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. |
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.