See changelog v0.9.8
[hackover2013-badge-firmware.git] / drivers / sensors / pn532 / pn532_bus.h
index a322933..9a509b9 100644 (file)
 // #define PN532_BUS_UART
 #define PN532_BUS_I2C
 
-#define PN532_RSTPD_PORT                      (2)
-#define PN532_RSTPD_PIN                       (2)
-#define PN532_SPI_CSPORT                      (0)
-#define PN532_SPI_CSPIN                       (2)
+#define PN532_RSTPD_PORT                      (3)
+#define PN532_RSTPD_PIN                       (1)
+#define PN532_I2C_IRQPORT                     (3)
+#define PN532_I2C_IRQPIN                      (2)
 
 #define PN532_NORMAL_FRAME__DATA_MAX_LEN      (254)
 #define PN532_NORMAL_FRAME__OVERHEAD          (8)
 #define PN532_BUFFER_LEN                      (PN532_EXTENDED_FRAME__DATA_MAX_LEN + PN532_EXTENDED_FRAME__OVERHEAD)
 
 #define PN532_UART_BAUDRATE                   (115200)
+
 #define PN532_I2C_ADDRESS                     (0x48)
 #define PN532_I2C_READBIT                     (0x01)
+#define PN532_I2C_READYTIMEOUT                (20)    // Max number of attempts to read Ready bit (see UM 5-Nov-2007 Section 6.2.4)
 
 // Generic interface for the different serial buses available on the PN532
 void          pn532_bus_HWInit(void);
 pn532_error_t pn532_bus_SendCommand(const byte_t * pbtData, const size_t szData);
 pn532_error_t pn532_bus_ReadResponse(byte_t * pbtResponse, size_t * pszRxLen);
-bool          pn532_bus_TransceiveBytes(const byte_t * pbtTx, const size_t szTx, byte_t * pbtRx, size_t * pszRx);
 pn532_error_t pn532_bus_Wakeup(void);
 
 #endif
This page took 0.021647 seconds and 4 git commands to generate.