BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_VHL_Read | ( | brp_protocol | protocol, |
unsigned | Id, | ||
unsigned | Adr, | ||
unsigned | Len, | ||
brp_buf * | Data, | ||
size_t * | Data_len, | ||
brp_mempool * | mempool | ||
) |
This command reads data from a card based on a VHL file.
In this file, you specify the card-specific memory structure. You can either add the VHL file to your reader configuration or create it dynamically using brp_VHL_Setup().
[in] | protocol | used to execute the command |
[in] | Id | ID of VHL file (starting at 0) * If you create the VHL file dynamically, use the ID 0xFF. * If you've added the VHL file to the reader configuration, please resolve the ID from the VHL file name using brp_VHL_ResolveFilename(). Don't hardcode the ID. Otherwise, your application won't work anymore if e.g. a project manager later merges VHL files into a different configuration using BALTECH ConfigEditor. This process may result in a new ID, but not in a new name. |
[in] | Adr | Address of the byte where you want to start reading |
[in] | Len | Number of bytes to read |
[out] | Data | Data read from the card |
[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 |