nrfxlib API 0.1.0
|
void nfc_platform_cb_request | ( | const void * | p_ctx, |
size_t | ctx_len, | ||
const uint8_t * | p_data, | ||
size_t | data_len, | ||
bool | copy_data | ||
) |
#include <nfc/include/nfc_platform.h>
Request NFC callback.
This function requests for an NFC callback. The function can call the callback directly or perform platform-specific tasks before calling the callback. For example, the function can schedule the execution of a user callback in another context to unblock an interrupt.
In case of a direct call to callback resolution function, the ctx_len and data_len parameters can be ignored.
This function is called in the interrupt context.
[in] | p_ctx | Pointer to context data for the callback. |
[in] | ctx_len | Length of the context. |
[in] | p_data | Pointer to data passed to the callback. |
[in] | data_len | Length of the data. |
[in] | copy_data | Boolean value indicating whether or not to copy data to a buffer. |