ID Chip Reader
reader.h
Go to the documentation of this file.
1 
10 #pragma once
11 #ifndef UTILS_READER_H_
12 #define UTILS_READER_H_
13 
14 #include "config.h"
15 
16 // Reader Writer related definition
17 #define UNKOWN_ERROR 1
18 #define RCS500_LCLE_ERROR 2
19 #define RCS500_P1P2_ERROR 3
20 #define RCS500_INS_ERROR 4
21 #define RCS500_CLA_ERROR 5
22 #define RCS500_MAC_ERROR 8
23 
24 #define SMPL_ESC_KEY 0x1B
25 
26 #define APP_ERROR -1
27 #define APP_CANCEL -2
28 #define APP_SUCCESS 0
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
41 long InitializeReader(void);
42 
48 void DisconnectReader(void);
49 
57 long DetectFeliCaCard(void);
58 
65 void CancelDetectFelicaCard(void);
66 
74 long DisconnectFeliCaCard(void);
75 
89 long TransmitDataToCard(unsigned char cmdBuf[],
90  unsigned long cmdLen,
91  unsigned char resBuf[],
92  unsigned long* resLen);
93 
94 #ifdef __cplusplus
95 }
96 #endif
97 
98 #endif // #ifndef UTILS_READER_H_