~aleteoryx/muditaos

ref: 64b4849d2085f729731d777b8259db2cd4329529 muditaos/module-bsp/bsp/keypad_backlight/keypad_backlight.hpp -rw-r--r-- 653 bytes
64b4849d — Tomasz Krosnowski [EGD-6452] Sound selection GUI 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <cstdint>

namespace bsp::keypad_backlight
{
    enum class Action
    {
        turnOff,
        turnOnActiveMode,
        turnOn,
        checkState,
    };

    enum class State
    {
        off,
        activeMode,
        on
    };

    using DiodeIntensity = float;

    std::int32_t init();

    void deinit();

    bool turnOnAll();

    bool configureModule();

    bool shutdown();

    void wakeup();

    bool reset();

    bool checkState();

} // namespace bsp::keypad_backlight