DC2100A  1.2.0
Bi-Directional Cell Balancer Using the LTC3300-1 and the LTC6804-2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Driver File for LTC1380 Single-Ended 8-Channel/Differential 4-Channel Analog Multiplexer with SMBus Interface. More...

Go to the source code of this file.

Detailed Description

Driver File for LTC1380 Single-Ended 8-Channel/Differential 4-Channel Analog Multiplexer with SMBus Interface.

Definition in file LTC1380.c.

Data Structures

struct  LTC1380_COMMAND_TYPE
 

Functions

void LTC1380_Set_Channel (int8 board_num, int8 mux_num, int8 channel_num)
 Commands an LTC1380 mux to connect one channel to its output. More...
 
void LTC1380_All_Off (int8 board_num, int8 mux_num)
 Commands an LTC1380 mux to disconnect all channels from its output. More...
 

Macros

#define LTC1380_BASE_ADDRESS   0x48
 
#define LTC1380_EN_BIT   0x08
 
#define LTC1380_CHANNEL_MASK   0x07
 
#define LTC1380_TON   2
 

Function Documentation

void LTC1380_All_Off ( int8  board_num,
int8  mux_num 
)

Commands an LTC1380 mux to disconnect all channels from its output.

Returns
void
Parameters
board_numThe logical address for the PCB containing this LTC1380 IC.,
mux_numThe number for the LTC1380 IC, must be less than LTC1380_CONFIG_NUM_ICS_PER_ADDRESS.

Definition at line 138 of file LTC1380.c.

void LTC1380_Set_Channel ( int8  board_num,
int8  mux_num,
int8  channel_num 
)

Commands an LTC1380 mux to connect one channel to its output.

Returns
void
Parameters
board_numThe logical address for the PCB containing this LTC1380 IC.
mux_numThe number for the LTC1380 IC, must be less than LTC1380_CONFIG_NUM_ICS_PER_ADDRESS.
channel_numThe channel number to set for the LTC1380 IC.

Definition at line 114 of file LTC1380.c.