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) 20 #define BRP_Felica_ErrFelicaHf BRP_ERR_STATUS(0x1C00, 0x04) 24 #define BRP_Felica_ErrFelicaFrame BRP_ERR_STATUS(0x1C00, 0x07) 28 #define BRP_Felica_ErrFelicaCom BRP_ERR_STATUS(0x1C00, 0x10) 32 #define BRP_Felica_ErrFelicaCardNotSupported BRP_ERR_STATUS(0x1C00, 0x22) 36 #define BRP_Felica_ErrFelicaHwNotSupported BRP_ERR_STATUS(0x1C00, 0x23) 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.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_Felica_GenericCmd_FastBaud
Baudrate PCD-PICC.
brp_Felica_Request_FastBaud
Baudrate PCD-PICC.
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.