CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
system_temperature.c File Reference
Include dependency graph for system_temperature.c:

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.

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: