Android Hardware Abstraction Layer
Macros
nfc_target.h File Reference
#include "data_types.h"
#include "gki_target.h"
#include "bt_types.h"
#include "dyn_mem.h"
#include "bt_trace.h"

Go to the source code of this file.

Macros

#define NFC_API   EXPORT_API
 
#define LLCP_API   EXPORT_API
 
#define NFC_MBOX_EVT_MASK   (TASK_MBOX_0_EVT_MASK)
 
#define NFC_MBOX_ID   (TASK_MBOX_0)
 
#define NFA_MBOX_EVT_MASK   (TASK_MBOX_2_EVT_MASK)
 
#define NFA_MBOX_ID   (TASK_MBOX_2)
 
#define NFC_TIMER_ID   (TIMER_0)
 
#define NFC_TIMER_EVT_MASK   (TIMER_0_EVT_MASK)
 
#define NFC_QUICK_TIMER_ID   (TIMER_1)
 
#define NFC_QUICK_TIMER_EVT_MASK   (TIMER_1_EVT_MASK)
 
#define NFA_TIMER_ID   (TIMER_2)
 
#define NFA_TIMER_EVT_MASK   (TIMER_2_EVT_MASK)
 
#define NFC_NCI_POOL_ID   GKI_POOL_ID_2
 
#define NFC_NCI_POOL_BUF_SIZE   GKI_BUF2_SIZE
 
#define NFC_RW_POOL_ID   GKI_POOL_ID_2
 
#define NFC_RW_POOL_BUF_SIZE   GKI_BUF2_SIZE
 
#define NFC_CE_POOL_ID   GKI_POOL_ID_2
 
#define NFC_CE_POOL_BUF_SIZE   GKI_BUF2_SIZE
 
#define NFC_HAL_NCI_POOL_ID   NFC_NCI_POOL_ID
 
#define NFC_HAL_NCI_POOL_BUF_SIZE   NFC_NCI_POOL_BUF_SIZE
 
#define NCI_MSG_OFFSET_SIZE   1
 
#define NFC_RESTORE_BAUD_ON_SHUTDOWN   TRUE
 
#define NCI_VERSION_0_F   0x0F
 
#define NCI_VERSION_1_0   0x10
 
#define NCI_VERSION   NCI_VERSION_1_0
 
#define NFC_I2C_PATCH_INCLUDED   TRUE /* NFC-Android uses this!!! */
 
#define NFC_INCLUDED   TRUE
 
#define NFC_BRCM_VS_INCLUDED   TRUE
 
#define NFC_RW_ONLY   FALSE
 
#define NFC_DYNAMIC_MEMORY   FALSE
 
#define NFC_CMD_CMPL_TIMEOUT   2
 
#define NFC_DEACTIVATE_TIMEOUT   2
 
#define NFC_NUM_VS_CBACKS   3
 
#define NCI_MAX_CONN_CBS   4
 
#define NCI_MAX_CMD_WINDOW   1
 
#define NFC_NFCEE_INCLUDED   TRUE
 
#define NFC_MAX_EE_INTERFACE   3
 
#define NFC_MAX_EE_INFO   8
 
#define NFC_MAX_EE_TLVS   1
 
#define NFC_MAX_EE_TLV_SIZE   150
 
#define NFA_EE_DISCV_TIMEOUT_VAL   2000
 
#define RW_MAX_RETRIES   5
 
#define RW_NDEF_INCLUDED   TRUE
 
#define RW_T1T_TOUT_RESP   100
 
#define CE_T2T_TOUT_RESP   1000
 
#define RW_T2T_TOUT_RESP   150 /* Android requires 150 instead of 100 for presence-check*/
 
#define RW_T2T_SEC_SEL_TOUT_RESP   10
 
#define RW_T3T_TOUT_RESP   100 /* NFC-Android will use 100 instead of 75 for T3t presence-check */
 
#define CE_T3T_MRTI_C   0xFF
 
#define CE_T3T_MRTI_U   0xFF
 
#define CE_T3T_DEFAULT_UPDATE_MAXBLOCKS   3
 
#define CE_T3T_DEFAULT_CHECK_MAXBLOCKS   3
 
