CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
system_temperature.h File Reference
Include dependency graph for system_temperature.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SYS_TEMP_thermal_info_t
struct  SYS_TEMP_raw_thermal_info_t

Macros

#define EPS_BATTERY_PACK_SENSOR_SIZE   3

Enumerations

enum  SYS_TEMP_thermal_info_error_enum_t { SYS_TEMP_ANT_A_STATUS = 1 << 0 , SYS_TEMP_ANT_B_STATUS = 1 << 1 , SYS_TEMP_PCU_STATUS = 1 << 2 , SYS_TEMP_PBU_STATUS = 1 << 3 }

Functions

uint8_t SYS_TEMP_get_raw_thermal_info (SYS_TEMP_raw_thermal_info_t *result, uint8_t *error_ret)
 Grabs required data/data structures from drivers containing thermal information.
uint8_t SYS_TEMP_pack_to_system_thermal_info (SYS_TEMP_raw_thermal_info_t *input, SYS_TEMP_thermal_info_t *result, uint8_t error_ret)
 Takes the raw thermal data and converts them to human readable values.

Macro Definition Documentation

◆ EPS_BATTERY_PACK_SENSOR_SIZE

#define EPS_BATTERY_PACK_SENSOR_SIZE   3

Enumeration Type Documentation

◆ SYS_TEMP_thermal_info_error_enum_t

Enumerator
SYS_TEMP_ANT_A_STATUS 
SYS_TEMP_ANT_B_STATUS 
SYS_TEMP_PCU_STATUS 
SYS_TEMP_PBU_STATUS 

Function Documentation

◆ SYS_TEMP_get_raw_thermal_info()

uint8_t SYS_TEMP_get_raw_thermal_info ( SYS_TEMP_raw_thermal_info_t * result,
uint8_t * error_ret )

Grabs required data/data structures from drivers containing thermal information.

Parameters
resultStruct that contains various raw thermal data.
error_retInitial input should be 0. Contains bit information on error status for ANT A, ANT B, PBU and PCU
Returns
0 if data was successfully stored, anything else if error.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SYS_TEMP_pack_to_system_thermal_info()

uint8_t SYS_TEMP_pack_to_system_thermal_info ( SYS_TEMP_raw_thermal_info_t * input,
SYS_TEMP_thermal_info_t * result,
uint8_t error_ret )

Takes the raw thermal data and converts them to human readable values.

Parameters
inputThe structure containing various raw thermal data.
resultThe structure containing the processed thermal data.
error_retBitfield containing error status on collecting data for the ANT A, ANT B, PCU and PBU
Returns
0 on successful conversion, otherwise failed.
Here is the call graph for this function:
Here is the caller graph for this function: