no-OS
mux_board.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef MUXBOARD_H_
35 #define MUXBOARD_H_
36 #include <stdint.h>
37 #include "no_os_i2c.h"
38 #include "ad5940.h"
39 #define ADG2128_MUX_SIZE 16
40 #define MUXBOARD_SIZE ADG2128_MUX_SIZE
44 };
45 
46 //Structure for electrode combinations. Each variable corresponds to each of the 4-pin measurement electrodes.
47 //example, if F_plus=0, S_plus=1, S_minus=2, F_minus=3,means that F+, S+, S-, and F-are connected to electrodes
48 //0, 1, 2, and 3 respectively
49 
51  uint16_t F_plus;
52  uint16_t S_plus;
53  uint16_t S_minus;
54  uint16_t F_minus;
55 };
56 
57 void setMuxSwitch(struct no_os_i2c_desc *i2c, struct ad5940_dev *dev,
58  struct electrode_combo sw, uint16_t nElCount);
59 
60 #endif /* MUXBOARD_H_ */
no_os_i2c_write
int32_t no_os_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Write data to slave device.
Definition: no_os_i2c.c:159
ADG731MUXBOARD
@ ADG731MUXBOARD
Definition: mux_board.h:43
board_map
struct adg2128_pinmap board_map[ADG2128_MUX_SIZE]
Definition: mux_board.c:54
ADG2128MUXBOARD
@ ADG2128MUXBOARD
Definition: mux_board.h:42
no_os_delay.h
Header file of Delay functions.
setMuxSwitch
void setMuxSwitch(struct no_os_i2c_desc *i2c, struct ad5940_dev *ad5940, struct electrode_combo sw, uint16_t nElCount)
Definition: mux_board.c:91
no_os_i2c_desc::slave_address
uint8_t slave_address
Definition: no_os_i2c.h:109
electrode_combo::F_plus
uint16_t F_plus
Definition: mux_board.h:51
muxbrd_variant
muxbrd_variant
Definition: mux_board.h:41
adg2128_pinmap::chip_addr
uint8_t chip_addr
Definition: mux_board.c:40
electrode_combo
Definition: mux_board.h:50
electrode_combo::S_plus
uint16_t S_plus
Definition: mux_board.h:52
ADG2128_SwRst
int ADG2128_SwRst(struct ad5940_dev *dev)
Definition: app.c:63
no_os_i2c_desc
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
no_os_i2c.h
Header file of I2C Interface.
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
app.h
EIT application header.
adg2128_pinmap
Definition: mux_board.c:39
mux_board.h
Cross-point switch handling code.
i2c
struct no_os_i2c_desc * i2c
Definition: main.c:73
ADG2128_MUX_SIZE
#define ADG2128_MUX_SIZE
Definition: mux_board.h:39
setMuxSwitch
void setMuxSwitch(struct no_os_i2c_desc *i2c, struct ad5940_dev *dev, struct electrode_combo sw, uint16_t nElCount)
Definition: mux_board.c:91
electrode_combo::F_minus
uint16_t F_minus
Definition: mux_board.h:54
electrode_combo::S_minus
uint16_t S_minus
Definition: mux_board.h:53
adg2128_pinmap::selector
uint8_t selector
Definition: mux_board.c:41