![]() |
DC2100A
1.2.0
Bi-Directional Cell Balancer Using the LTC3300-1 and the LTC6804-2
|
Reference Application File for Monitoring Temperature Sensors through the LTC6804-2 Battery Monitor on the DC2100A PCB. More...
Go to the source code of this file.
Reference Application File for Monitoring Temperature Sensors through the LTC6804-2 Battery Monitor on the DC2100A PCB.
Definition in file Temperature.c.
Data Structures | |
struct | TEMPERATURE_CHANNEL_TYPE |
Functions | |
void | temperature_channel_setup (void) |
unsigned int8 | temperature_lookup (unsigned int16 adc_value) |
void | Temperature_Init (void) |
Initializes the parts of the Temperature Module, that need to be initialized upon power-up of the PIC. More... | |
BOOLEAN | Temperature_Wakeup_Init (void) |
Initializes the parts of the Temperature Module, that need to be initialized upon wakeup of the LTC6804. More... | |
void | Temperature_Monitor_Task (void) |
Executes the Temperature Monitor task. More... | |
int16 | Temperature_Get (int8 board_num, int8 temperature_num) |
Gets one temperature from one DC2100A PCB. More... | |
int16 * | Temperature_Adc_Value_Get (int8 board_num) |
Gets the raw ADC values for all of the thermistors on one DC2100A board. More... | |
Variables | |
unsigned int32 | temperature_timestamp |
Timestamp taken when last temperature measurement was started. More... | |
unsigned int8 | temperature_balancestamp |
unsigned int8 | temperatures [DC2100A_MAX_BOARDS][DC2100A_NUM_TEMPS] |
const unsigned int16 | Temperature_Table [] |
const TEMPERATURE_CHANNEL_TYPE | Temperature_Channel_Table [DC2100A_NUM_TEMPS] |
int8 | temperature_in_process |
BOOLEAN | temperature_skip |
unsigned int16 | temperature_adc_values [DC2100A_NUM_TEMPS] |
int8 | temperature_board_for_adc_values |
int16* Temperature_Adc_Value_Get | ( | int8 | board_num | ) |
Gets the raw ADC values for all of the thermistors on one DC2100A board.
board_num | The logical address for the PCB containing this Temperature. |
Definition at line 298 of file Temperature.c.
int16 Temperature_Get | ( | int8 | board_num, |
int8 | temperature_num | ||
) |
Gets one temperature from one DC2100A PCB.
board_num | The logical address for the PCB containing this Temperature. |
temperature_num | The temperature number to get from this PCB. |
Definition at line 286 of file Temperature.c.
void Temperature_Init | ( | void | ) |
Initializes the parts of the Temperature Module, that need to be initialized upon power-up of the PIC.
Definition at line 167 of file Temperature.c.
void Temperature_Monitor_Task | ( | void | ) |
Executes the Temperature Monitor task.
Definition at line 217 of file Temperature.c.
BOOLEAN Temperature_Wakeup_Init | ( | void | ) |
Initializes the parts of the Temperature Module, that need to be initialized upon wakeup of the LTC6804.
Definition at line 184 of file Temperature.c.
const TEMPERATURE_CHANNEL_TYPE Temperature_Channel_Table[DC2100A_NUM_TEMPS] |
Definition at line 138 of file Temperature.c.
const unsigned int16 Temperature_Table[] |
Definition at line 108 of file Temperature.c.
unsigned int32 temperature_timestamp |
Timestamp taken when last temperature measurement was started.
Definition at line 97 of file Temperature.c.