ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
su_misc.h
浏览该文件的文档.
1 /*
2  * Misc utils header file.
3  *
4  * Copyright (C) 2014 Ingenic Semiconductor Co.,Ltd
5  */
6 
7 #ifndef __SU_MISC_H__
8 #define __SU_MISC_H__
9 
10 #ifdef __cplusplus
11 #if __cplusplus
12 extern "C"
13 {
14 #endif
15 #endif /* __cplusplus */
16 
32 typedef enum {
35 } SUKeyEvent;
36 
40 typedef enum {
43 } SULedCmd;
44 
62 int SU_Key_OpenEvent(void);
63 
78 int SU_Key_CloseEvent(int evfd);
79 
142 int SU_Key_ReadEvent(int evfd, int *keyCode, SUKeyEvent *event);
143 
160 int SU_Key_DisableEvent(int keyCode);
161 
176 int SU_Key_EnableEvent(int keyCode);
177 
236 int SU_LED_Command(int ledNum, SULedCmd cmd);
237 
238 #ifdef __cplusplus
239 #if __cplusplus
240 }
241 #endif
242 #endif /* __cplusplus */
243 
244 #endif /* __SU_MISC_H__ */
int SU_Key_ReadEvent(int evfd, int *keyCode, SUKeyEvent *event)
读取按键事件.
int SU_Key_CloseEvent(int evfd)
关闭按键事件.
int SU_Key_OpenEvent(void)
获得按键事件句柄.
SULedCmd
LED行为命令.
Definition: su_misc.h:40
SUKeyEvent
按键事件.
Definition: su_misc.h:32
LED打开
Definition: su_misc.h:42
LED关闭
Definition: su_misc.h:41
int SU_LED_Command(int ledNum, SULedCmd cmd)
发送LED命令.
int SU_Key_DisableEvent(int keyCode)
Disable按键事件.
按键按下
Definition: su_misc.h:34
按键抬起
Definition: su_misc.h:33
int SU_Key_EnableEvent(int keyCode)
Enable按键事件.