Android Hardware Abstraction Layer
Data Structures | Macros | Typedefs | Enumerations
nfc.h File Reference
#include <stdint.h>
#include <strings.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <hardware/hardware.h>

Go to the source code of this file.

Data Structures

struct  nfc_nci_module_t
 
struct  nfc_nci_device
 
struct  nfc_module_t
 
struct  nfc_pn544_device_t
 

Macros

#define NFC_NCI_HARDWARE_MODULE_ID   "nfc_nci"
 
#define NFC_NCI_CONTROLLER   "nci"
 
#define NFC_HARDWARE_MODULE_ID   "nfc"
 
#define NFC_PN544_CONTROLLER   "pn544"
 

Typedefs

typedef struct nfc_nci_module_t nfc_nci_module_t
 
typedef uint8_t nfc_event_t
 
typedef uint8_t nfc_status_t
 
typedef void( nfc_stack_callback_t )(nfc_event_t event, nfc_status_t event_status)
 
typedef void( nfc_stack_data_callback_t )(uint16_t data_len, uint8_t *p_data)
 
typedef struct nfc_nci_device nfc_nci_device_t
 
typedef struct nfc_module_t nfc_module_t
 

Enumerations

enum  {
  HAL_NFC_OPEN_CPLT_EVT = 0x00, HAL_NFC_CLOSE_CPLT_EVT = 0x01, HAL_NFC_POST_INIT_CPLT_EVT = 0x02, HAL_NFC_PRE_DISCOVER_CPLT_EVT = 0x03,
  HAL_NFC_REQUEST_CONTROL_EVT = 0x04, HAL_NFC_RELEASE_CONTROL_EVT = 0x05, HAL_NFC_ERROR_EVT = 0x06
}
 
enum  {
  HAL_NFC_STATUS_OK = 0x00, HAL_NFC_STATUS_FAILED = 0x01, HAL_NFC_STATUS_ERR_TRANSPORT = 0x02, HAL_NFC_STATUS_ERR_CMD_TIMEOUT = 0x03,
  HAL_NFC_STATUS_REFUSED = 0x04
}
 
enum  nfc_pn544_linktype { PN544_LINK_TYPE_UART, PN544_LINK_TYPE_I2C, PN544_LINK_TYPE_USB, PN544_LINK_TYPE_INVALID }
 

Macro Definition Documentation

#define NFC_HARDWARE_MODULE_ID   "nfc"

Definition at line 208 of file nfc.h.

#define NFC_NCI_CONTROLLER   "nci"

Definition at line 56 of file nfc.h.

#define NFC_NCI_HARDWARE_MODULE_ID   "nfc_nci"

Definition at line 55 of file nfc.h.

#define NFC_PN544_CONTROLLER   "pn544"

Definition at line 210 of file nfc.h.

Typedef Documentation

typedef uint8_t nfc_event_t

Definition at line 68 of file nfc.h.

typedef struct nfc_module_t nfc_module_t
typedef void( nfc_stack_callback_t)(nfc_event_t event, nfc_status_t event_status)

Definition at line 97 of file nfc.h.

typedef void( nfc_stack_data_callback_t)(uint16_t data_len, uint8_t *p_data)

Definition at line 103 of file nfc.h.

typedef uint8_t nfc_status_t

Definition at line 83 of file nfc.h.

Enumeration Type Documentation

anonymous enum
Enumerator
HAL_NFC_OPEN_CPLT_EVT 
HAL_NFC_CLOSE_CPLT_EVT 
HAL_NFC_POST_INIT_CPLT_EVT 
HAL_NFC_PRE_DISCOVER_CPLT_EVT 
HAL_NFC_REQUEST_CONTROL_EVT 
HAL_NFC_RELEASE_CONTROL_EVT 
HAL_NFC_ERROR_EVT 

Definition at line 70 of file nfc.h.

anonymous enum
Enumerator
HAL_NFC_STATUS_OK 
HAL_NFC_STATUS_FAILED 
HAL_NFC_STATUS_ERR_TRANSPORT 
HAL_NFC_STATUS_ERR_CMD_TIMEOUT 
HAL_NFC_STATUS_REFUSED 

Definition at line 85 of file nfc.h.

Enumerator
PN544_LINK_TYPE_UART 
PN544_LINK_TYPE_I2C 
PN544_LINK_TYPE_USB 
PN544_LINK_TYPE_INVALID 

Definition at line 222 of file nfc.h.