Chapter 8. Nfc; Codes - Waveshare NRF52840 User Manual

Eval kit
Table of Contents

Advertisement

NRF52840 Eval Kit User Manual

CHAPTER 8. NFC

CODES

This example is used to starting mobile APP.
The name of Android Phone APP:
static const uint8_t
{'n', 'o', '.', 'n', 'o', 'r', 'd', 'i', 'c', 's',
'e', 'm', 'i', '.', 'a', 'n', 'd', 'r', 'o', 'i',
'd', '.', 'n', 'r', 'f', 't', 'o', 'o', 'l', 'b',
'o', 'x'};
The name of Windows Phone APP:
static const uint8_t
{'{', 'e', '1', '2', 'd', '2', 'd', 'a', '7', '-',
'4', '8', '8', '5', '-', '4', '0', '0', 'f', '-',
'b', 'c', 'd', '4', '-', '6', 'c', 'b', 'd', '5',
'b', '8', 'c', 'f', '6', '2', 'c', '}'};
Initializing callback function, which will be execute when NFC objects are detected to
turn on LED0.
static void nfc_callback(void
const uint8_t
* p_data,
{
(void)p_context;
switch
(event)
{
case
NFC_T2T_EVENT_FIELD_ON:
bsp_board_led_on(BSP_BOARD_LED_0);
break;
case
NFC_T2T_EVENT_FIELD_OFF:
bsp_board_led_off(BSP_BOARD_LED_0);
break;
default:
break;
}
}
Vision: V1.0.1 Date: 2019.01.19
m_android_package_name[] =
m_windows_application_id[] =
* p_context,
size_t
data_length)
nfc_t2t_event_t
event,
41 / 72

Advertisement

Table of Contents
loading

Table of Contents