|
CTS-SAT-1-OBC-Firmware
|
#include "telecommands/obc_systems_telecommand_defs.h"#include "obc_systems/obc_temperature_sensor.h"#include "obc_systems/adc_vbat_monitor.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <inttypes.h>#include "main.h"
Functions | |
| uint8_t | TCMDEXEC_obc_read_temperature_complex (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Reads the temperature from the STDS75DS2F and stores it in the provided variable temperature. Temperature range is -55 to 125 degrees celsius with +/- 3 degrees celsius accuracy over the whole range. | |
| uint8_t | TCMDEXEC_obc_read_temperature (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Reads the temperature from the STDS75DS2F in centi-Celsius. | |
| uint8_t | TCMDEXEC_obc_adc_read_vbat_voltage (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
| Read the battery voltage using the ADC. Returns the result in mV. Voltage divider ratio is already applied. | |
| uint8_t TCMDEXEC_obc_adc_read_vbat_voltage | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Read the battery voltage using the ADC. Returns the result in mV. Voltage divider ratio is already applied.
| args_str | No arguments. |

| uint8_t TCMDEXEC_obc_read_temperature | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Reads the temperature from the STDS75DS2F in centi-Celsius.

| uint8_t TCMDEXEC_obc_read_temperature_complex | ( | const char * | args_str, |
| char * | response_output_buf, | ||
| uint16_t | response_output_buf_len ) |
Reads the temperature from the STDS75DS2F and stores it in the provided variable temperature. Temperature range is -55 to 125 degrees celsius with +/- 3 degrees celsius accuracy over the whole range.
| args_str |
|
