nfc_launchapp_rec.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
  2. *
  3. * The information contained herein is property of Nordic Semiconductor ASA.
  4. * Terms and conditions of usage are described in detail in NORDIC
  5. * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
  6. *
  7. * Licensees are granted free, non-transferable use of the information. NO
  8. * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
  9. * the file.
  10. *
  11. */
  12. #ifndef NFC_LAUNCHAPP_REC_H__
  13. #define NFC_LAUNCHAPP_REC_H__
  14. /**@file
  15. *
  16. * @defgroup nfc_launch_app_rec Launch app records
  17. * @{
  18. * @ingroup nfc_launch_app_msg
  19. *
  20. * @brief Generation of NFC NDEF record descriptions that launch apps.
  21. *
  22. */
  23. #include <stdint.h>
  24. #include "nfc_ndef_record.h"
  25. /** @brief Function for generating a description of an NFC NDEF Android Application Record (AAR).
  26. *
  27. * This function declares and initializes a static instance of an NFC NDEF record description
  28. * of an Android Application Record (AAR).
  29. *
  30. * @note The record payload data (@p p_package_name) should be declared as
  31. * static. If it is declared as automatic, the NDEF message encoding
  32. * (see @ref nfc_ndef_msg_encode) must be done in the same variable
  33. * scope.
  34. *
  35. * @param[in] p_package_name Pointer to the Android package name string.
  36. * @param[in] package_name_length Length of the Android package name.
  37. *
  38. * @return Pointer to the description of the record.
  39. */
  40. nfc_ndef_record_desc_t * nfc_android_application_rec_declare(uint8_t const * p_package_name,
  41. uint8_t package_name_length);
  42. /** @brief Function for generating a description of an NFC NDEF Windows LaunchApp record.
  43. *
  44. * This function declares and initializes a static instance of an NFC NDEF record description
  45. * of a Windows LaunchApp record.
  46. *
  47. * @note The record payload data (@p p_win_app_id) should be declared as
  48. * static. If it is declared as automatic, the NDEF message encoding
  49. * (see @ref nfc_ndef_msg_encode) must be done in the same variable
  50. * scope.
  51. *
  52. * @param[in] p_win_app_id Pointer to the Windows application ID string (GUID).
  53. * @param[in] win_app_id_length Length of the Windows application ID.
  54. *
  55. * @return Pointer to the description of the record.
  56. */
  57. nfc_ndef_record_desc_t * nfc_windows_launchapp_rec_declare(const uint8_t * p_win_app_id,
  58. uint8_t win_app_id_length);
  59. /** @} */
  60. #endif // NFC_LAUNCHAPP_REC