10 #ifndef __BRP_BALTECH_API_CMDS_PICO_H__ 11 #define __BRP_BALTECH_API_CMDS_PICO_H__ 12 #include "../typedefs.h" 16 #define BRP_Pico_ErrNoTag BRP_ERR_STATUS(0x1A00, 0x01) 21 #define BRP_Pico_ErrCollision BRP_ERR_STATUS(0x1A00, 0x02) 25 #define BRP_Pico_ErrHf BRP_ERR_STATUS(0x1A00, 0x04) 29 #define BRP_Pico_ErrFrame BRP_ERR_STATUS(0x1A00, 0x07) 33 #define BRP_Pico_ErrCrc BRP_ERR_STATUS(0x1A00, 0x08) 37 #define BRP_Pico_ErrCom BRP_ERR_STATUS(0x1A00, 0x10) 41 #define BRP_Pico_ErrCardNotSupported BRP_ERR_STATUS(0x1A00, 0x22) 45 #define BRP_Pico_ErrHwNotSupported BRP_ERR_STATUS(0x1A00, 0x23) brp_errcode brp_Pico_SetHfMode(brp_protocol protocol, unsigned HfMode)
Specify HF communication mode that should be used by the commands in this command-set.
brp_errcode brp_Pico_Select(brp_protocol protocol, brp_buf ASNB, size_t ASNB_len, brp_buf *Serial, size_t *Serial_len, brp_mempool *mempool)
Select PICC.
brp_errcode brp_Pico_Authenticate(brp_protocol protocol, bool IsDebitKey, unsigned KeyIdx)
Authenticates a previously selected picopass label.
brp_errcode brp_Pico_SelectBookPage(brp_protocol protocol, unsigned Book, unsigned Page, brp_buf *Page1, size_t *Page1_len, brp_mempool *mempool)
Selects book and page of a selected picopass label.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
brp_errcode brp_Pico_Read(brp_protocol protocol, unsigned PageAdr, unsigned PageNr, brp_buf *PageData, size_t *PageData_len, brp_mempool *mempool)
Reads a picopass label.
brp_errcode brp_Pico_RequestAnticoll(brp_protocol protocol, brp_buf *ASNB, size_t *ASNB_len, brp_mempool *mempool)
Request PICCs and perform anticollision.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Pico_Halt(brp_protocol protocol)
Set PICC to halt mode.
brp_errcode brp_Pico_Write(brp_protocol protocol, unsigned PageAdr, brp_buf PageData, size_t PageData_len)
Writes to picopass label.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.