mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-22 04:05:29 -04:00
cbaa19034f
Signed-off-by: YOUR_NAME <xieyingdong1@huawei.com>
32 lines
871 B
C
32 lines
871 B
C
/*
|
|
* Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
*
|
|
* HDF is dual licensed: you can use it either under the terms of
|
|
* the GPL, or the BSD license, at your option.
|
|
* See the LICENSE file in the root of this repository for complete details.
|
|
*/
|
|
#ifndef HDF_ENCODER_H
|
|
#define HDF_ENCODER_H
|
|
|
|
#include <securec.h>
|
|
#include "hdf_device_object.h"
|
|
#include "hdf_input_device_manager.h"
|
|
#include "input_config.h"
|
|
#include "osal_time.h"
|
|
#include "osal_timer.h"
|
|
|
|
typedef struct EncoderDriverInfo {
|
|
struct HdfDeviceObject *hdfEncoderDev;
|
|
uint8_t devType;
|
|
EncoderCfg *encoderCfg;
|
|
InputDevice *inputDev;
|
|
OsalTimer timer;
|
|
uint16_t encoderClkPreSta;
|
|
uint16_t encoderClkNowSta;
|
|
uint16_t encoderDataPreSta;
|
|
uint16_t encoderDataNowSta;
|
|
uint16_t encoderSWPreSta;
|
|
uint16_t encoderSWNowSta
|
|
} EncoderDriver;
|
|
|
|
#endif |