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
pn512_platform.h
00001 /* 00002 pn512_platform.h 00003 Copyright (c) Donatien Garnier 2012 00004 donatien.garnier@appnearme.com 00005 http://www.appnearme.com/ 00006 */ 00007 00008 00009 #ifndef PN512_PLATFORM_H_ 00010 #define PN512_PLATFORM_H_ 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 #include "core/fwk.h" 00017 00018 #include "drv/pn512/pn512.h" 00019 00020 /* 00021 * Initialize SPI 00022 */ 00023 int pn512_spi_init(void); 00024 00025 /* 00026 * Init 00027 */ 00028 void pn512_io_init(void); 00029 00030 /* 00031 * Get the IRQ pin's state 00032 */ 00033 bool pn512_irq_pin_get(void); 00034 00035 /* 00036 * Set the CS pin to 0 (active low) 00037 */ 00038 void pn512_cs_set(void); 00039 00040 /* 00041 * Set the CS pin to 1 (active high) 00042 */ 00043 void pn512_cs_clear(void); 00044 00045 /* 00046 * You MUST call pn512_irq() on each raising front of IRQ pin 00047 */ 00048 00049 #ifdef __cplusplus 00050 } 00051 #endif 00052 00053 #endif /* PN512_PLATFORM_H_ */
Generated on Tue Jul 12 2022 17:28:36 by 1.7.2