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

Committer:
AppNearMe
Date:
2012-07-26
Revision:
0:480387549d89
Child:
3:0b949b2d3b55

File content as of revision 0:480387549d89:

/*
	event.h 
	Copyright (c) Donatien Garnier 2012
	donatien.garnier@appnearme.com
	http://www.appnearme.com/
*/


#ifndef EVENT_H_
#define EVENT_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "core/fwk.h"

typedef enum __target_event
{
  TRANSACTION_STARTED, //< Transaction with reader started (anticollision successful)
  TRANSACTION_SUCCESSFUL, //< Transaction with reader successful
  TRANSACTION_FAILED //< Transaction with reader failed
} target_event;

typedef void (*target_event_callback)(target_event event, void* param);

void target_event_init(void);

void target_register_event_callback(target_event_callback cb, void* param);

void target_fire_event(target_event event);

#ifdef __cplusplus
}
#endif

#endif /* EVENT_H_ */