8:4 Matrix Multiplexer
Fork of max14661 by
This is an untested driver for the MAX14724.
Diff: max14661.h
- Revision:
- 5:58f3bbd30777
- Parent:
- 4:45fa0192f66d
- Child:
- 7:1d4e59ec0fba
diff -r 45fa0192f66d -r 58f3bbd30777 max14661.h --- a/max14661.h Fri Nov 21 04:31:05 2014 +0000 +++ b/max14661.h Fri Dec 05 22:38:56 2014 +0000 @@ -53,7 +53,9 @@ #include "mbed.h" -//MAX14661 I2C Addresses +/** +* max14661_i2c_adrs_t - enumerated MAX14661 I2C Addresses +*/ typedef enum { MAX14661_I2C_ADRS0 = 0x4C, @@ -63,7 +65,9 @@ }max14661_i2c_adrs_t; -//MAX14661 I2C register addresses +/** +* max14661_regs_t - enumerated MAX14661 register addresses +*/ typedef enum { DIR0, //Switches 8A–1A direct read/write access @@ -79,7 +83,9 @@ }max14661_regs_t; -//MAX14661 I2C commands +/** +* max14661_cmds_t - enumerated MAX14661 commands +*/ typedef enum { ENABLE_SW01, //enables sw1 on bank only @@ -104,7 +110,9 @@ }max14661_cmds_t; -//MAX14661 I2C switch bitmasks +/** +* max14661_sw_t - enumerated MAX14661 switch bitmasks +*/ typedef enum { SW01 = (1 << 0),