You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
/*
|
|
* 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> keyPars = std::make_unique<KeyPars>();
|
|
const std::unique_ptr<KeypadInputInterface> keypadInputInterface = std::make_unique<KeypadInputInterface>();
|
|
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> gpioInterface = std::make_unique<GpioInterface>();
|
|
};
|
|
}
|
|
|
|
|
|
#endif // android_GpioPowerInterface_H
|