#define CE_T4T_ISO_DEP_FWI   7
 
#define RW_T4T_TOUT_RESP   1000
 
#define CE_T4T_TOUT_UPDATE   1000
 
#define CE_T4T_MANDATORY_NDEF_FILE_ID   0x1000
 
#define CE_T4T_MAX_REG_AID   4
 
#define RW_I93_FLAG_SUB_CARRIER   I93_FLAG_SUB_CARRIER_SINGLE
 
#define RW_I93_FLAG_DATA_RATE   I93_FLAG_DATA_RATE_HIGH
 
#define CE_TEST_INCLUDED   FALSE
 
#define QUICK_TIMER_TICKS_PER_SEC   100 /* 10ms timer */
 
#define LLCP_TEST_INCLUDED   FALSE
 
#define LLCP_POOL_ID   GKI_POOL_ID_3
 
#define LLCP_POOL_BUF_SIZE   GKI_BUF3_SIZE
 
#define LLCP_MIU   (LLCP_POOL_BUF_SIZE - BT_HDR_SIZE - NCI_MSG_OFFSET_SIZE - NCI_DATA_HDR_SIZE - LLCP_PDU_HEADER_SIZE)
 
#define LLCP_LTO_VALUE   1000 /* Default is 100ms. It should be sufficiently larger than RWT */
 
#define LLCP_INTERNAL_TX_DELAY   210
 
#define LLCP_INTERNAL_RX_DELAY   210
 
#define LLCP_DELAY_RESP_TIME   20 /* in ms */
 
#define LLCP_INIT_INACTIVITY_TIMEOUT   0 /* in ms */
 
#define LLCP_TARGET_INACTIVITY_TIMEOUT   0 /* in ms */
 
#define LLCP_DELAY_TIME_TO_SEND_FIRST_PDU   50 /* in ms */
 
#define LLCP_WAITING_TIME   7 /* its scaled value should be less than LTO */
 
#define LLCP_OPT_VALUE   LLCP_LSC_3 /* Link Service Class 3 */
 
#define LLCP_DATA_LINK_CONNECTION_TOUT   1000
 
#define LLCP_MAX_SN_LEN   255 /* max length of service name */
 
#define LLCP_MAX_WKS   5
 
#define LLCP_MAX_SERVER   10
 
#define LLCP_MAX_CLIENT   20
 
#define LLCP_MAX_DATA_LINK   16
 
#define LLCP_MAX_SDP_TRANSAC   16
 
#define LLCP_RX_BUFF_RATIO   30
 
#define LLCP_RX_CONGEST_END   50
 
#define LLCP_RX_CONGEST_START   70
 
#define LLCP_LL_RX_BUFF_LIMIT   30
 
#define LLCP_DL_MIN_RX_CONGEST   4
 
#define LLCP_LL_TX_BUFF_LIMIT   30
 
#define NFA_DYNAMIC_MEMORY   FALSE
 
#define NFA_INCLUDED   TRUE
 
#define NFA_P2P_INCLUDED   TRUE
 
#define NFA_HCI_NETWK_INIT_IDLE_TIMEOUT   1000
 
#define NFA_HCI_MAX_HOST_IN_NETWORK   0x06
 
#define NFA_HCI_MAX_APP_CB   0x05
 
#define NFA_HCI_MAX_GATE_CB   0x06
 
#define NFA_HCI_MAX_PIPE_CB   0x08
 
#define NFA_HCI_RESPONSE_TIMEOUT   1000
 
#define NFA_DM_DISC_DURATION_POLL   500 /* Android requires 500 */
 
#define NFA_DM_AUTO_DETECT_NDEF   FALSE /* !!!!! NFC-Android needs FALSE */
 
#define NFA_DM_AUTO_READ_NDEF   FALSE /* !!!!! NFC-Android needs FALSE */
 
#define NFA_DM_AUTO_PRESENCE_CHECK   FALSE /* Android requires FALSE */
 
#define NFA_DM_DEFAULT_PRESENCE_CHECK_START_DELAY   750
 
#define NFA_DM_DISC_TIMEOUT_KOVIO_PRESENCE_CHECK   (1000)
 
