~aleteoryx/muditaos

ref: 90bc8a7ebaa790e27204590e510b7176c3bd32c3 muditaos/module-bsp/bsp/keypad_backlight/keypad_backlight.hpp -rw-r--r-- 787 bytes
90bc8a7e — tomaszkrosnowski [EGD-7899] Keypad light settings fix 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
44
45
46
// 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,
        turnOnCallMode,
        turnOffCallMode,
        checkState,
    };

    enum class State
    {
        off,
        activeMode
    };

    using DiodeIntensity = float;

    std::int32_t init();

    void deinit();

    bool turnOnAll();

    bool turnOnFunctionKeysBacklight();

    bool turnOnNumericKeysBacklight();

    bool configureModule(std::uint8_t enablesRegisterValue);

    bool shutdown();

    void wakeup();

    bool reset();

    bool checkState();

} // namespace bsp::keypad_backlight