Go to the documentation of this file.
70 #define NFC_HCI_FRAGMENT 0x7f
72 #define HCP_HEADER(type, instr) ((((type) & 0x03) << 6) | ((instr) & 0x3f))
73 #define HCP_MSG_GET_TYPE(header) ((header & 0xc0) >> 6)
74 #define HCP_MSG_GET_CMD(header) (header & 0x3f)
80 unsigned long completion_delay);
88 #define NFC_HCI_HCP_PACKET_HEADER_LEN 1
89 #define NFC_HCI_HCP_MESSAGE_HEADER_LEN 1
90 #define NFC_HCI_HCP_HEADER_LEN 2
93 #define NFC_HCI_HCP_COMMAND 0x00
94 #define NFC_HCI_HCP_EVENT 0x01
95 #define NFC_HCI_HCP_RESPONSE 0x02
98 #define NFC_HCI_ANY_SET_PARAMETER 0x01
99 #define NFC_HCI_ANY_GET_PARAMETER 0x02
100 #define NFC_HCI_ANY_OPEN_PIPE 0x03
101 #define NFC_HCI_ANY_CLOSE_PIPE 0x04
104 #define NFC_HCI_WR_XCHG_DATA 0x10
107 #define NFC_HCI_ADM_CREATE_PIPE 0x10
108 #define NFC_HCI_ADM_DELETE_PIPE 0x11
109 #define NFC_HCI_ADM_NOTIFY_PIPE_CREATED 0x12
110 #define NFC_HCI_ADM_NOTIFY_PIPE_DELETED 0x13
111 #define NFC_HCI_ADM_CLEAR_ALL_PIPE 0x14
112 #define NFC_HCI_ADM_NOTIFY_ALL_PIPE_CLEARED 0x15
115 #define NFC_HCI_ANY_OK 0x00
116 #define NFC_HCI_ANY_E_NOT_CONNECTED 0x01
117 #define NFC_HCI_ANY_E_CMD_PAR_UNKNOWN 0x02
118 #define NFC_HCI_ANY_E_NOK 0x03
119 #define NFC_HCI_ANY_E_PIPES_FULL 0x04
120 #define NFC_HCI_ANY_E_REG_PAR_UNKNOWN 0x05
121 #define NFC_HCI_ANY_E_PIPE_NOT_OPENED 0x06
122 #define NFC_HCI_ANY_E_CMD_NOT_SUPPORTED 0x07
123 #define NFC_HCI_ANY_E_INHIBITED 0x08
124 #define NFC_HCI_ANY_E_TIMEOUT 0x09
125 #define NFC_HCI_ANY_E_REG_ACCESS_DENIED 0x0a
126 #define NFC_HCI_ANY_E_PIPE_ACCESS_DENIED 0x0b