AppNearMe µNFC stack for the NXP PN532 chip License: You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

Dependents:   IOT_sensor_nfc AppNearMe_MuNFC_PN532_Test p2p_nfc_test NFCMoodLamp ... more

License

You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

Committer:
AppNearMe
Date:
Wed Nov 07 18:19:09 2012 +0000
Revision:
11:5be631376e5b
Parent:
0:480387549d89
Child:
3:0b949b2d3b55
Updated library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AppNearMe 0:480387549d89 1 /*
AppNearMe 0:480387549d89 2 pn532_platform.h
AppNearMe 0:480387549d89 3 Copyright (c) Donatien Garnier 2012
AppNearMe 0:480387549d89 4 donatien.garnier@appnearme.com
AppNearMe 0:480387549d89 5 http://www.appnearme.com/
AppNearMe 0:480387549d89 6 */
AppNearMe 0:480387549d89 7
AppNearMe 0:480387549d89 8
AppNearMe 0:480387549d89 9 #ifndef PN532_PLATFORM_H_
AppNearMe 0:480387549d89 10 #define PN532_PLATFORM_H_
AppNearMe 0:480387549d89 11
AppNearMe 0:480387549d89 12 #ifdef __cplusplus
AppNearMe 0:480387549d89 13 extern "C" {
AppNearMe 0:480387549d89 14 #endif
AppNearMe 0:480387549d89 15
AppNearMe 0:480387549d89 16 #include "core/fwk.h"
AppNearMe 0:480387549d89 17
AppNearMe 0:480387549d89 18 #include "drv/pn532/pn532.h"
AppNearMe 0:480387549d89 19
AppNearMe 0:480387549d89 20 /*
AppNearMe 0:480387549d89 21 * Initialize SPI
AppNearMe 0:480387549d89 22 */
AppNearMe 0:480387549d89 23 int pn532_spi_init(void);
AppNearMe 0:480387549d89 24
AppNearMe 0:480387549d89 25 /*
AppNearMe 0:480387549d89 26 * Init
AppNearMe 0:480387549d89 27 */
AppNearMe 0:480387549d89 28 void pn532_io_init(void);
AppNearMe 0:480387549d89 29
AppNearMe 0:480387549d89 30 /*
AppNearMe 0:480387549d89 31 * Get the IRQ pin's state
AppNearMe 0:480387549d89 32 */
AppNearMe 0:480387549d89 33 bool pn532_irq_pin_get(void);
AppNearMe 0:480387549d89 34
AppNearMe 0:480387549d89 35 /*
AppNearMe 0:480387549d89 36 * Set the CS pin to 0 (active low)
AppNearMe 0:480387549d89 37 */
AppNearMe 0:480387549d89 38 void pn532_cs_set(void);
AppNearMe 0:480387549d89 39
AppNearMe 0:480387549d89 40 /*
AppNearMe 0:480387549d89 41 * Set the CS pin to 1 (active high)
AppNearMe 0:480387549d89 42 */
AppNearMe 0:480387549d89 43 void pn532_cs_clear(void);
AppNearMe 0:480387549d89 44
AppNearMe 0:480387549d89 45 /*
AppNearMe 0:480387549d89 46 * You MUST call pn532_irq() on each falling front of IRQ pin
AppNearMe 0:480387549d89 47 */
AppNearMe 0:480387549d89 48
AppNearMe 0:480387549d89 49 #ifdef __cplusplus
AppNearMe 0:480387549d89 50 }
AppNearMe 0:480387549d89 51 #endif
AppNearMe 0:480387549d89 52
AppNearMe 0:480387549d89 53 #endif /* PN532_PLATFORM_H_ */