mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
NFC: Expose iso14443_3a_listener functions (OFW issue 4059)
This commit is contained in:
@@ -26,6 +26,47 @@ typedef struct {
|
||||
Iso14443_3aListenerEventData* data;
|
||||
} Iso14443_3aListenerEvent;
|
||||
|
||||
/**
|
||||
* @brief Transmit Iso14443_3a frames in listener mode.
|
||||
*
|
||||
* Must ONLY be used inside the callback function.
|
||||
*
|
||||
*
|
||||
* @param[in, out] instance pointer to the instance to be used in the transaction.
|
||||
* @param[in] tx_buffer pointer to the buffer containing the data to be transmitted.
|
||||
* @return Iso14443_3aErrorNone on success, an error code on failure.
|
||||
*/
|
||||
Iso14443_3aError
|
||||
iso14443_3a_listener_tx(Iso14443_3aListener* instance, const BitBuffer* tx_buffer);
|
||||
|
||||
/**
|
||||
* @brief Transmit Iso14443_3a frames with custom parity bits in listener mode.
|
||||
*
|
||||
* Must ONLY be used inside the callback function.
|
||||
*
|
||||
* Custom parity bits must be set in the tx_buffer.
|
||||
*
|
||||
* @param[in, out] instance pointer to the instance to be used in the transaction.
|
||||
* @param[in] tx_buffer pointer to the buffer containing the data to be transmitted.
|
||||
* @return Iso14443_3aErrorNone on success, an error code on failure.
|
||||
*/
|
||||
Iso14443_3aError iso14443_3a_listener_tx_with_custom_parity(
|
||||
Iso14443_3aListener* instance,
|
||||
const BitBuffer* tx_buffer);
|
||||
|
||||
/**
|
||||
* @brief Transmit Iso14443_3a standard frames in listener mode.
|
||||
*
|
||||
* Must ONLY be used inside the callback function.
|
||||
*
|
||||
* @param[in, out] instance pointer to the instance to be used in the transaction.
|
||||
* @param[in] tx_buffer pointer to the buffer containing the data to be transmitted.
|
||||
* @return Iso14443_3aErrorNone on success, an error code on failure.
|
||||
*/
|
||||
Iso14443_3aError iso14443_3a_listener_send_standard_frame(
|
||||
Iso14443_3aListener* instance,
|
||||
const BitBuffer* tx_buffer);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -26,17 +26,6 @@ struct Iso14443_3aListener {
|
||||
void* context;
|
||||
};
|
||||
|
||||
Iso14443_3aError
|
||||
iso14443_3a_listener_tx(Iso14443_3aListener* instance, const BitBuffer* tx_buffer);
|
||||
|
||||
Iso14443_3aError iso14443_3a_listener_tx_with_custom_parity(
|
||||
Iso14443_3aListener* instance,
|
||||
const BitBuffer* tx_buffer);
|
||||
|
||||
Iso14443_3aError iso14443_3a_listener_send_standard_frame(
|
||||
Iso14443_3aListener* instance,
|
||||
const BitBuffer* tx_buffer);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2114,6 +2114,9 @@ Function,+,iso14443_3a_get_device_name,const char*,"const Iso14443_3aData*, NfcD
|
||||
Function,+,iso14443_3a_get_sak,uint8_t,const Iso14443_3aData*
|
||||
Function,+,iso14443_3a_get_uid,const uint8_t*,"const Iso14443_3aData*, size_t*"
|
||||
Function,+,iso14443_3a_is_equal,_Bool,"const Iso14443_3aData*, const Iso14443_3aData*"
|
||||
Function,+,iso14443_3a_listener_send_standard_frame,Iso14443_3aError,"Iso14443_3aListener*, const BitBuffer*"
|
||||
Function,+,iso14443_3a_listener_tx,Iso14443_3aError,"Iso14443_3aListener*, const BitBuffer*"
|
||||
Function,+,iso14443_3a_listener_tx_with_custom_parity,Iso14443_3aError,"Iso14443_3aListener*, const BitBuffer*"
|
||||
Function,+,iso14443_3a_load,_Bool,"Iso14443_3aData*, FlipperFormat*, uint32_t"
|
||||
Function,+,iso14443_3a_poller_activate,Iso14443_3aError,"Iso14443_3aPoller*, Iso14443_3aData*"
|
||||
Function,+,iso14443_3a_poller_check_presence,Iso14443_3aError,Iso14443_3aPoller*
|
||||
|
||||
|
Reference in New Issue
Block a user