C API for BALTECH SDK

§ brp_Iso14a_TransparentCmdBitlen()

brp_errcode brp_Iso14a_TransparentCmdBitlen ( brp_protocol  protocol,
bool  EnHighBaudOld,
bool  EnParTx,
unsigned  SendDataLen,
unsigned  Timeout,
brp_DivisorInteger  DSI,
brp_DivisorInteger  DRI,
brp_buf  SendData,
size_t  SendData_len,
unsigned *  RecvDataLen,
unsigned *  CollisionPosition,
brp_buf RecvData,
size_t *  RecvData_len,
brp_mempool mempool 
)

This command is similar to Iso14a.TransparentCmd. The difference is that the length of data to send is given in bits instead of bytes.

Parameters
[in]protocolused to execute the command
[in]EnHighBaudOldUse high bit rates type A as specified in ISO 14443-2 Amendment Part 2.
[in]EnParTxIf this bit is set in combination with EnBitMode , parity generation in Tx direction (PCD to PICC) will be done by the PCD.
[in]SendDataLenNumber of bits to send
[in]TimeoutTimeout in ms between sending the last bit to the card and receiving the first bit from the card.
[in]DSIDivisor Send/Receive Integer (DSI/DRI) This parameter is mapped to the Divisor Send/Receive (DS/DI) value, which determines bit rate for sending data from PICC to PCD. The possible DS/DR values (mapped to the DSI/DRI index) are listed below.
[in]DRIDivisor Send/Receive Integer (DSI/DRI) This parameter is mapped to the Divisor Send/Receive (DS/DI) value, which determines bit rate for sending data from PICC to PCD. The possible DS/DR values (mapped to the DSI/DRI index) are listed below.
[in]SendDataData to send Bits will always be transferred LSB first.
[in]SendData_len
[out]RecvDataLenReturned data length in bit.
[out]CollisionPositionPosition of bit where first collision occurred.
[out]RecvDataData to send Bits will always be transferred LSB first.
[out]RecvData_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool