1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 #ifndef HDF_ENCODER_H 9 #define HDF_ENCODER_H 10 11 #include <securec.h> 12 #include "hdf_device_object.h" 13 #include "hdf_input_device_manager.h" 14 #include "input_config.h" 15 #include "osal_time.h" 16 #include "osal_timer.h" 17 18 typedef struct EncoderDriverInfo { 19 struct HdfDeviceObject *hdfEncoderDev; 20 uint8_t devType; 21 EncoderCfg *encoderCfg; 22 InputDevice *inputDev; 23 OsalTimer timer; 24 uint16_t encoderClkPreSta; 25 uint16_t encoderClkNowSta; 26 uint16_t encoderDataPreSta; 27 uint16_t encoderDataNowSta; 28 uint16_t encoderSWPreSta; 29 uint16_t encoderSWNowSta 30 } EncoderDriver; 31 32 #endif