// 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 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