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!
PN532/munfc/platform/pn532_platform.h
- Committer:
- AppNearMe
- Date:
- 2012-08-07
- Revision:
- 3:0b949b2d3b55
- Parent:
- 0:480387549d89
File content as of revision 3:0b949b2d3b55:
/* pn532_platform.h Copyright (c) Donatien Garnier 2012 donatien.garnier@appnearme.com http://www.appnearme.com/ */ #ifndef PN532_PLATFORM_H_ #define PN532_PLATFORM_H_ #ifdef __cplusplus extern "C" { #endif #include "core/fwk.h" #include "drv/pn532/pn532.h" /* * Initialize SPI */ int pn532_spi_init(void); /* * Init */ void pn532_io_init(void); /* * Get the IRQ pin's state */ bool pn532_irq_pin_get(void); /* * Set the CS pin to 0 (active low) */ void pn532_cs_set(void); /* * Set the CS pin to 1 (active high) */ void pn532_cs_clear(void); /* * You MUST call pn532_irq() on each falling front of IRQ pin */ #ifdef __cplusplus } #endif #endif /* PN532_PLATFORM_H_ */