comparison chipsetsw/drivers/drv_app/kpd/kpd_power_api.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /**
2 * @file kpd_power_api.h
3 *
4 * API Definition for keypad driver, used bi PWR SWE.
5 *
6 *
7 * @author Laurent Sollier (l-sollier@ti.com)
8 * @version 0.1
9 */
10
11 /*
12 * History:
13 *
14 * Date Author Modification
15 * ----------------------------------------
16 * 11/02/2001 L Sollier Create
17 *
18 *
19 * (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
20 */
21
22 #ifndef _KPD_POWER_API_H_
23 #define _KPD_POWER_API_H_
24
25 #include "kpd/kpd_cfg.h"
26 #include "kpd/kpd_api.h"
27
28 #include "rv/rv_general.h"
29 #include "rvf/rvf_api.h"
30
31
32 /* This structure defines the two functions to call when PWR key is pressed */
33 typedef struct { void (*pressed)(T_KPD_VIRTUAL_KEY_ID);
34 void (*released)(void);
35 } T_KPD_KEYPAD;
36
37
38
39 #ifdef __cplusplus
40 extern "C"
41 {
42 #endif
43
44 /**
45 * @name API functions
46 *
47 * API functions declarations.
48 */
49 /*@{*/
50
51 /**
52 * function: kpd_power_key_pressed
53 *
54 * This function is called by the PWR SWE when the PWR key is pressed.
55 *
56 * @return
57 * - RV_OK if operation is successfull,
58 * - RV_MEMORY_ERR if message could not be sent to the keypad task.
59 * - RV_INTERNAL_ERR if keypad driver is not yet initialized.
60 *
61 */
62 T_RV_RET kpd_power_key_pressed(void);
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68
69 #endif /* #ifndef _KPD_POWER_API_H_ */