NFC API for mbed using the MicroNFCBoard as a peripheral

Dependents:   MicroNFCBoardAPI_P2P_Client MicroNFCBoardAPI_Blink MicroNFCBoardAPI_Tag_Emulator MicroNFCBoardAPI_Tag_Reader ... more

Revision:
2:9b0733b8fa95
Parent:
1:1d246e0872c6
diff -r 1d246e0872c6 -r 9b0733b8fa95 transport.h
--- a/transport.h	Fri Apr 24 12:59:31 2015 +0000
+++ b/transport.h	Thu May 14 16:41:27 2015 +0000
@@ -15,6 +15,7 @@
 See the License for the specific language governing permissions and
 limitations under the License.
  */
+
 #ifndef SRC_TRANSPORT_H_
 #define SRC_TRANSPORT_H_
 
@@ -34,7 +35,7 @@
 
   uint32_t status();
 
-  void nfcPoll(bool enable);
+  void nfcPoll(bool readerWriter, bool emulator, bool p2p);
 
   void nfcOperation(bool readOp, bool writeOp);
 
@@ -46,17 +47,17 @@
 
   void nfcGetRecordInfo(size_t recordNumber, uint16_t* pType, uint16_t* info, size_t infoCount);
 
-  void nfcSetRecordInfo(size_t recordNumber, uint16_t type, uint16_t* info, size_t infoCount);
+  void nfcSetRecordInfo(size_t recordNumber, uint16_t type, const uint16_t* info, size_t infoCount);
 
   void nfcGetRecordData(size_t recordNumber, size_t item, size_t offset, uint8_t* data, size_t length);
 
-  void nfcSetRecordData(size_t recordNumber, size_t item, size_t offset, uint8_t* data, size_t length);
+  void nfcSetRecordData(size_t recordNumber, size_t item, size_t offset, const uint8_t* data, size_t length);
 
   void nfcPrepareMessage(bool lock, bool generate);
 
   void nfcDecodePrefix(uint8_t prefix, char* data, size_t* pDataLength);
 
-  void nfcEncodePrefix(uint8_t* pPrefix, char* data, size_t dataLength);
+  void nfcEncodePrefix(uint8_t* pPrefix, const char* data, size_t* pDataLength);
 
   void leds(bool led1, bool led2);