unleashed-firmware/firmware/targets/furi_hal_include/furi_hal_info.h
hedger c5b460b416
[FL-3260] Added API version to device info (#2611)
* hal: device_info: added API version to "firmware.api.major" & "firmware.api.minor"
* FuriHal: bump device info version

Co-authored-by: あく <alleteam@gmail.com>
2023-05-03 12:58:59 +09:00

29 lines
598 B
C

/**
* @file furi_hal_info.h
* Device info HAL API
*/
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <core/string.h>
#include <toolbox/property.h>
#ifdef __cplusplus
extern "C" {
#endif
void furi_hal_info_get_api_version(uint16_t* major, uint16_t* minor);
/** Get device information
*
* @param[in] callback callback to provide with new data
* @param[in] sep category separator character
* @param[in] context context to pass to callback
*/
void furi_hal_info_get(PropertyValueCallback callback, char sep, void* context);
#ifdef __cplusplus
}
#endif