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