C API for BALTECH SDK
felica.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_API_CMDS_FELICA_H__
11 #define __BRP_BALTECH_API_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 
36 #define BRP_Felica_ErrFelicaHwNotSupported BRP_ERR_STATUS(0x1C00, 0x23)
37 
50 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);
71 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);
72 #endif
73 
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)
Generic command for FeliCa.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
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:27
brp_Felica_GenericCmd_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:1001
brp_Felica_Request_FastBaud
Baudrate PCD-PICC.
Definition: typedefs.h:1015
brp_errcode brp_Felica_SetUID2(brp_protocol protocol, brp_buf UID2)
Sets UID2 used by generic command.
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)
Polls for tags with number of time slots, returns NFCID2 list of detected tags (maximum 16 / length 8...
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
Definition: typedefs.h:1029