Function flipper0::ffi::rfalNfcDepInitiatorHandleActivation
source · pub unsafe extern "C" fn rfalNfcDepInitiatorHandleActivation(
param: *mut rfalNfcDepAtrParam,
desiredBR: rfalBitRate,
nfcDepDev: *mut rfalNfcDepDevice
) -> u16
Expand description
\brief NFC-DEP Initiator Handle Activation
This performs a Activation into NFC-DEP layer with the given parameters. It sends ATR_REQ and if the higher bit rates are supported by both devices it additionally sends PSL Once Activated all details of the device are provided on nfcDepDev
\param[in] param : required parameters to initialize and send ATR_REQ \param[in] desiredBR : Desired bit rate supported by the Poller \param[out] nfcDepDev : NFC-DEP information of the activated Listen device
\return ERR_WRONG_STATE : RFAL not initialized or incorrect mode \return ERR_PARAM : Invalid parameters \return ERR_IO : Generic internal error \return ERR_TIMEOUT : Timeout error \return ERR_PAR : Parity error detected \return ERR_CRC : CRC error detected \return ERR_FRAMING : Framing error detected \return ERR_PROTO : Protocol error detected \return ERR_NONE : No error, activation successful