mf_desfire_send_chunks

Function mf_desfire_send_chunks 

Source
pub unsafe extern "C" fn mf_desfire_send_chunks(
    instance: *mut MfDesfirePoller,
    tx_buffer: *const BitBuffer,
    rx_buffer: *mut BitBuffer,
) -> MfDesfireError
Expand description

Transmit and receive MfDesfire chunks in poller mode.

Must ONLY be used inside the callback function.

The rx_buffer will be filled with any data received as a response to data sent from tx_buffer, with a timeout defined by the fwt parameter.

§Arguments

  • instance (direction in, out) - pointer to the instance to be used in the transaction.
  • tx_buffer (direction in) - pointer to the buffer containing the data to be transmitted.
  • rx_buffer (direction out) - pointer to the buffer to be filled with received data.

§Returns

MfDesfireErrorNone on success, an error code on failure.