123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /******************************************************************************
- Copyright (C), 2001-2018, Hisilicon Tech. Co., Ltd.
- ******************************************************************************
- File Name : hi_api_ddal.h
- Version : Initial Draft
- Author : Hisilicon multimedia software group
- Created : 2007/01/23
- Description : Hi_IR.c header file
- History :
- 1.Date : 2007/01/23
- Modification: Created file
- ******************************************************************************/
- #ifndef __HI_IR_H__
- #define __HI_IR_H__
- #define OSDRV_MODULE_VERSION_STRING "HISI_IRDA-MF @Hi3518ev200R001"
- /* define device name */
- #define HIIR_DEVICE_NAME "Hi_IR"
- /* Ioctl definitions */
- #define IR_IOC_SET_BUF 0x01
- #define IR_IOC_SET_ENABLE_KEYUP 0x02// 1:check keyup
- #define IR_IOC_SET_ENABLE_REPKEY 0x03// 1:check repkey, 0:hardware behave
- #define IR_IOC_SET_REPKEY_TIMEOUTVAL 0x04
- #define IR_IOC_SET_FORMAT 0x10
- #define IR_IOC_SET_CODELEN 0x11
- #define IR_IOC_SET_FREQ 0x12
- #define IR_IOC_SET_LEADS 0x13
- #define IR_IOC_SET_LEADE 0x14
- #define IR_IOC_SET_SLEADE 0x15
- #define IR_IOC_SET_CNT0_B 0x16
- #define IR_IOC_SET_CNT1_B 0x17
- #define IR_IOC_GET_CONFIG 0x20
- #define IR_IOC_ENDBG 0x31
- #define IR_IOC_DISDBG 0x32
- /* device parameter */
- typedef struct
- {
- unsigned short int leads_min;
- unsigned short int leads_max;
- unsigned short int leade_min;
- unsigned short int leade_max;
- unsigned short int cnt0_b_min;
- unsigned short int cnt0_b_max;
- unsigned short int cnt1_b_min;
- unsigned short int cnt1_b_max;
- unsigned short int sleade_min;
- unsigned short int sleade_max;
- unsigned short int code_len;
- unsigned short int codetype;
- unsigned short int frequence;
- }hiir_dev_param;
- #define HIIR_DEFAULT_FREQ 24//24M
- /* DEFINE KEY STATE */
- #define HIIR_KEY_DOWN 0x00
- #define HIIR_KEY_UP 0x01
- typedef struct
- {
- unsigned long irkey_datah;
- unsigned long irkey_datal;
- unsigned long irkey_state_code;
- }irkey_info_s;
- #endif /* End of #ifndef __HI_IR_H__*/
|