nfc test on MQX4.1
[nfc-test.git] / pcd.h
blob7d5be30aa7a8c82a341fc8298daa7bb22fe3094c
2 #ifndef _PCD_H_
3 #define _PCD_H_
5 #include "common.h"
6 #include "picc.h"
8 struct pcd_param
10 uint8_t *p_iBuf;
11 uint8_t *p_oBuf;
12 uint32_t iDataLen;
13 uint32_t oDataLen;
14 uint32_t statusCode;
17 #define Card_PowerOn 0x01
18 #define Card_PowerOff 0x02
19 #define Card_XfrAPDU 0x03
21 //void run_picc_poll(struct work_struct *work);
22 //DECLARE_DELAYED_WORK(card_Poll, run_picc_poll);
23 struct pcd_common
25 struct pcd_device pcd;
26 struct picc_device picc;
28 OS_Mutex_handle mutex;
29 uint8_t sem_inc;
30 uint32_t polling_task_handle;
31 int (*slot_changed_notify)(void *, uint8_t);
32 void *private_data;
35 int pcd_init(void);
36 void pcd_deinit(void);
37 extern struct pcd_common *common;
40 #endif