![]() |
BALTECH Docs |
C API for BALTECH SDK
|
| brp_errcode brp_Iso15_ReadBlock | ( | brp_protocol | protocol, |
| unsigned | BlockID, | ||
| unsigned | BlockNum, | ||
| bool | EnBlockSec, | ||
| unsigned * | LabelStat, | ||
| unsigned * | BlockLen, | ||
| brp_Iso15_ReadBlock_Data_Entry ** | Data, | ||
| size_t * | Data_len, | ||
| brp_mempool * | mempool | ||
| ) |
**For new applications please use brp_Iso15_ReadMultipleBlocks() as this command is deprecated and may be removed in future.
**
This command reads one or multiple blocks from a label.
This command implements the "read single block" and "read multiple blocks" optional commands from the ISO 15693-3 specification.
| [in] | protocol | used to execute the command |
| [in] | BlockID | ID of first block to read. |
| [in] | BlockNum | Number of blocks to read: * 0x00: 1 block * 0xFF: 256 blocks |
| [in] | EnBlockSec | Enable/Disable BlockSecStat Byte in response frame. |
| [out] | LabelStat | Status code returned from label. The following bytes will only be returned, if LabelStat is OK. |
| [out] | BlockLen | Amount of bytes to read in one block. |
| [out] | Data | |
| [out] | Data_len | |
| [in] | mempool | is 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 |