blob: 5f90470d8a498737c16c82e8eaff5eed4cc31a77 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef __D2UM_PUBLIC_DEFS_H__
2#define __D2UM_PUBLIC_DEFS_H__
3
4// Compiler flag, NEED_TO_BE_NOTICED, set by the compiler
5// N/A
6
7// Type definition
8typedef enum
9{
10 D2UM_RES_FAIL = -1,
11 D2UM_RES_NONE,
12 D2UM_RES_SUCC,
13 D2UM_RES_MAX = 0x7FFFFFFF
14}d2um_res_enum;
15
16// Macros
17// => Custom
18// => => => Bitmap
19#define D2UM_ATTR_AUTH_MASK (0x0000000F)
20#define D2UM_ATTR_NO_AUTH (0x00000000)
21#define D2UM_ATTR_PDN_AUTH (0x00000001)
22#define D2UM_ATTR_EVENT_AUTH (0x00000002)
23#define D2UM_ATTR_ADMIN_AUTH (D2UM_ATTR_AUTH_MASK)
24// => => => Distinct value
25#define D2UM_ATTR_MSG_MASK (0x000000F0)
26#define D2UM_ATTR_NO_MSG (0x00000000)
27#define D2UM_ATTR_AT_MSG (0x00000010)
28#define D2UM_ATTR_ILM_MSG (0x00000020)
29#define D2UM_ATTR_CB_MSG (0x00000030)
30#define D2UM_ATTR_NETIF_MASK (0x00000F00)
31#define D2UM_ATTR_NO_NETIF (0x00000000)
32#define D2UM_ATTR_AP_NETIF (0x00000100)
33#define D2UM_ATTR_MD_NETIF (0x00000200)
34
35// Interface
36// N/A
37
38//Implementation
39// N/A
40
41#endif