#define NFA_NDEF_MAX_HANDLERS   8
 
#define NFA_CE_LISTEN_INFO_MAX   5
 
#define NFA_CHO_INCLUDED   FALSE /* Anddroid must use FALSE to exclude CHO */
 
#define NFA_CHO_MIU   499
 
#define NFA_CHO_RW   4
 
#define NFA_CHO_MAX_AC_INFO   2
 
#define NFA_CHO_MAX_REF_NAME_LEN   8
 
#define NFA_CHO_MAX_AUX_DATA_COUNT   2
 
#define NFA_CHO_TEST_INCLUDED   FALSE
 
#define NFA_SNEP_INCLUDED   FALSE /* Android must use FALSE to exclude SNEP */
 
#define NFA_SNEP_DEFAULT_SERVER_MAX_NDEF_SIZE   500000
 
#define NFA_SNEP_MAX_CONN   6
 
#define NFA_SNEP_DEFAULT_MAX_CONN   3
 
#define NFA_SNEP_MIU   1980 /* Modified for NFC-A */
 
#define NFA_SNEP_RW   2 /* Modified for NFC-A */
 
#define NFA_EE_MAX_EE_SUPPORTED   3 /* Modified for NFC-A until we add dynamic support */
 
#define NFA_EE_MAX_AID_ENTRIES   (10)
 
#define NFA_EE_MAX_CBACKS   (3)
 
#define NFA_DTA_INCLUDED   TRUE
 
#define HAL_WRITE(p)   {nfc_cb.p_hal->write(p->len, (UINT8 *)(p+1) + p->offset); GKI_freebuf(p);}
 

Macro Definition Documentation

#define CE_T2T_TOUT_RESP   1000

Definition at line 275 of file nfc_target.h.

#define CE_T3T_DEFAULT_CHECK_MAXBLOCKS   3

Definition at line 307 of file nfc_target.h.

#define CE_T3T_DEFAULT_UPDATE_MAXBLOCKS   3

Definition at line 303 of file nfc_target.h.

#define CE_T3T_MRTI_C   0xFF

Definition at line 295 of file nfc_target.h.

#define CE_T3T_MRTI_U   0xFF

Definition at line 298 of file nfc_target.h.

#define CE_T4T_ISO_DEP_FWI   7

Definition at line 312 of file nfc_target.h.

#define CE_T4T_MANDATORY_NDEF_FILE_ID   0x1000

Definition at line 327 of file nfc_target.h.

#define CE_T4T_MAX_REG_AID   4

Definition at line 332 of file nfc_target.h.

#define CE_T4T_TOUT_UPDATE   1000

Definition at line 322 of file nfc_target.h.

#define CE_TEST_INCLUDED   FALSE

Definition at line 347 of file nfc_target.h.

#define HAL_WRITE (   p)    {nfc_cb.p_hal->write(p->len, (UINT8 *)(p+1) + p->offset); GKI_freebuf(p);}

Definition at line 678 of file nfc_target.h.

#define LLCP_API   EXPORT_API

Definition at line 40 of file nfc_target.h.

#define LLCP_DATA_LINK_CONNECTION_TOUT   1000

Definition at line 441 of file nfc_target.h.

#define LLCP_DELAY_RESP_TIME   20 /* in ms */

Definition at line 411 of file nfc_target.h.

#define LLCP_DELAY_TIME_TO_SEND_FIRST_PDU   50 /* in ms */

Definition at line 426 of file nfc_target.h.

#define LLCP_DL_MIN_RX_CONGEST   4

Definition at line 496 of file nfc_target.h.

#define LLCP_INIT_INACTIVITY_TIMEOUT   0 /* in ms */

Definition at line 416 of file nfc_target.h.

#define LLCP_INTERNAL_RX_DELAY   210

Definition at line 406 of file nfc_target.h.

#define LLCP_INTERNAL_TX_DELAY   210

Definition at line 394 of file nfc_target.h.

#define LLCP_LL_RX_BUFF_LIMIT   30

Definition at line 491 of file nfc_target.h.

#define LLCP_LL_TX_BUFF_LIMIT   30

