/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2020-2022. All rights reserved. * Description: virtualkeypad input gpio power interface * Author: App-Dev Group * Create: 2020-06-12 */ #ifndef ANDROID_GPIOPOWERINTERFACE_H #define ANDROID_GPIOPOWERINTERFACE_H #include "GpioInterface.h" #include "KeyPars.h" #include "KeypadInputInterface.h" namespace android { class GpioPowerInterface { public: GpioPowerInterface() : gpioFlag(TD_FAILURE) {} ~GpioPowerInterface(){} const std::unique_ptr keyPars = std::make_unique(); const std::unique_ptr keypadInputInterface = std::make_unique(); const td_u32 checkCount = 5; int gpioFlag = TD_FAILURE; int lsadcEnable = 0; void GpioPowerInit(); void DoGpioPowerOpt() const; void GpioPowerDeinit(); private: unsigned int gpioEnable = 0; struct KeyPars::GpioKeyArry gpioKpd = {0, 0, {0}, {0}, {0}}; std::unique_ptr gpioInterface = std::make_unique(); }; } #endif // android_GpioPowerInterface_H