tile_service.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * NOTICE
  3. *
  4. * Copyright 2017 Tile Inc. All Rights Reserved.
  5. * All code or other information included in the accompanying files ("Tile Source Material")
  6. * is PROPRIETARY information of Tile Inc. ("Tile") and access and use of the Tile Source Material
  7. * is subject to these terms. The Tile Source Material may only be used for demonstration purposes,
  8. * and may not be otherwise distributed or made available to others, including for commercial purposes.
  9. * Without limiting the foregoing , you understand and agree that no production use
  10. * of the Tile Source Material is allowed without a Tile ID properly obtained under a separate
  11. * agreement with Tile.
  12. * You also understand and agree that Tile may terminate the limited rights granted under these terms
  13. * at any time in its discretion.
  14. * All Tile Source Material is provided AS-IS without warranty of any kind.
  15. * Tile does not warrant that the Tile Source Material will be error-free or fit for your purposes.
  16. * Tile will not be liable for any damages resulting from your use of or inability to use
  17. * the Tile Source Material.
  18. *
  19. * Support: firmware_support@tile.com
  20. */
  21. /**
  22. * @file tile_service.h"
  23. * @brief Core functionality for Tile Lib
  24. */
  25. #ifndef TILE_SERVICE_H_
  26. #define TILE_SERVICE_H_
  27. #include "ble.h"
  28. #include "tile_lib.h"
  29. /** @defgroup TOA Tile Over-the-air API
  30. * @{
  31. * @ingroup ext_ble_lib
  32. * @brief Tile Over-the-air Api: defines Tile communication protocol over the air
  33. */
  34. /**
  35. * @brief Initialize Tile service. Store advertising data configuration from the application.
  36. * @note This function must be called before @ref ble_advertising_init
  37. */
  38. void tile_service_init(void);
  39. void tile_on_ble_evt(ble_evt_t const * p_evt, void * p_context);
  40. void tile_get_adv_params(uint16_t* uuid, uint16_t* interval);
  41. uint16_t tile_get_adv_uuid(void);
  42. /**
  43. * @}
  44. */
  45. #endif // TILE_SERVICE_H_