Definition at line 501 of file nfc_target.h.

#define LLCP_LTO_VALUE   1000 /* Default is 100ms. It should be sufficiently larger than RWT */

Definition at line 382 of file nfc_target.h.

#define LLCP_MAX_CLIENT   20

Definition at line 461 of file nfc_target.h.

#define LLCP_MAX_DATA_LINK   16

Definition at line 466 of file nfc_target.h.

#define LLCP_MAX_SDP_TRANSAC   16

Definition at line 471 of file nfc_target.h.

#define LLCP_MAX_SERVER   10

Definition at line 456 of file nfc_target.h.

#define LLCP_MAX_SN_LEN   255 /* max length of service name */

Definition at line 446 of file nfc_target.h.

#define LLCP_MAX_WKS   5

Definition at line 451 of file nfc_target.h.

#define LLCP_MIU   (LLCP_POOL_BUF_SIZE - BT_HDR_SIZE - NCI_MSG_OFFSET_SIZE - NCI_DATA_HDR_SIZE - LLCP_PDU_HEADER_SIZE)

Definition at line 377 of file nfc_target.h.

#define LLCP_OPT_VALUE   LLCP_LSC_3 /* Link Service Class 3 */

Definition at line 436 of file nfc_target.h.

#define LLCP_POOL_BUF_SIZE   GKI_BUF3_SIZE

Definition at line 372 of file nfc_target.h.

#define LLCP_POOL_ID   GKI_POOL_ID_3

Definition at line 368 of file nfc_target.h.

#define LLCP_RX_BUFF_RATIO   30

Definition at line 476 of file nfc_target.h.

#define LLCP_RX_CONGEST_END   50

Definition at line 481 of file nfc_target.h.

#define LLCP_RX_CONGEST_START   70

Definition at line 486 of file nfc_target.h.

#define LLCP_TARGET_INACTIVITY_TIMEOUT   0 /* in ms */

Definition at line 421 of file nfc_target.h.

#define LLCP_TEST_INCLUDED   FALSE

Definition at line 364 of file nfc_target.h.

#define LLCP_WAITING_TIME   7 /* its scaled value should be less than LTO */

Definition at line 431 of file nfc_target.h.

#define NCI_MAX_CMD_WINDOW   1

Definition at line 225 of file nfc_target.h.

#define NCI_MAX_CONN_CBS   4

Definition at line 220 of file nfc_target.h.

#define NCI_MSG_OFFSET_SIZE   1

Definition at line 149 of file nfc_target.h.

#define NCI_VERSION   NCI_VERSION_1_0

Definition at line 167 of file nfc_target.h.

#define NCI_VERSION_0_F   0x0F

Definition at line 163 of file nfc_target.h.

#define NCI_VERSION_1_0   0x10

Definition at line 164 of file nfc_target.h.

#define NFA_CE_LISTEN_INFO_MAX   5

Definition at line 588 of file nfc_target.h.

#define NFA_CHO_INCLUDED   FALSE /* Anddroid must use FALSE to exclude CHO */

Definition at line 592 of file nfc_target.h.

#define NFA_CHO_MAX_AC_INFO   2

Definition at line 607 of file nfc_target.h.

#define NFA_CHO_MAX_AUX_DATA_COUNT   2

Definition at line 617 of file nfc_target.h.

#define NFA_CHO_MAX_REF_NAME_LEN   8

Definition at line 612 of file nfc_target.h.

#define NFA_CHO_MIU   499

Definition at line 597 of file nfc_target.h.

#define NFA_CHO_RW   4

Definition at line 602 of file nfc_target.h.

#define NFA_CHO_TEST_INCLUDED   FALSE

Definition at line 621 of file nfc_target.h.

#define NFA_DM_AUTO_DETECT_NDEF   FALSE /* !!!!! NFC-Android needs FALSE */

Definition at line 557 of file nfc_target.h.

#define NFA_DM_AUTO_PRESENCE_CHECK   FALSE /* Android requires FALSE */

Definition at line 567 of file nfc_target.h.

#define NFA_DM_AUTO_READ_NDEF   FALSE /* !!!!! NFC-Android needs FALSE */

