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

Go to the source code of this file.

Functions

int16_t OBC_read_vbat_with_adc_mV ()
 Read the battery voltage using the ADC.
 

Function Documentation

◆ OBC_read_vbat_with_adc_mV()

int16_t OBC_read_vbat_with_adc_mV ( )

Read the battery voltage using the ADC.

Returns
The battery voltage in mV. -9999 if error.
Note
This applies the voltage divider factor (11:1) to the voltage read from the ADC.
Here is the call graph for this function:
Here is the caller graph for this function: