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/target/event.h@0:480387549d89, 2012-07-26 (annotated)
- Committer:
- AppNearMe
- Date:
- Thu Jul 26 09:12:27 2012 +0000
- Revision:
- 0:480387549d89
- Child:
- 3:0b949b2d3b55
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AppNearMe | 0:480387549d89 | 1 | /* |
AppNearMe | 0:480387549d89 | 2 | event.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 EVENT_H_ |
AppNearMe | 0:480387549d89 | 10 | #define EVENT_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 | typedef enum __target_event |
AppNearMe | 0:480387549d89 | 19 | { |
AppNearMe | 0:480387549d89 | 20 | TRANSACTION_STARTED, //< Transaction with reader started (anticollision successful) |
AppNearMe | 0:480387549d89 | 21 | TRANSACTION_SUCCESSFUL, //< Transaction with reader successful |
AppNearMe | 0:480387549d89 | 22 | TRANSACTION_FAILED //< Transaction with reader failed |
AppNearMe | 0:480387549d89 | 23 | } target_event; |
AppNearMe | 0:480387549d89 | 24 | |
AppNearMe | 0:480387549d89 | 25 | typedef void (*target_event_callback)(target_event event, void* param); |
AppNearMe | 0:480387549d89 | 26 | |
AppNearMe | 0:480387549d89 | 27 | void target_event_init(void); |
AppNearMe | 0:480387549d89 | 28 | |
AppNearMe | 0:480387549d89 | 29 | void target_register_event_callback(target_event_callback cb, void* param); |
AppNearMe | 0:480387549d89 | 30 | |
AppNearMe | 0:480387549d89 | 31 | void target_fire_event(target_event event); |
AppNearMe | 0:480387549d89 | 32 | |
AppNearMe | 0:480387549d89 | 33 | #ifdef __cplusplus |
AppNearMe | 0:480387549d89 | 34 | } |
AppNearMe | 0:480387549d89 | 35 | #endif |
AppNearMe | 0:480387549d89 | 36 | |
AppNearMe | 0:480387549d89 | 37 | #endif /* EVENT_H_ */ |