Definition at line 562 of file nfc_target.h.

#define NFA_DM_DEFAULT_PRESENCE_CHECK_START_DELAY   750

Definition at line 572 of file nfc_target.h.

#define NFA_DM_DISC_DURATION_POLL   500 /* Android requires 500 */

Definition at line 552 of file nfc_target.h.

#define NFA_DM_DISC_TIMEOUT_KOVIO_PRESENCE_CHECK   (1000)

Definition at line 577 of file nfc_target.h.

#define NFA_DTA_INCLUDED   TRUE

Definition at line 669 of file nfc_target.h.

#define NFA_DYNAMIC_MEMORY   FALSE

Definition at line 510 of file nfc_target.h.

#define NFA_EE_DISCV_TIMEOUT_VAL   2000

Definition at line 255 of file nfc_target.h.

#define NFA_EE_MAX_AID_ENTRIES   (10)

Definition at line 660 of file nfc_target.h.

#define NFA_EE_MAX_CBACKS   (3)

Definition at line 665 of file nfc_target.h.

#define NFA_EE_MAX_EE_SUPPORTED   3 /* Modified for NFC-A until we add dynamic support */

Definition at line 655 of file nfc_target.h.

#define NFA_HCI_MAX_APP_CB   0x05

Definition at line 532 of file nfc_target.h.

#define NFA_HCI_MAX_GATE_CB   0x06

Definition at line 537 of file nfc_target.h.

#define NFA_HCI_MAX_HOST_IN_NETWORK   0x06

Definition at line 527 of file nfc_target.h.

#define NFA_HCI_MAX_PIPE_CB   0x08

Definition at line 542 of file nfc_target.h.

#define NFA_HCI_NETWK_INIT_IDLE_TIMEOUT   1000

Definition at line 523 of file nfc_target.h.

#define NFA_HCI_RESPONSE_TIMEOUT   1000

Definition at line 547 of file nfc_target.h.

#define NFA_INCLUDED   TRUE

Definition at line 514 of file nfc_target.h.

#define NFA_MBOX_EVT_MASK   (TASK_MBOX_2_EVT_MASK)

Definition at line 60 of file nfc_target.h.

#define NFA_MBOX_ID   (TASK_MBOX_2)

Definition at line 65 of file nfc_target.h.

#define NFA_NDEF_MAX_HANDLERS   8

Definition at line 582 of file nfc_target.h.

#define NFA_P2P_INCLUDED   TRUE

Definition at line 518 of file nfc_target.h.

#define NFA_SNEP_DEFAULT_MAX_CONN   3

Definition at line 640 of file nfc_target.h.

#define NFA_SNEP_DEFAULT_SERVER_MAX_NDEF_SIZE   500000

Definition at line 630 of file nfc_target.h.

#define NFA_SNEP_INCLUDED   FALSE /* Android must use FALSE to exclude SNEP */

Definition at line 625 of file nfc_target.h.

#define NFA_SNEP_MAX_CONN   6

Definition at line 635 of file nfc_target.h.

#define NFA_SNEP_MIU   1980 /* Modified for NFC-A */

Definition at line 645 of file nfc_target.h.

#define NFA_SNEP_RW   2 /* Modified for NFC-A */

Definition at line 650 of file nfc_target.h.

#define NFA_TIMER_EVT_MASK   (TIMER_2_EVT_MASK)

Definition at line 95 of file nfc_target.h.

#define NFA_TIMER_ID   (TIMER_2)

Definition at line 90 of file nfc_target.h.

#define NFC_API   EXPORT_API

Definition at line 39 of file nfc_target.h.

#define NFC_BRCM_VS_INCLUDED   TRUE

Definition at line 186 of file nfc_target.h.

#define NFC_CE_POOL_BUF_SIZE   GKI_BUF2_SIZE

Definition at line 128 of file nfc_target.h.

#define NFC_CE_POOL_ID   GKI_POOL_ID_2

Definition at line 124 of file nfc_target.h.

#define NFC_CMD_CMPL_TIMEOUT   2

Definition at line 205 of file nfc_target.h.

#define NFC_DEACTIVATE_TIMEOUT   2

