furi_hal_info.h 857 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @file furi_hal_info.h
  3. * Device info HAL API
  4. */
  5. #pragma once
  6. #include <stdbool.h>
  7. #include <stdint.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /** Callback type called every time another key-value pair of device information is ready
  12. *
  13. * @param key[in] device information type identifier
  14. * @param value[in] device information value
  15. * @param last[in] whether the passed key-value pair is the last one
  16. * @param context[in] to pass to callback
  17. */
  18. typedef void (
  19. *FuriHalInfoValueCallback)(const char* key, const char* value, bool last, void* context);
  20. /** Get device information
  21. *
  22. * @param[in] callback callback to provide with new data
  23. * @param[in] context context to pass to callback
  24. */
  25. void furi_hal_info_get(FuriHalInfoValueCallback callback, void* context);
  26. #ifdef __cplusplus
  27. }
  28. #endif