appl_main.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * \file appl_main.h
  3. *
  4. * Header File for the Test Application to test the Mindtree
  5. * Mesh stack.
  6. */
  7. /*
  8. * Copyright (C) 2016. Mindtree Ltd.
  9. * All rights reserved.
  10. */
  11. #ifndef _H_APPL_MAIN_
  12. #define _H_APPL_MAIN_
  13. /* --------------------------------------------- Header File Inclusion */
  14. #include "MS_access_api.h"
  15. #include "MS_config_api.h"
  16. /* --------------------------------------------- Global Definitions */
  17. /* --------------------------------------------- Structures/Data Types */
  18. /* --------------------------------------------- Macros */
  19. /* Console Input/Output */
  20. #define CONSOLE_OUT(...) printf(__VA_ARGS__)
  21. #define CONSOLE_IN(...) scanf(__VA_ARGS__)
  22. /* --------------------------------------------- Internal Functions */
  23. void main_register_models(void);
  24. void appl_dump_bytes(UCHAR *buffer, UINT16 length);
  25. void appl_model_power_cycle(void);
  26. void appl_prov_bind(UCHAR brr, UCHAR index);
  27. void appl_prov_get_local_public_key(void);
  28. void appl_prov_input_auth_val (UCHAR mode, void * data, UINT16 datalen);
  29. void appl_prov_register(void);
  30. void appl_prov_set_auth_action
  31. (
  32. UCHAR mode,
  33. UCHAR * s_oob_val,
  34. UCHAR oob_act,
  35. UCHAR oob_sz
  36. );
  37. void appl_prov_setup(UCHAR role, UCHAR brr);
  38. API_RESULT appl_prov_update_remote_uuid
  39. (
  40. UCHAR * uuid,
  41. UINT16 uuid_len,
  42. UINT16 oob_info,
  43. UCHAR * uri
  44. );
  45. void appl_prov_set_uuid (UCHAR * uuid);
  46. void appl_prov_update_uuid (UCHAR octet);
  47. void appl_proxy_adv
  48. (
  49. UCHAR identification_type,
  50. MS_SUBNET_HANDLE subnet_handle
  51. );
  52. void appl_proxy_register(void);
  53. void appl_prov_set_dev_public_key(void);
  54. void appl_prov_bind_device(UCHAR brr);
  55. void appl_proxy_start_net_id_adv(MS_SUBNET_HANDLE subnet_handle);
  56. API_RESULT appl_is_configured (void);
  57. #endif /* _H_APPL_MAIN_ */