Function flipper0::ffi::rfalIsoDepATTRIB
source · pub unsafe extern "C" fn rfalIsoDepATTRIB(
nfcid0: *const u8,
PARAM1: u8,
DSI: rfalBitRate,
DRI: rfalBitRate,
FSDI: rfalIsoDepFSxI,
PARAM3: u8,
DID: u8,
HLInfo: *const u8,
HLInfoLen: u8,
fwt: u32,
attribRes: *mut rfalIsoDepAttribRes,
attribResLen: *mut u8
) -> u16
Expand description
\brief ISO-DEP Send ATTRIB
This sends a ATTRIB to make a NFC-B Listen Device to enter ISO-DEP layer (ISO14443-4) and checks if the received ATTRIB Response is valid
\param[in] nfcid0 : NFCID0 to be used for the ATTRIB \param[in] PARAM1 : ATTRIB PARAM1 byte (communication parameters) \param[in] DSI : DSI code the divisor from Listener (PICC) to Poller (PCD) \param[in] DRI : DRI code the divisor from Poller (PCD) to Listener (PICC) \param[in] FSDI : PCD’s Frame Size to be announced on the ATTRIB \param[in] PARAM3 : ATTRIB PARAM1 byte (protocol type) \param[in] DID : Device ID to be used or RFAL_ISODEP_NO_DID for not use DID \param[in] HLInfo : pointer to Higher layer INF (NULL if none) \param[in] HLInfoLen : Length HLInfo \param[in] fwt : Frame Waiting Time to be used (from SENSB_RES) \param[out] attribRes : pointer to place the ATTRIB Response \param[out] attribResLen : pointer to place the ATTRIB Response length
\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_CRC : CRC error detected \return ERR_FRAMING : Framing error detected \return ERR_PROTO : Protocol error detected \return ERR_NONE : No error, ATTRIB Response received