hardware_xiaomi/aidl/light/LED.h
Sebastiano Barezzi f162d20b5b
aidl: light: Wire up
* Merged Xiaomi SM8250, SM8150, SM6250, SDM710 and MSM8953 implementations

Change-Id: I16764ec8676de6c2a9f745876dddab75db6adf35
2022-02-07 15:47:57 +01:00

33 lines
522 B
C++

/*
* Copyright (C) 2021 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <string>
namespace aidl {
namespace android {
namespace hardware {
namespace light {
class LED {
public:
LED(std::string type);
bool exists();
bool setBreath(uint32_t value);
bool setBrightness(uint32_t value);
private:
std::string mBasePath;
uint32_t mMaxBrightness;
bool mBreath;
};
} // namespace light
} // namespace hardware
} // namespace android
} // namespace aidl