C API for BALTECH SDK
iso14l4.h File Reference
#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Iso14L4_ErrNoTag   BRP_ERR_STATUS(0x1600, 0x01)
 
#define BRP_Iso14L4_ErrHf   BRP_ERR_STATUS(0x1600, 0x04)
 
#define BRP_Iso14L4_ErrCard   BRP_ERR_STATUS(0x1600, 0x05)
 
#define BRP_Iso14L4_ErrCom   BRP_ERR_STATUS(0x1600, 0x10)
 
#define BRP_Iso14L4_ErrCmd   BRP_ERR_STATUS(0x1600, 0x23)
 

Functions

brp_errcode brp_Iso14L4_SetupAPDU (brp_protocol protocol, bool EnDefault, unsigned ToggleAB, bool EnNAD, bool EnCID, unsigned CID, unsigned NAD, brp_Iso14L4_SetupAPDU_FSCI FSCI, brp_Iso14L4_SetupAPDU_FWI FWI, brp_DivisorInteger DSI, brp_DivisorInteger DRI)
 
brp_errcode brp_Iso14L4_ExchangeAPDU (brp_protocol protocol, brp_buf SendData, size_t SendData_len, brp_buf *RecvData, size_t *RecvData_len, brp_mempool *mempool)
 
brp_errcode brp_Iso14L4_Deselect (brp_protocol protocol)
 

Detailed Description

This command group implements the low-level ISO 14443-4 commands according to the ISO 14443-4 standard. While the ISO 14443-3 Type A and Type B standards define request and selection mechanisms for PICCs, the ISO 14443-4 standard defines a protocol capable of transferring so-called application layer data units (APDUs) with previously selected labels.

Please refer to the ISO 14443-3 (Type A) command groupdocumentation" or to the @ref Iso14b "ISO 14443-3 (Type B) command group documentation" for more information on how to put ISO 14443-3 (Type A) or ISO 14443-3 (Type B) PICCs into the active state.

APDUs can be transmitted and received to/from a PICC using the Iso14L4.ExchangeAPDU command, provided the PICC is in active state. Before calling the Iso14L4.ExchangeAPDU command, the target PICC has to be selected using the Iso14L4.SetupAPDU command. The Iso14L4.SetupAPDU command furthermore enables to change the communication parameters of the reader to match the capabilities of the target PICC. These communication parameters apply to all following calls of the Iso14L4.ExchangeAPDU and Iso14L4.Deselect commands, until the Iso14L4.SetupAPDU command is called with different parameters. The Iso14L4.Deselect command is used to switch a PICC to halt state after exchange with this PICC has been completed.

PICCs can also be put to the halt state using theIso14a.Halt command or theIso14b.Halt command. However these commands only work for PICCs which are not in ISO 14443-4 mode (when considering Type A PICCs) or for PICCs in ready state, not in active state (when considering Type B PICCs). In other situations, theIso14L4.Deselect command should be used.

Definition in file iso14l4.h.