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.

Revision:
9:4b836ceacfba
Parent:
8:20fd0ebff489
Child:
13:ee719eb11161
--- a/CD22M3494.h	Fri Dec 20 08:40:47 2013 +0000
+++ b/CD22M3494.h	Tue Dec 24 15:28:07 2013 +0000
@@ -188,7 +188,7 @@
      * @param y the y axis
      */
     bool crossPointConnect(unsigned short x, unsigned short y) {
-        INFO("Got x point connect for x %s, y %s", byte_to_binary(x), byte_to_binary(y));
+       // INFO("Got x point connect for x %s, y %s", byte_to_binary(x), byte_to_binary(y));
         if (x <= MAX_X && y <= MAX_Y) {
             INFO("setting data high...");
             data->write(1);
@@ -215,7 +215,7 @@
      * @param y the y axis
      */
     bool crossPointDisconnect(unsigned short x, unsigned short y) {
-        INFO("Got x point disconnect for x %s, y %s", byte_to_binary(x), byte_to_binary(y));
+       // INFO("Got x point disconnect for x %s, y %s", byte_to_binary(x), byte_to_binary(y));
         if (x <= MAX_X && y <= MAX_Y) {
             INFO("setting data high...");
             data->write(0);