BALTECH SDK wrapper functions reference
felica.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_SDK_CMDS_FELICA_H__
11 #define __BRP_BALTECH_SDK_CMDS_FELICA_H__
12 #include "../typedefs.h"
16 #define BRP_Felica_ErrFelicaNoTag BRP_ERR_STATUS(0x1C00, 0x01)
17 
20 #define BRP_Felica_ErrFelicaHf BRP_ERR_STATUS(0x1C00, 0x04)
21 
24 #define BRP_Felica_ErrFelicaFrame BRP_ERR_STATUS(0x1C00, 0x07)
25 
28 #define BRP_Felica_ErrFelicaCom BRP_ERR_STATUS(0x1C00, 0x10)
29 
32 #define BRP_Felica_ErrFelicaCardNotSupported BRP_ERR_STATUS(0x1C00, 0x22)
33 #ifdef BALTECH_SDK_INTERNAL
34 
37 #define BRP_Felica_ErrFelicaHwNotSupported BRP_ERR_STATUS(0x1C00, 0x23)
38 #endif // BALTECH_SDK_INTERNAL
39 typedef struct {
42  unsigned Cmd;
44  size_t Param_len;
45  unsigned Timeout;
47  size_t* Resp_len;
64 #ifdef BRP_SUPPORT_LEGACY_METHODS
65 brp_errcode brp_Felica_GenericCmd(brp_protocol protocol, brp_Felica_GenericCmd_FastBaud FastBaud, unsigned Cmd, brp_buf Param, size_t Param_len, unsigned Timeout, brp_buf* Resp, size_t* Resp_len, brp_mempool *mempool);
66 #else
68 #endif
69 typedef struct {
80 #ifdef BRP_SUPPORT_LEGACY_METHODS
82 #else
84 #endif
85 typedef struct {
88  unsigned SystemCode;
89  unsigned RequestCode;
90  unsigned* ColFlag;
92  size_t* Labels_len;
108 #ifdef BRP_SUPPORT_LEGACY_METHODS
109 brp_errcode brp_Felica_Request(brp_protocol protocol, brp_Felica_Request_FastBaud FastBaud, unsigned SystemCode, unsigned RequestCode, unsigned* ColFlag, brp_Felica_Request_Labels_Entry** Labels, size_t* Labels_len, brp_mempool *mempool);
110 #else
112 #endif
113 #endif
114 
size_t * Labels_len
Definition: felica.h:92
unsigned * ColFlag
Definition: felica.h:90
brp_errcode brp_Felica_SetUID2(brp_Felica_SetUID2_t params)
Sets UID2 used by generic command.
brp_Felica_Request_Labels_Entry ** Labels
Definition: felica.h:91
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
brp_mempool * mempool
Definition: felica.h:93
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
brp_Felica_GenericCmd_FastBaud FastBaud
Definition: felica.h:41
brp_Felica_GenericCmd_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:935
brp_errcode brp_Felica_Request(brp_Felica_Request_t params)
Polls for tags with number of time slots, returns NFCID2 list of detected tags (maximum 16 / length 8...
unsigned RequestCode
Definition: felica.h:89
brp_errcode brp_Felica_GenericCmd(brp_Felica_GenericCmd_t params)
Generic command for FeliCa.
brp_protocol protocol
Definition: felica.h:86
brp_protocol protocol
Definition: felica.h:40
unsigned SystemCode
Definition: felica.h:88
brp_Felica_Request_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:949
brp_Felica_Request_FastBaud FastBaud
Definition: felica.h:87
brp_mempool * mempool
Definition: felica.h:48
brp_protocol protocol
Definition: felica.h:70
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
Definition: typedefs.h:963