Driver for a CD22M3494 cross point switcher
Library description
The CD22M3494 is a 16x8 crosspoint switch matrix, it can be used in any configuration i.e. 16 ins' 8 outs' or 16 outs' and 8 ins'. Control of the chip is pretty simple there are two parallel address buses a 4 byte address controls the X axis (16 IO pins) and a 3 byte address controls the Y axis (8 IO pins). A data bus says whether to open or close the switch and a 'strobe' bus actually performs the switch. This library provides a simple interface to control the CD22M3494 and provides a mechanism to associate source and destinations in pairs and switch the pairs via their names.
Diff: CD22M3494.h
- Revision:
- 3:fa46a8badc92
- Parent:
- 2:25049dc7da13
- Child:
- 4:6ffeb0008f11
--- a/CD22M3494.h Wed Sep 11 08:54:24 2013 +0000 +++ b/CD22M3494.h Wed Sep 11 11:54:24 2013 +0000 @@ -150,6 +150,15 @@ return false; } + bool getAssociation(string name, unsigned short *xps) { + if (associationTable.count(name)) { + xps[0] = associationTable[name][0]; + xps[1] = associationTable[name][1]; + return true; + } + return false; + } + private: BusOut *xbus; BusOut *ybus;