C API for BALTECH SDK
pico.h File Reference

Picopass card commands. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Pico_ErrNoTag   BRP_ERR_STATUS(0x1A00, 0x01)
 No PICC. More...
 
#define BRP_Pico_ErrCollision   BRP_ERR_STATUS(0x1A00, 0x02)
 Collision occurred (value will be ordered with bit position of collision in high nibble!) More...
 
#define BRP_Pico_ErrHf   BRP_ERR_STATUS(0x1A00, 0x04)
 General HF error. More...
 
#define BRP_Pico_ErrFrame   BRP_ERR_STATUS(0x1A00, 0x07)
 Bit error, parity error or frame error (start/stop-bit) More...
 
#define BRP_Pico_ErrCrc   BRP_ERR_STATUS(0x1A00, 0x08)
 CRC checksum error. More...
 
#define BRP_Pico_ErrCom   BRP_ERR_STATUS(0x1A00, 0x10)
 Communication error UC - reader chip. More...
 
#define BRP_Pico_ErrCardNotSupported   BRP_ERR_STATUS(0x1A00, 0x22)
 Reader chip does not support card type. More...
 
#define BRP_Pico_ErrHwNotSupported   BRP_ERR_STATUS(0x1A00, 0x23)
 Command not supported by hardware. More...
 

Functions

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. More...
 
brp_errcode brp_Pico_RequestAnticoll (brp_protocol protocol, brp_buf *ASNB, size_t *ASNB_len, brp_mempool *mempool)
 Request PICCs and perform anticollision. More...
 
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. More...
 
brp_errcode brp_Pico_Halt (brp_protocol protocol)
 Set PICC to halt mode. More...
 
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. More...
 
brp_errcode brp_Pico_Authenticate (brp_protocol protocol, bool IsDebitKey, unsigned KeyIdx)
 Authenticates a previously selected picopass label. More...
 
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. More...
 
brp_errcode brp_Pico_Write (brp_protocol protocol, unsigned PageAdr, brp_buf PageData, size_t PageData_len)
 Writes to picopass label. More...
 

Detailed Description

Picopass card commands.

Definition in file pico.h.