2021-12-07 16:47:20 +03:00
|
|
|
/**
|
2022-01-05 19:10:18 +03:00
|
|
|
* @file furi_hal_info.h
|
2021-12-07 16:47:20 +03:00
|
|
|
* Device info HAL API
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
2022-11-29 12:08:08 +03:00
|
|
|
#include <core/string.h>
|
|
|
|
#include <toolbox/property.h>
|
2021-12-07 16:47:20 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-05-03 06:58:59 +03:00
|
|
|
void furi_hal_info_get_api_version(uint16_t* major, uint16_t* minor);
|
|
|
|
|
2021-12-07 16:47:20 +03:00
|
|
|
/** Get device information
|
|
|
|
*
|
|
|
|
* @param[in] callback callback to provide with new data
|
2022-11-29 12:08:08 +03:00
|
|
|
* @param[in] sep category separator character
|
2021-12-07 16:47:20 +03:00
|
|
|
* @param[in] context context to pass to callback
|
|
|
|
*/
|
2022-11-29 12:08:08 +03:00
|
|
|
void furi_hal_info_get(PropertyValueCallback callback, char sep, void* context);
|
2021-12-07 16:47:20 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|