BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_Lg_WriteMIMCRC | ( | brp_protocol | protocol, |
unsigned | Adr, | ||
unsigned | DataLen, | ||
unsigned | CRCAdr, | ||
brp_buf | Data, | ||
size_t | Data_len | ||
) |
This command is similar to the brp_Lg_WriteMIM() command, except that a CRC checksum is calculated over the data to write and compared to the CRC checksum given in the CRCAdr parameter.
If these checksums differ, the BRP_Lg_ErrCrc status code will be returned. Depending on the value of the CRCCalc flag given as a parameter in the brp_Lg_Select() command, either 8-bit or 16-bit checksums will be used.
[in] | protocol | used to execute the command |
[in] | Adr | Adress of block to write. |
[in] | DataLen | Number of Bytes in data buffer. |
[in] | CRCAdr | Address of CRC checksum for verification of data to write. |
[in] | Data | Data to write to card. |
[in] | Data_len |