Function flipper0::ffi::rfalNfcvPollerExtendedWriteMultipleBlocks
source · pub unsafe extern "C" fn rfalNfcvPollerExtendedWriteMultipleBlocks(
flags: u8,
uid: *const u8,
firstBlockNum: u16,
numOfBlocks: u16,
txBuf: *mut u8,
txBufLen: u16,
blockLen: u8,
wrData: *const u8,
wrDataLen: u16
) -> u16
Expand description
\brief NFC-V Poller Extended Write Multiple Blocks
Writes Multiple Blocks from a device (VICC) supporting extended commands In order to not limit the length of the Write multiple command, a buffer must be provided where the request will be composed and then sent.
\param[in] flags : Flags to be used: Sub-carrier; Data_rate; Option for NFC-Forum use: RFAL_NFCV_REQ_FLAG_DEFAULT \param[in] uid : UID of the device to be put to be read if UID is provided Addressed mode will be used \param[in] firstBlockNum : first block to be write (16 bits) \param[in] numOfBlocks : number of consecutive blocks to write (16 bits) \param[in] txBuf : buffer where the request will be composed \param[in] txBufLen : length of txBuf \param[in] blockLen : number of bytes of a block \param[in] wrData : data to be written \param[in] wrDataLen : length of the data do be written. Must be aligned with number of blocks to write and the size of a block
\return ERR_WRONG_STATE : RFAL not initialized or incorrect mode \return ERR_PARAM : Invalid parameters \return ERR_IO : Generic internal error \return ERR_CRC : CRC error detected \return ERR_FRAMING : Framing error detected \return ERR_PROTO : Protocol error detected \return ERR_TIMEOUT : Timeout error \return ERR_NONE : No error