Definition at line 210 of file nfc_target.h.

#define NFC_DYNAMIC_MEMORY   FALSE

Definition at line 200 of file nfc_target.h.

#define NFC_HAL_NCI_POOL_BUF_SIZE   NFC_NCI_POOL_BUF_SIZE

Definition at line 138 of file nfc_target.h.

#define NFC_HAL_NCI_POOL_ID   NFC_NCI_POOL_ID

Definition at line 134 of file nfc_target.h.

#define NFC_I2C_PATCH_INCLUDED   TRUE /* NFC-Android uses this!!! */

Definition at line 172 of file nfc_target.h.

#define NFC_INCLUDED   TRUE

Definition at line 181 of file nfc_target.h.

#define NFC_MAX_EE_INFO   8

Definition at line 240 of file nfc_target.h.

#define NFC_MAX_EE_INTERFACE   3

Definition at line 235 of file nfc_target.h.

#define NFC_MAX_EE_TLV_SIZE   150

Definition at line 250 of file nfc_target.h.

#define NFC_MAX_EE_TLVS   1

Definition at line 245 of file nfc_target.h.

#define NFC_MBOX_EVT_MASK   (TASK_MBOX_0_EVT_MASK)

Definition at line 50 of file nfc_target.h.

#define NFC_MBOX_ID   (TASK_MBOX_0)

Definition at line 55 of file nfc_target.h.

#define NFC_NCI_POOL_BUF_SIZE   GKI_BUF2_SIZE

Definition at line 110 of file nfc_target.h.

#define NFC_NCI_POOL_ID   GKI_POOL_ID_2

Definition at line 106 of file nfc_target.h.

#define NFC_NFCEE_INCLUDED   TRUE

Definition at line 230 of file nfc_target.h.

#define NFC_NUM_VS_CBACKS   3

Definition at line 215 of file nfc_target.h.

#define NFC_QUICK_TIMER_EVT_MASK   (TIMER_1_EVT_MASK)

Definition at line 85 of file nfc_target.h.

#define NFC_QUICK_TIMER_ID   (TIMER_1)

Definition at line 80 of file nfc_target.h.

#define NFC_RESTORE_BAUD_ON_SHUTDOWN   TRUE

Definition at line 154 of file nfc_target.h.

#define NFC_RW_ONLY   FALSE

Definition at line 193 of file nfc_target.h.

#define NFC_RW_POOL_BUF_SIZE   GKI_BUF2_SIZE

Definition at line 119 of file nfc_target.h.

#define NFC_RW_POOL_ID   GKI_POOL_ID_2

Definition at line 115 of file nfc_target.h.

#define NFC_TIMER_EVT_MASK   (TIMER_0_EVT_MASK)

Definition at line 75 of file nfc_target.h.

#define NFC_TIMER_ID   (TIMER_0)

Definition at line 70 of file nfc_target.h.

#define QUICK_TIMER_TICKS_PER_SEC   100 /* 10ms timer */

Definition at line 353 of file nfc_target.h.

#define RW_I93_FLAG_DATA_RATE   I93_FLAG_DATA_RATE_HIGH

Definition at line 342 of file nfc_target.h.

#define RW_I93_FLAG_SUB_CARRIER   I93_FLAG_SUB_CARRIER_SINGLE

Definition at line 337 of file nfc_target.h.

#define RW_MAX_RETRIES   5

Definition at line 260 of file nfc_target.h.

#define RW_NDEF_INCLUDED   TRUE

Definition at line 265 of file nfc_target.h.

#define RW_T1T_TOUT_RESP   100

Definition at line 270 of file nfc_target.h.

#define RW_T2T_SEC_SEL_TOUT_RESP   10

Definition at line 285 of file nfc_target.h.

#define RW_T2T_TOUT_RESP   150 /* Android requires 150 instead of 100 for presence-check*/

Definition at line 280 of file nfc_target.h.

#define RW_T3T_TOUT_RESP   100 /* NFC-Android will use 100 instead of 75 for T3t presence-check */

Definition at line 290 of file nfc_target.h.

#define RW_T4T_TOUT_RESP   1000

Definition at line 317 of file nfc_target.h.