~aleteoryx/muditaos

ref: 71fa4c5578eb2ea57899e63c3aa5c42461502483 muditaos/module-services/service-evtmgr/battery-level-check/BatteryLevelCheck.hpp -rw-r--r-- 538 bytes
71fa4c55 — Paweł Joński [BH-721] Fix and add new rrule generator methods 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <Service/Service.hpp>
#include <service-db/service-db/Settings.hpp>

namespace sys
{
    class Service;
} // namespace sys

namespace battery_level_check
{
    void init(sys::Service *service, std::shared_ptr<settings::Settings> &setts);

    void deinit();

    void checkBatteryLevel();

    void setBatteryCriticalLevel(unsigned int level);
} // namespace battery_level_check