Write a RAW command to an ISO 14443 connection.
NFC_API nfc_result_t nfc_tag_transceive_raw(const nfc_target_t *tag, const uchar_t *command, size_t command_length_in_bits, uchar_t *response, size_t max_response_length_in_bytes, size_t expected_response_length_in_bits, size_t *response_length_in_bits)
The tag returned from the nfc_get_target() function.
A pointer to the buffer holding the command to be sent.
The length of the command in bits.
A pointer to the response buffer.
The length of the response buffer. The maximum length cannot be larger than the size of NFC_TRANSCEIVE_RESPONSE_MAX_BUFFER_LENGTH.
The expected length of the response buffer in bits. This value must be set to 0 if expected response is longer then 8 bits.
The actual length of the response in bits.
This function writes a RAW command to an ISO 14443 connection.
NFC_RESULT_SUCCESS, or one of the following:
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_SERVICE_CONNECTION_ERROR: The application is not connected to the NFC system.
- NFC_RESULT_OUT_OF_MEMORY: The system memory available for the NFC system to complete this operation is insufficient.
- NFC_RESULT_OPERATION_NOT_SUPPORTED: The operation is not supported by the target.