TLC59116 Library  v0.2
Public Member Functions | Static Public Attributes | Friends | List of all members
TLC59116Manager Class Reference

Holds all of the devices. More...

#include <TLC59116.h>

Detailed Description

Holds all of the devices.

The reset command for TCL59116's is a broadcast command, so we manage that here.

Bug:
This collects all I2C devices between 0x60 and 0x6E. Non TLC59116 devices can appear in our list! The TLC59116 doesn't have a feature that identifies it, so we just assume.
Collaboration diagram for TLC59116Manager:
Collaboration graph
[legend]

Public Member Functions

TLC59116::Broadcastbroadcast ()
 
byte device_count ()
 
void init ()
 
bool is_inited ()
 
TLC59116operator[] (byte index)
 
int reset ()
 
 TLC59116Manager ()
 
 TLC59116Manager (TwoWire &w, long frequency=Default_Frequency, byte dothings=WireInit|EnableOutputs|Reset)
 

Static Public Attributes

static const byte Already = 0b1000
 
static const long Default_Frequency = 100000L
 
static const byte EnableOutputs = 0b10
 
static const byte MaxDevicesPerI2C = 15
 
static const byte Reset = 0b100
 
static const byte WireInit = 0b1
 

Friends

class TLC59116
 

Constructor & Destructor Documentation

TLC59116Manager::TLC59116Manager ( )
inline
TLC59116Manager::TLC59116Manager ( TwoWire &  w,
long  frequency = Default_Frequency,
byte  dothings = WireInit | EnableOutputs | Reset 
)
inline

Member Function Documentation

void TLC59116Manager::init ( )

Here is the call graph for this function:

bool TLC59116Manager::is_inited ( )
inline
TLC59116& TLC59116Manager::operator[] ( byte  index)
inline

Here is the call graph for this function:

byte TLC59116Manager::device_count ( )
inline
TLC59116::Broadcast& TLC59116Manager::broadcast ( )
inline

Here is the caller graph for this function:

int TLC59116Manager::reset ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class TLC59116
friend

Member Data Documentation

const byte TLC59116Manager::MaxDevicesPerI2C = 15
static
const byte TLC59116Manager::WireInit = 0b1
static
const byte TLC59116Manager::EnableOutputs = 0b10
static
const byte TLC59116Manager::Reset = 0b100
static
const byte TLC59116Manager::Already = 0b1000
static
const long TLC59116Manager::Default_Frequency = 100000L
static

The documentation for this class was generated from the following files: