XDK API  3.6.0
Documentation
Macros | Functions | Variables
BatteryMonitor.c File Reference
#include "XdkCommonInfo.h"
#include "BatteryMonitor.h"
#include "AdcCentral.h"
#include "BCDS_BSP_Charger_BQ2407X.h"
#include "BSP_Adc.h"
#include "FreeRTOS.h"
#include "timers.h"
#include "semphr.h"
+ Include dependency graph for BatteryMonitor.c:

Macros

#define BATTERYMONITOR_ADC_REFERENCE   2500
 
#define BATTERYMONITOR_ADC_RESOLUTION   4096
 
#define BCDS_MODULE_ID   XDK_COMMON_ID_BATTERYMONITOR
 

Functions

void AdcSampleIRQCallback (ADC_T adc, uint16_t *buffer)
 
Retcode_T BatteryMonitor_Init (void)
 Initialize the Battery monitor module. More...
 
Retcode_T BatteryMonitor_MeasureSignal (uint32_t *outputVoltage)
 Measures the specified voltage signal. More...
 

Variables

static SemaphoreHandle_t AdcSampleSemaphore = NULL
 
static bool IsInitialized = false
 

Macro Definition Documentation

#define BATTERYMONITOR_ADC_REFERENCE   2500

ADC reference voltage is configured to 2.5 Volts

#define BATTERYMONITOR_ADC_RESOLUTION   4096

ADC resolution is configured to 12 bit hence 2^12=4096

#define BCDS_MODULE_ID   XDK_COMMON_ID_BATTERYMONITOR

Function Documentation

void AdcSampleIRQCallback ( ADC_T  adc,
uint16_t *  buffer 
)

+ Here is the caller graph for this function:

Variable Documentation

SemaphoreHandle_t AdcSampleSemaphore = NULL
static
bool IsInitialized = false
static

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:40 by doxygen 1.8.8