comparison src/cs/drivers/drv_app/r2d/r2d_messages.h @ 217:6541e43f88e5

R2D display on/off control implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 24 Apr 2021 23:38:18 +0000
parents 4e78acac3d88
children
comparison
equal deleted inserted replaced
216:777698cf6583 217:6541e43f88e5
1 /****************************************************************************/ 1 /****************************************************************************/
2 /* */ 2 /* */
3 /* File Name: xxx_messages.h */ 3 /* File Name: r2d_messages.h */
4 /* */ 4 /* */
5 /* Purpose: This file contains data structures and functions prototypes */ 5 /* Purpose: This file contains data structures and functions prototypes */
6 /* used to send events to the XXX SWE. */ 6 /* used to send events to the R2D SWE. */
7 /* */ 7 /* */
8 /* Version 0.1 */ 8 /* Version 0.1 */
9 /* */ 9 /* */
10 /* Date Modification */ 10 /* Date Modification */
11 /* ------------------------------------ */ 11 /* ------------------------------------ */
12 /* 20/08/2000 Create */ 12 /* 20/08/2000 Create */
13 /* */ 13 /* */
14 /* Author David Lamy-Charrier (dlamy@tif.ti.com) */ 14 /* Author David Lamy-Charrier (dlamy@tif.ti.com) */
15 /* */ 15 /* */
16 /* (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved*/ 16 /* (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved*/
17 /****************************************************************************/ 17 /****************************************************************************/
18 #ifndef __R2D_MESSAGES_H_ 18 #ifndef __R2D_MESSAGES_H_
19 #define __R2D_MESSAGES_H_ 19 #define __R2D_MESSAGES_H_
20 20
25 extern "C" 25 extern "C"
26 { 26 {
27 #endif 27 #endif
28 28
29 29
30
31
32 /* the message offset must differ for each SWE in order to have unique msg_id in the system */ 30 /* the message offset must differ for each SWE in order to have unique msg_id in the system */
33 #define R2D_MESSAGES_OFFSET (0x36 << 10) 31 #define R2D_MESSAGES_OFFSET (0x36 << 10)
34 32
35 33
36 /* define a first msg id */ 34 /* define a first msg id */
37 #define R2D_MESSAGE_1 (R2D_MESSAGES_OFFSET | 0x0001) 35 #define R2D_MESSAGE_ONOFF (R2D_MESSAGES_OFFSET | 0x0001)
38
39 36
40 37
41 /*****************************************/ 38 /*****************************************/
42 /* structures of messages send to R2D */ 39 /* structures of messages send to R2D */
43 typedef struct 40 typedef struct
44 { T_RV_HDR os_hdr; 41 { T_RV_HDR os_hdr;
45 BOOLEAN status; 42 UINT16 status;
46 } T_R2D_EVT; 43 } T_R2D_EVT;
47
48 44
49 45
50 #ifdef __cplusplus 46 #ifdef __cplusplus
51 } 47 }
52 #endif 48 #endif
53 49
54 50
55 #endif /* __R2D_MESSAGES_H_ */ 51 #endif /* __R2D_MESSAGES_H_ */
56