~aleteoryx/muditaos

ref: 03e5f8d7148275d0db11ddd8248055e93d35da3a muditaos/module-bsp/bsp/keypad_backlight/keypad_backlight.hpp -rw-r--r-- 548 bytes
03e5f8d7 — Wojtek Rzepecki [EGD-5360] Add USB current selection 5 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
// 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
    {
        turnOn,
        turnOff,
        checkState,
    };

    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