Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
pn544.h File Reference
#include <linux/i2c.h>

Go to the source code of this file.

Data Structures

struct  pn544_llc_packet
 
struct  pn544_fw_packet
 

Macros

#define PN544_DRIVER_NAME   "pn544"
 
#define PN544_MAXWINDOW_SIZE   7
 
#define PN544_WINDOW_SIZE   4
 
#define PN544_RETRIES   10
 
#define PN544_MAX_I2C_TRANSFER   0x0400
 
#define PN544_MSG_MAX_SIZE   0x21 /* at normal HCI mode */
 
#define PN544_CHAR_BASE   'P'
 
#define PN544_IOR(num, dtype)   _IOR(PN544_CHAR_BASE, num, dtype)
 
#define PN544_IOW(num, dtype)   _IOW(PN544_CHAR_BASE, num, dtype)
 
#define PN544_GET_FW_MODE   PN544_IOW(1, unsigned int)
 
#define PN544_SET_FW_MODE   PN544_IOW(2, unsigned int)
 
#define PN544_GET_DEBUG   PN544_IOW(3, unsigned int)
 
#define PN544_SET_DEBUG   PN544_IOW(4, unsigned int)
 
#define PN544_RESETVEN_TIME   30 /* 7 */
 
#define PN544_PVDDVEN_TIME   0
 
#define PN544_VBATVEN_TIME   0
 
#define PN544_GPIO4VEN_TIME   0
 
#define PN544_WAKEUP_ACK   5
 
#define PN544_WAKEUP_GUARD   (PN544_WAKEUP_ACK + 1)
 
#define PN544_INACTIVITY_TIME   1000
 
#define PN544_INTERFRAME_DELAY   200 /* us */
 
#define PN544_BAUDRATE_CHANGE   150 /* us */
 
#define PN544_DEBUG_BUF   0x01
 
#define PN544_DEBUG_READ   0x02
 
#define PN544_DEBUG_WRITE   0x04
 
#define PN544_DEBUG_IRQ   0x08
 
#define PN544_DEBUG_CALLS   0x10
 
#define PN544_DEBUG_MODE   0x20
 
#define PN544_LLC_HCI_OVERHEAD   3 /* header + crc (to length) */
 
#define PN544_LLC_MIN_SIZE   (1 + PN544_LLC_HCI_OVERHEAD) /* length + */
 
#define PN544_LLC_MAX_DATA   (PN544_MSG_MAX_SIZE - 2)
 
#define PN544_LLC_MAX_HCI_SIZE   (PN544_LLC_MAX_DATA - 2)
 
#define PN544_FW_HEADER_SIZE   3
 
#define PN544_MAX_FW_DATA   (PN544_MAX_I2C_TRANSFER - PN544_FW_HEADER_SIZE)
 

Macro Definition Documentation

#define PN544_BAUDRATE_CHANGE   150 /* us */

Definition at line 53 of file pn544.h.

#define PN544_CHAR_BASE   'P'

Definition at line 36 of file pn544.h.

#define PN544_DEBUG_BUF   0x01

Definition at line 56 of file pn544.h.

#define PN544_DEBUG_CALLS   0x10

Definition at line 60 of file pn544.h.

#define PN544_DEBUG_IRQ   0x08

Definition at line 59 of file pn544.h.

#define PN544_DEBUG_MODE   0x20

Definition at line 61 of file pn544.h.

#define PN544_DEBUG_READ   0x02

Definition at line 57 of file pn544.h.

#define PN544_DEBUG_WRITE   0x04

Definition at line 58 of file pn544.h.

#define PN544_DRIVER_NAME   "pn544"

Definition at line 28 of file pn544.h.

#define PN544_FW_HEADER_SIZE   3

Definition at line 76 of file pn544.h.

#define PN544_GET_DEBUG   PN544_IOW(3, unsigned int)

Definition at line 41 of file pn544.h.

#define PN544_GET_FW_MODE   PN544_IOW(1, unsigned int)

Definition at line 39 of file pn544.h.

#define PN544_GPIO4VEN_TIME   0

Definition at line 48 of file pn544.h.

#define PN544_INACTIVITY_TIME   1000

Definition at line 51 of file pn544.h.

#define PN544_INTERFRAME_DELAY   200 /* us */

Definition at line 52 of file pn544.h.

#define PN544_IOR (   num,
  dtype 
)    _IOR(PN544_CHAR_BASE, num, dtype)

Definition at line 37 of file pn544.h.

#define PN544_IOW (   num,
  dtype 
)    _IOW(PN544_CHAR_BASE, num, dtype)

Definition at line 38 of file pn544.h.

#define PN544_LLC_HCI_OVERHEAD   3 /* header + crc (to length) */

Definition at line 64 of file pn544.h.

#define PN544_LLC_MAX_DATA   (PN544_MSG_MAX_SIZE - 2)

Definition at line 66 of file pn544.h.

#define PN544_LLC_MAX_HCI_SIZE   (PN544_LLC_MAX_DATA - 2)

Definition at line 67 of file pn544.h.

#define PN544_LLC_MIN_SIZE   (1 + PN544_LLC_HCI_OVERHEAD) /* length + */

Definition at line 65 of file pn544.h.

#define PN544_MAX_FW_DATA   (PN544_MAX_I2C_TRANSFER - PN544_FW_HEADER_SIZE)

Definition at line 78 of file pn544.h.

#define PN544_MAX_I2C_TRANSFER   0x0400

Definition at line 32 of file pn544.h.

#define PN544_MAXWINDOW_SIZE   7

Definition at line 29 of file pn544.h.

#define PN544_MSG_MAX_SIZE   0x21 /* at normal HCI mode */

Definition at line 33 of file pn544.h.

#define PN544_PVDDVEN_TIME   0

Definition at line 46 of file pn544.h.

#define PN544_RESETVEN_TIME   30 /* 7 */

Definition at line 45 of file pn544.h.

#define PN544_RETRIES   10

Definition at line 31 of file pn544.h.

#define PN544_SET_DEBUG   PN544_IOW(4, unsigned int)

Definition at line 42 of file pn544.h.

#define PN544_SET_FW_MODE   PN544_IOW(2, unsigned int)

Definition at line 40 of file pn544.h.

#define PN544_VBATVEN_TIME   0

Definition at line 47 of file pn544.h.

#define PN544_WAKEUP_ACK   5

Definition at line 49 of file pn544.h.

#define PN544_WAKEUP_GUARD   (PN544_WAKEUP_ACK + 1)

Definition at line 50 of file pn544.h.

#define PN544_WINDOW_SIZE   4

Definition at line 30 of file pn544.h.