KETCube
Functions | Variables
ketCube_batMeas.c File Reference

This file contains definitions for the KETCube batMeas module. More...

#include "stm32l0xx_hal.h"
#include "stm32l0xx_hal_lptim.h"
#include "hw.h"
#include "timeServer.h"
#include "ketCube_common.h"
#include "ketCube_timer.h"
#include "ketCube_batMeas.h"
#include "ketCube_ad.h"
#include "ketCube_terminal.h"

Functions

ketCube_cfg_ModError_t ketCube_batMeas_Init (ketCube_InterModMsg_t ***msg)
 Initializes Battery Measurement. More...
 
ketCube_cfg_ModError_t ketCube_batMeas_DeInit (ketCube_InterModMsg_t ***msg)
 DeInit BatMeas. More...
 
uint8_t ketCube_batMeas_GetBatteryByte (void)
 This function returns the battery level. More...
 
ketCube_cfg_ModError_t ketCube_batMeas_ReadData (uint8_t *buffer, uint8_t *len)
 Read battery data. More...
 

Variables

ketCube_batMeas_moduleCfg_t ketCube_batMeas_moduleCfg
 
ketCube_batMeas_battery_t ketCube_batMeas_batList []
 List of supported batteries. More...
 

Detailed Description

This file contains definitions for the KETCube batMeas module.

Author
Jan Belohoubek
Version
0.1
Date
2018-08-19
Attention

© Copyright (c) 2018 University of West Bohemia in Pilsen All rights reserved.

Developed by: The SmartCampus Team Department of Technologies and Measurement www.smartcampus.cz | www.zcu.cz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

Function Documentation

◆ ketCube_batMeas_DeInit()

ketCube_cfg_ModError_t ketCube_batMeas_DeInit ( ketCube_InterModMsg_t ***  msg)

DeInit BatMeas.

Return values
KETCUBE_CFG_MODULE_OKin case of success
KETCUBE_CFG_MODULE_ERRORin case of failure