blob: 5882bf51b16713b85b9876dd65d7758f9df1fd6c [file] [log] [blame]
Keun Soo Yim6473c642016-10-10 13:42:31 -07001component_class: HAL_HIDL
Keun Soo Yim6473c642016-10-10 13:42:31 -07002component_type_version: 1.0
3component_name: "INfc"
4
5package: "android.hardware.nfc"
6
7import: "android.hardware.nfc@1.0::INfcClientCallback"
8import: "android.hardware.nfc@1.0::types"
9
10interface: {
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070011 api: {
12 name: "open"
13 return_type_hidl: {
Ruchi Kandoi891d8432016-11-21 10:59:58 -080014 type: TYPE_ENUM
15 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070016 }
17 arg: {
18 type: TYPE_HIDL_CALLBACK
19 predefined_type: "INfcClientCallback"
20 is_callback: true
21 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -080022 callflow: {
23 entry: true
24 }
25 callflow: {
26 next: "write"
27 next: "coreInitialized"
28 next: "prediscover"
29 next: "powerCycle"
30 next: "controlGranted"
31 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070032 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070033
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070034 api: {
35 name: "write"
36 return_type_hidl: {
37 type: TYPE_SCALAR
Ruchi Kandoi891d8432016-11-21 10:59:58 -080038 scalar_type: "uint32_t"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070039 }
40 arg: {
41 type: TYPE_VECTOR
42 vector_value: {
43 type: TYPE_SCALAR
44 scalar_type: "uint8_t"
45 }
46 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -080047 callflow: {
48 next: "write"
49 next: "prediscover"
50 next: "coreInitialized"
51 next: "close"
52 next: "powerCycle"
53 next: "controlGranted"
54 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070055 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070056
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070057 api: {
58 name: "coreInitialized"
59 return_type_hidl: {
Ruchi Kandoi891d8432016-11-21 10:59:58 -080060 type: TYPE_ENUM
61 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070062 }
63 arg: {
64 type: TYPE_VECTOR
65 vector_value: {
66 type: TYPE_SCALAR
67 scalar_type: "uint8_t"
68 }
69 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -080070 callflow: {
71 next: "write"
72 next: "prediscover"
73 next: "close"
74 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070075 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070076
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070077 api: {
78 name: "prediscover"
79 return_type_hidl: {
Ruchi Kandoi891d8432016-11-21 10:59:58 -080080 type: TYPE_ENUM
81 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070082 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -080083 callflow: {
84 next: "write"
85 next: "close"
86 next: "coreInitialized"
87 next: "powerCycle"
88 next: "controlGranted"
89 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070090 }
Keun Soo Yim6473c642016-10-10 13:42:31 -070091
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070092 api: {
93 name: "close"
94 return_type_hidl: {
Ruchi Kandoi891d8432016-11-21 10:59:58 -080095 type: TYPE_ENUM
96 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -070097 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -080098 callflow: {
99 exit: true
100 }
Keun Soo Yim6473c642016-10-10 13:42:31 -0700101 }
Keun Soo Yim6473c642016-10-10 13:42:31 -0700102
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -0700103 api: {
104 name: "controlGranted"
105 return_type_hidl: {
Ruchi Kandoi891d8432016-11-21 10:59:58 -0800106 type: TYPE_ENUM
107 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -0700108 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -0800109 callflow: {
110 next: "write"
111 next: "close"
112 next: "prediscover"
113 next: "coreInitialized"
114 next: "powerCycle"
115 }
Keun Soo Yim6473c642016-10-10 13:42:31 -0700116 }
Keun Soo Yim6473c642016-10-10 13:42:31 -0700117
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -0700118 api: {
119 name: "powerCycle"
120 return_type_hidl: {
Ruchi Kandoi891d8432016-11-21 10:59:58 -0800121 type: TYPE_ENUM
122 predefined_type: "::android::hardware::nfc::V1_0::NfcStatus"
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -0700123 }
Ruchi Kandoi6360a882016-11-15 15:10:38 -0800124 callflow: {
125 next: "write"
126 next: "coreInitialized"
127 next: "prediscover"
128 next: "controlGranted"
129 next: "close"
130 }
Keun Soo Yim6473c642016-10-10 13:42:31 -0700131 }
Zhuoyao Zhang540a1ca2016-10-11 10:03:46 -0700132
Keun Soo Yim6473c642016-10-10 13:42:31 -0700133}