Go to the source code of this file.
|
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.
|
|
◆ TCMDEXEC_obc_adc_read_vbat_voltage()
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.
- Parameters
-
- Returns
◆ TCMDEXEC_obc_read_temperature()
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.
- Returns
- 0 if successful, >0 if error.
- Note
- Temperature range is -55 to 125 degrees celsius with +/- 3 degrees celsius accuracy over the whole range.
◆ TCMDEXEC_obc_read_temperature_complex()
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.
- Parameters
-
args_str |
- Arg 0: Precision we want the temperature to be (9-12 bits).
|
- Returns
- 0 if successful, 1 if error.
- Note
- There are better ways to get the temperature.