82 #define LTC1380_BASE_ADDRESS 0x48
91 #define LTC1380_EN_BIT 0x08
92 #define LTC1380_CHANNEL_MASK 0x07
95 #define LTC1380_TON 2 // in us, max value
119 (LTC1380_NUM_CHANNELS <= channel_num))
125 command.address_byte = (LTC1380_BASE_ADDRESS | mux_num) << 1;
126 command.command_byte = LTC1380_EN_BIT | channel_num;
132 delay_us(LTC1380_TON);
142 if(LTC1380_NUM_CHANNELS <= mux_num)
148 command.address_byte = (LTC1380_BASE_ADDRESS | mux_num) << 1;
149 command.command_byte = ~LTC1380_EN_BIT;
#define LTC1380_CONFIG_NUM_ICS_PER_ADDRESS
Configures the number of LTC1380 ICs at each logical address.
#define LTC1380_CONFIG_I2C_WRITE(address, data_ptr, num_bytes, baud_khz)
Configures interface through which LTC1380 driver module sends I2C bytes to an LTC1380 IC...
API Header File for LTC1380 Single-Ended 8-Channel/Differential 4-Channel Analog Multiplexer with SMB...
Driver Configuration Header File for LTC1380 Single-Ended 8-Channel/Differential 4-Channel Analog Mul...
void LTC1380_All_Off(int8 board_num, int8 mux_num)
Commands an LTC1380 mux to disconnect all channels from its output.
void LTC1380_Set_Channel(int8 board_num, int8 mux_num, int8 channel_num)
Commands an LTC1380 mux to connect one channel to its output.