Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-10-03 13:36:05 +0300
committerGitHub <noreply@github.com>2021-10-03 13:36:05 +0300
commit89a6c09a7a33824991c7e2118632232dbcdf131b (patch)
tree74e3ad937224b6dbf3b4d5f4ba801a35028acdd8
parent1208a5077fdd1eab26bbae1c385ccb2960150415 (diff)
[FL-1906] Documentation: add Doxyfile, prepare sources for doxygen. (#741)
* Documentation: add Doxyfile, prepare sources for doxygen. * Update ReadMe and remove obsolete CLA * Add contribution guide * Contributing: update text * Correct spelling
-rw-r--r--CONTRIBUTING.md71
-rw-r--r--ReadMe.md1
-rw-r--r--applications/cli/cli.h99
-rw-r--r--applications/gui/canvas.h205
-rw-r--r--applications/gui/canvas_i.h65
-rw-r--r--applications/gui/elements.h8
-rw-r--r--applications/gui/gui.h75
-rw-r--r--applications/gui/gui_i.h13
-rw-r--r--applications/gui/icon.h23
-rw-r--r--applications/gui/icon_animation.h42
-rw-r--r--applications/gui/icon_animation_i.h22
-rw-r--r--applications/gui/icon_i.h5
-rw-r--r--applications/gui/modules/button_menu.h78
-rw-r--r--applications/gui/modules/button_panel.h82
-rw-r--r--applications/gui/modules/byte_input.h71
-rw-r--r--applications/gui/modules/dialog.h76
-rw-r--r--applications/gui/modules/dialog_ex.h84
-rw-r--r--applications/gui/modules/empty_screen.h26
-rw-r--r--applications/gui/modules/file_select.h6
-rwxr-xr-xapplications/gui/modules/menu.h43
-rw-r--r--applications/gui/modules/popup.h102
-rw-r--r--applications/gui/modules/submenu.h66
-rw-r--r--applications/gui/modules/text_box.h42
-rw-r--r--applications/gui/modules/text_input.h50
-rwxr-xr-xapplications/gui/modules/variable-item-list.h66
-rwxr-xr-xapplications/gui/modules/widget.h84
-rwxr-xr-xapplications/gui/modules/widget_elements/widget_element_i.h17
-rwxr-xr-xapplications/gui/scene_manager.h98
-rwxr-xr-xapplications/gui/scene_manager_i.h5
-rw-r--r--applications/gui/view.h144
-rwxr-xr-xapplications/gui/view_dispatcher.h92
-rw-r--r--applications/gui/view_dispatcher_i.h19
-rw-r--r--applications/gui/view_i.h21
-rw-r--r--applications/gui/view_port.h45
-rw-r--r--applications/gui/view_port_i.h29
-rw-r--r--applications/input/input.h19
-rw-r--r--applications/input/input_i.h13
-rw-r--r--core/furi-hal/api-interrupt-mgr.h53
-rw-r--r--core/furi/memmgr.c6
-rw-r--r--core/furi/memmgr.h28
-rw-r--r--core/furi/memmgr_heap.h23
-rw-r--r--core/furi/record.h42
-rw-r--r--core/furi/stdglue.h37
-rw-r--r--core/furi/thread.h98
-rw-r--r--documentation/Doxyfile2608
-rw-r--r--firmware/targets/f6/furi-hal/furi-hal-flash.h60
-rw-r--r--firmware/targets/f6/furi-hal/furi-hal-subghz.c8
-rw-r--r--firmware/targets/f7/furi-hal/furi-hal-subghz.c8
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-boot.h24
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-bt.h97
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-crypto.h49
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-delay.h28
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-i2c.h82
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-ibutton.h6
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-irda.h122
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-light.h16
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-nfc.h69
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-power.h125
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-rfid.h102
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-sd.h20
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-subghz.h155
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-vcp.h44
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-version.h96
-rw-r--r--firmware/targets/furi-hal-include/furi-hal-vibro.h13
-rw-r--r--firmware/targets/furi-hal-include/furi-hal.h5
-rw-r--r--flipper-zero-cla.md39
66 files changed, 4846 insertions, 1224 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..7aeccb89
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,71 @@
+# Welcome to FlipperZero contributing guide <!-- omit in toc -->
+
+Thank you for investing your time in contributing to our project!
+
+Read our [Code of Coduct](CODE_OF_CONDUCT.md) to keep our community approachable and respectable.
+
+In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
+
+## New contributor guide
+
+See the [ReadMe](ReadMe.md) to get an overview of the project. Here are some helpful resources to get you comfortable with open source contribution:
+
+- [Finding ways to contribute to open source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
+- [Set up Git](https://docs.github.com/en/get-started/quickstart/set-up-git)
+- [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow)
+- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
+
+## Getting started
+
+Before writing code and creating PR make sure that it aligns with our mission and guidlines:
+
+- All our devices are intended for research and education.
+- PR that contains code intended to commit crimes is not going to be accepted.
+- Your PR must contain code compatiable with project [LICENSE](LICENSE).
+- PR will only be merged if it pass CI/CD.
+- PR will only be merged if it pass review by code owner.
+
+Feel free to ask questions in issues if you're not sure.
+
+### Issues
+
+#### Create a new issue
+
+If you found a problem, [search if an issue already exists](https://docs.github.com/en/github/searching-for-information-on-github/searching-on-github/searching-issues-and-pull-requests#search-by-the-title-body-or-comments). If a related issue doesn't exist, you can open a new issue using a relevant [issue form](https://github.com/flipperdevices/flipperzero-firmware/issues/new/choose).
+
+#### Solve an issue
+
+Scan through our [existing issues](https://github.com/flipperdevices/flipperzero-firmware/issues) to find one that interests you.
+
+### Make Changes
+
+1. Fork the repository.
+- Using GitHub Desktop:
+ - [Getting started with GitHub Desktop](https://docs.github.com/en/desktop/installing-and-configuring-github-desktop/getting-started-with-github-desktop) will guide you through setting up Desktop.
+ - Once Desktop is set up, you can use it to [fork the repo](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/cloning-and-forking-repositories-from-github-desktop)!
+
+- Using the command line:
+ - [Fork the repo](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo#fork-an-example-repository) so that you can make your changes without affecting the original project until you're ready to merge them.
+
+2. Install build requirements
+
+3. Create a working branch and start with your changes!
+
+### Commit your update
+
+Commit the changes once you are happy with them. Make sure that code compilation is not broken and passes tests. Check syntax and formatting.
+
+### Pull Request
+
+When you're done making the changes, open a pull request, often referred to as a PR.
+- Fill out the "Ready for review" template so we can review your PR. This template helps reviewers understand your changes and the purpose of your pull request.
+- Don't forget to [link PR to issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) if you are solving one.
+- Enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) so the branch can be updated for a merge.
+Once you submit your PR, a Docs team member will review your proposal. We may ask questions or request for additional information.
+- We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
+- As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations).
+- If you run into any merge issues, checkout this [git tutorial](https://lab.github.com/githubtraining/managing-merge-conflicts) to help you resolve merge conflicts and other issues.
+
+### Your PR is merged!
+
+Congratulations :tada::tada: The FlipperDevices team thanks you :sparkles:.
diff --git a/ReadMe.md b/ReadMe.md
index 9fd85687..073b23de 100644
--- a/ReadMe.md
+++ b/ReadMe.md
@@ -162,6 +162,7 @@ Finally, you will have **`firmware/.obj/f6/full.dfu`** file that can be distribu
- core - core libraries: home for furi
- debug - debug helpers, plugins and tools
- docker - docker image sources (used for automated firmware build)
+- documentation - documentation generation system configs and input files
- firmware - firmware for flipper
* targets - targets' hal and implementation
- lib - different libraries and drivers that apps and firmware uses
diff --git a/applications/cli/cli.h b/applications/cli/cli.h
index b6f524a1..9a166dc5 100644
--- a/applications/cli/cli.h
+++ b/applications/cli/cli.h
@@ -1,11 +1,16 @@
+/**
+ * @file cli.h
+ * Cli API
+ */
+
#pragma once
+#include <m-string.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <m-string.h>
-
typedef enum {
CliSymbolAsciiSOH = 0x01,
CliSymbolAsciiETX = 0x03,
@@ -21,30 +26,29 @@ typedef enum {
} CliSymbols;
typedef enum {
- CliCommandFlagDefault = 0, /** Default, loader lock is used */
+ CliCommandFlagDefault = 0, /**< Default, loader lock is used */
CliCommandFlagParallelSafe =
- (1 << 0), /** Safe to run in parallel with other apps, loader lock is not used */
- CliCommandFlagInsomniaSafe = (1 << 1), /** Safe to run with insomnia mode on */
+ (1 << 0), /**< Safe to run in parallel with other apps, loader lock is not used */
+ CliCommandFlagInsomniaSafe = (1 << 1), /**< Safe to run with insomnia mode on */
} CliCommandFlag;
-/* Cli type
- * Anonymous structure. Use cli_i.h if you need to go deeper.
- */
+/** Cli type anonymous structure */
typedef struct Cli Cli;
-/* Cli callback function pointer.
- * Implement this interface and use add_cli_command
- * @param args - string with what was passed after command
- * @param context - pointer to whatever you gave us on cli_add_command
+/** Cli callback function pointer. Implement this interface and use
+ * add_cli_command
+ * @param args string with what was passed after command
+ * @param context pointer to whatever you gave us on cli_add_command
*/
typedef void (*CliCallback)(Cli* cli, string_t args, void* context);
-/* Add cli command
- * Registers you command callback
- * @param cli - pointer to cli instance
- * @param name - command name
- * @param callback - callback function
- * @param context - pointer to whatever we need to pass to callback
+/** Add cli command Registers you command callback
+ *
+ * @param cli pointer to cli instance
+ * @param name command name
+ * @param flags CliCommandFlag
+ * @param callback callback function
+ * @param context pointer to whatever we need to pass to callback
*/
void cli_add_command(
Cli* cli,
@@ -53,51 +57,56 @@ void cli_add_command(
CliCallback callback,
void* context);
-/* Print unified cmd usage tip
- * @param cmd - cmd name
- * @param usage - usage tip
- * @param arg - arg passed by user
+/** Print unified cmd usage tip
+ *
+ * @param cmd cmd name
+ * @param usage usage tip
+ * @param arg arg passed by user
*/
-
void cli_print_usage(const char* cmd, const char* usage, const char* arg);
-/* Delete cli command
- * @param cli - pointer to cli instance
- * @param name - command name
+/** Delete cli command
+ *
+ * @param cli pointer to cli instance
+ * @param name command name
*/
void cli_delete_command(Cli* cli, const char* name);
-/* Read from terminal
- * Do it only from inside of cli call.
- * @param cli - Cli instance
- * @param buffer - pointer to buffer
- * @param size - size of buffer in bytes
- * @return bytes written
+/** Read from terminal Do it only from inside of cli call.
+ *
+ * @param cli Cli instance
+ * @param buffer pointer to buffer
+ * @param size size of buffer in bytes
+ *
+ * @return bytes written
*/
size_t cli_read(Cli* cli, uint8_t* buffer, size_t size);
-/* Not blocking check for interrupt command received
- * @param cli - Cli instance
+/** Not blocking check for interrupt command received
+ *
+ * @param cli Cli instance
+ *
+ * @return true if received
*/
bool cli_cmd_interrupt_received(Cli* cli);
-/* Write to terminal
- * Do it only from inside of cli call.
- * @param cli - Cli instance
- * @param buffer - pointer to buffer
- * @param size - size of buffer in bytes
- * @return bytes written
+/** Write to terminal Do it only from inside of cli call.
+ *
+ * @param cli Cli instance
+ * @param buffer pointer to buffer
+ * @param size size of buffer in bytes
*/
void cli_write(Cli* cli, const uint8_t* buffer, size_t size);
-/* Read character
- * @param cli - Cli instance
- * @return char
+/** Read character
+ *
+ * @param cli Cli instance
+ *
+ * @return char
*/
char cli_getc(Cli* cli);
-/* New line
- * Send new ine sequence
+/** New line Send new ine sequence
*/
void cli_nl();
diff --git a/applications/gui/canvas.h b/applications/gui/canvas.h
index db4bec1f..7d7ef997 100644
--- a/applications/gui/canvas.h
+++ b/applications/gui/canvas.h
@@ -1,3 +1,8 @@
+/**
+ * @file canvas.h
+ * GUI: Canvas API
+ */
+
#pragma once
#include <stdint.h>
@@ -8,13 +13,16 @@
extern "C" {
#endif
+/** Color enumeration */
typedef enum {
ColorWhite = 0x00,
ColorBlack = 0x01,
} Color;
+/** Fonts enumeration */
typedef enum { FontPrimary, FontSecondary, FontKeyboard } Font;
+/** Alignment enumeration */
typedef enum {
AlignLeft,
AlignRight,
@@ -23,59 +31,85 @@ typedef enum {
AlignCenter,
} Align;
+/** Canvas Orientation */
typedef enum {
CanvasOrientationHorizontal,
CanvasOrientationVertical,
} CanvasOrientation;
+/** Canvas anonymouse structure */
typedef struct Canvas Canvas;
-/*
- * Canvas width
- * @return width in pixels.
+/** Get Canvas width
+ *
+ * @param canvas Canvas instance
+ *
+ * @return width in pixels.
*/
uint8_t canvas_width(Canvas* canvas);
-/*
- * Canvas height
- * @return height in pixels.
+/** Get Canvas height
+ *
+ * @param canvas Canvas instance
+ *
+ * @return height in pixels.
*/
uint8_t canvas_height(Canvas* canvas);
-/*
- * Get current font height
- * @return height in pixels.
+/** Get current font height
+ *
+ * @param canvas Canvas instance
+ *
+ * @return height in pixels.
*/
uint8_t canvas_current_font_height(Canvas* canvas);
-/*
- * Clear canvas, clear rendering buffer
+/** Clear canvas
+ *
+ * @param canvas Canvas instance
*/
void canvas_clear(Canvas* canvas);
-/*
- * Set drawing color
+/** Set drawing color
+ *
+ * @param canvas Canvas instance
+ * @param color Color
*/
void canvas_set_color(Canvas* canvas, Color color);
-/*
- * Invert drawing color
+/** Invert drawing color
+ *
+ * @param canvas Canvas instance
*/
void canvas_invert_color(Canvas* canvas);
-/*
- * Set drawing font
+/** Set drawing font
+ *
+ * @param canvas Canvas instance
+ * @param font Font
*/
void canvas_set_font(Canvas* canvas, Font font);
-/*
- * Draw string at position of baseline defined by x, y.
+/** Draw string at position of baseline defined by x, y.
+ *
+ * @param canvas Canvas instance
+ * @param x anchor point x coordinate
+ * @param y anchor point y coordinate
+ * @param str C-string
*/
void canvas_draw_str(Canvas* canvas, uint8_t x, uint8_t y, const char* str);
-/*
- * Draw aligned string defined by x, y.
- * Align calculated from position of baseline, string width and ascent (height of the glyphs above the baseline)
+/** Draw aligned string defined by x, y.
+ *
+ * Align calculated from position of baseline, string width and ascent (height
+ * of the glyphs above the baseline)
+ *
+ * @param canvas Canvas instance
+ * @param x anchor point x coordinate
+ * @param y anchor point y coordinate
+ * @param horizontal horizontal alignment
+ * @param vertical vertical alignment
+ * @param str C-string
*/
void canvas_draw_str_aligned(
Canvas* canvas,
@@ -85,22 +119,30 @@ void canvas_draw_str_aligned(
Align vertical,
const char* str);
-/*
- * Get string width
- * @return width in pixels.
+/** Get string width
+ *
+ * @param canvas Canvas instance
+ * @param str C-string
+ *
+ * @return width in pixels.
*/
uint16_t canvas_string_width(Canvas* canvas, const char* str);
/** Get glyph width
- * @return width in pixels
+ *
+ * @param canvas Canvas instance
+ * @param[in] symbol character
+ *
+ * @return width in pixels
*/
uint8_t canvas_glyph_width(Canvas* canvas, char symbol);
/** Draw animation at position defined by x,y.
- * @param canvas - canvas instance
- * @param x - x coordinate
- * @param y - y coordinate
- * @param icon_animation - data pointer to IconAnimation
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param icon_animation IconAnimation instance
*/
void canvas_draw_icon_animation(
Canvas* canvas,
@@ -109,15 +151,22 @@ void canvas_draw_icon_animation(
IconAnimation* icon_animation);
/** Draw icon at position defined by x,y.
- * @param canvas - canvas instance
- * @param x - x coordinate
- * @param y - y coordinate
- * @param icon - data pointer to Icon
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param icon Icon instance
*/
void canvas_draw_icon(Canvas* canvas, uint8_t x, uint8_t y, const Icon* icon);
-/*
- * Draw xbm icon of width, height at position defined by x,y.
+/** Draw XBM bitmap
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param w bitmap width
+ * @param h bitmap height
+ * @param bitmap pointer to XBM bitmap data
*/
void canvas_draw_xbm(
Canvas* canvas,
@@ -127,48 +176,86 @@ void canvas_draw_xbm(
uint8_t h,
const uint8_t* bitmap);
-/*
- * Draw dot at x,y
+/** Draw dot at x,y
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
*/
void canvas_draw_dot(Canvas* canvas, uint8_t x, uint8_t y);
-/*
- * Draw box of width, height at x,y
+/** Draw box of width, height at x,y
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param width box width
+ * @param height box height
*/
void canvas_draw_box(Canvas* canvas, uint8_t x, uint8_t y, uint8_t width, uint8_t height);
-/*
- * Draw frame of width, height at x,y
+/** Draw frame of width, height at x,y
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param width frame width
+ * @param height frame height
*/
void canvas_draw_frame(Canvas* canvas, uint8_t x, uint8_t y, uint8_t width, uint8_t height);
-/*
- * Draw line from x1,y1 to x2,y2
+/** Draw line from x1,y1 to x2,y2
+ *
+ * @param canvas Canvas instance
+ * @param x1 x1 coordinate
+ * @param y1 y1 coordinate
+ * @param x2 x2 coordinate
+ * @param y2 y2 coordinate
*/
void canvas_draw_line(Canvas* canvas, uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2);
-/*
- * Draw circle at x,y with radius r
+/** Draw circle at x,y with radius r
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param r radius
*/
void canvas_draw_circle(Canvas* canvas, uint8_t x, uint8_t y, uint8_t r);
-/*
- * Draw disc at x,y with radius r
+/** Draw disc at x,y with radius r
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param r radius
*/
void canvas_draw_disc(Canvas* canvas, uint8_t x, uint8_t y, uint8_t r);
-/*
- * Draw glyph
+/** Draw glyph
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param ch character
*/
void canvas_draw_glyph(Canvas* canvas, uint8_t x, uint8_t y, uint16_t ch);
-/*
- * Set transparency mode
+/** Set transparency mode
+ *
+ * @param canvas Canvas instance
+ * @param alpha transparency mode
*/
void canvas_set_bitmap_mode(Canvas* canvas, bool alpha);
-/*
- * Draw rounded-corner frame of width, height at x,y, with round value raduis
+/** Draw rounded-corner frame of width, height at x,y, with round value raduis
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param width frame width
+ * @param height frame height
+ * @param radius frame corner radius
*/
void canvas_draw_rframe(
Canvas* canvas,
@@ -178,8 +265,14 @@ void canvas_draw_rframe(
uint8_t height,
uint8_t radius);
-/*
- * Draw rounded-corner box of width, height at x,y, with round value raduis
+/** Draw rounded-corner box of width, height at x,y, with round value raduis
+ *
+ * @param canvas Canvas instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param width box width
+ * @param height box height
+ * @param radius box corner radius
*/
void canvas_draw_rbox(
Canvas* canvas,
diff --git a/applications/gui/canvas_i.h b/applications/gui/canvas_i.h
index e6cc6345..d5594c24 100644
--- a/applications/gui/canvas_i.h
+++ b/applications/gui/canvas_i.h
@@ -1,8 +1,15 @@
+/**
+ * @file canvas_i.h
+ * GUI: internal Canvas API
+ */
+
#pragma once
#include "canvas.h"
#include <u8g2.h>
+/** Canvas structure
+ */
struct Canvas {
u8g2_t fb;
CanvasOrientation orientation;
@@ -12,40 +19,53 @@ struct Canvas {
uint8_t height;
};
-/*
- * Allocate memory and initialize canvas
+/** Allocate memory and initialize canvas
+ *
+ * @return Canvas instance
*/
Canvas* canvas_init();
-/*
- * Free canvas memory
+/** Free canvas memory
+ *
+ * @param canvas Canvas instance
*/
void canvas_free(Canvas* canvas);
-/*
- * Reset canvas drawing tools configuration
+/** Reset canvas drawing tools configuration
+ *
+ * @param canvas Canvas instance
*/
void canvas_reset(Canvas* canvas);
-/*
- * Commit canvas. Send buffer to display
+/** Commit canvas. Send buffer to display
+ *
+ * @param canvas Canvas instance
*/
void canvas_commit(Canvas* canvas);
-/*
- * Get canvas buffer.
- * @return pointer to buffer
+/** Get canvas buffer.
+ *
+ * @param canvas Canvas instance
+ *
+ * @return pointer to buffer
*/
uint8_t* canvas_get_buffer(Canvas* canvas);
-/*
- * Get canvas buffer size.
- * @return size of canvas in bytes
+/** Get canvas buffer size.
+ *
+ * @param canvas Canvas instance
+ *
+ * @return size of canvas in bytes
*/
size_t canvas_get_buffer_size(Canvas* canvas);
-/*
- * Set drawing region relative to real screen buffer
+/** Set drawing region relative to real screen buffer
+ *
+ * @param canvas Canvas instance
+ * @param offset_x x coordinate offset
+ * @param offset_y y coordinate offset
+ * @param width width
+ * @param height height
*/
void canvas_frame_set(
Canvas* canvas,
@@ -54,12 +74,17 @@ void canvas_frame_set(
uint8_t width,
uint8_t height);
-/*
- * Set canvas orientation
+/** Set canvas orientation
+ *
+ * @param canvas Canvas instance
+ * @param orientation CanvasOrientation
*/
void canvas_set_orientation(Canvas* canvas, CanvasOrientation orientation);
-/*
- * Get canvas orientation
+/** Get canvas orientation
+ *
+ * @param canvas Canvas instance
+ *
+ * @return CanvasOrientation
*/
CanvasOrientation canvas_get_orientation(const Canvas* canvas);
diff --git a/applications/gui/elements.h b/applications/gui/elements.h
index 04ad352b..32156dc2 100644
--- a/applications/gui/elements.h
+++ b/applications/gui/elements.h
@@ -1,3 +1,11 @@
+/**
+ * @file elements.h
+ * GUI: Elements API
+ *
+ * Canvas helpers and UI building blocks.
+ *
+ */
+
#pragma once
#include <stdint.h>
diff --git a/applications/gui/gui.h b/applications/gui/gui.h
index eb557bbc..e94278b5 100644
--- a/applications/gui/gui.h
+++ b/applications/gui/gui.h
@@ -1,3 +1,8 @@
+/**
+ * @file gui.h
+ * GUI: main API
+ */
+
#pragma once
#include "view_port.h"
@@ -7,60 +12,74 @@
extern "C" {
#endif
-/* Gui layers */
+/** Gui layers */
typedef enum {
- GuiLayerNone, /* Special layer for internal use only */
+ GuiLayerNone, /**< Special layer for internal use only */
- GuiLayerStatusBarLeft, /* Status bar left-side layer, auto-layout */
- GuiLayerStatusBarRight, /* Status bar right-side layer, auto-layout */
- GuiLayerMain, /* Main layer, status bar is shown */
- GuiLayerFullscreen, /* Fullscreen layer */
+ GuiLayerStatusBarLeft, /**< Status bar left-side layer, auto-layout */
+ GuiLayerStatusBarRight, /**< Status bar right-side layer, auto-layout */
+ GuiLayerMain, /**< Main layer, status bar is shown */
+ GuiLayerFullscreen, /**< Fullscreen layer */
- GuiLayerMAX /* Don't use or move, special value */
+ GuiLayerMAX /**< Don't use or move, special value */
} GuiLayer;
-/* Gui frame buffer callback */
+/** Gui Canvas Commit Callback */
typedef void (*GuiCanvasCommitCallback)(uint8_t* data, size_t size, void* context);
typedef struct Gui Gui;
-/*
- * Add view_port to view_port tree
- * @remarks thread safe
+/** Add view_port to view_port tree
+ *
+ * @remark thread safe
+ *
+ * @param gui Gui instance
+ * @param view_port ViewPort instance
+ * @param[in] layer GuiLayer where to place view_port
*/
void gui_add_view_port(Gui* gui, ViewPort* view_port, GuiLayer layer);
-/*
- * Remove view_port from rendering tree
- * @remarks thread safe
+/** Remove view_port from rendering tree
+ *
+ * @remark thread safe
+ *
+ * @param gui Gui instance
+ * @param view_port ViewPort instance
*/
void gui_remove_view_port(Gui* gui, ViewPort* view_port);
-/* Send ViewPort to the front
+/** Send ViewPort to the front
+ *
* Places selected ViewPort to the top of the drawing stack
- * @param gui - Gui instance
- * @param view_port - ViewPort instance
+ *
+ * @param gui Gui instance
+ * @param view_port ViewPort instance
*/
void gui_send_view_port_front(Gui* gui, ViewPort* view_port);
-/* Send ViewPort to the back
+/** Send ViewPort to the back
+ *
* Places selected ViewPort to the bottom of the drawing stack
- * @param gui - Gui instance
- * @param view_port - ViewPort instance
+ *
+ * @param gui Gui instance
+ * @param view_port ViewPort instance
*/
void gui_send_view_port_back(Gui* gui, ViewPort* view_port);
-/* Set gui canvas commit callback
- * This callback will be called upon Canvas commit
- * Callback dispatched from GUI thread and is time critical
- * @param gui - Gui instance
- * @param callback - GuiCanvasCommitCallback
+/** Set gui canvas commit callback
+ *
+ * This callback will be called upon Canvas commit Callback dispatched from GUI
+ * thread and is time critical
+ *
+ * @param gui Gui instance
+ * @param callback GuiCanvasCommitCallback
*/
void gui_set_framebuffer_callback(Gui* gui, GuiCanvasCommitCallback callback);
-/* Set gui canvas commit callback context
- * @param gui - Gui instance
- * @param context - pointer to context
+/** Set gui canvas commit callback context
+ *
+ * @param gui Gui instance
+ * @param context pointer to context
*/
void gui_set_framebuffer_callback_context(Gui* gui, void* context);
diff --git a/applications/gui/gui_i.h b/applications/gui/gui_i.h
index d67b4599..cfbf604f 100644
--- a/applications/gui/gui_i.h
+++ b/applications/gui/gui_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file gui_i.h
+ * GUI: main API internals
+ */
+
#pragma once
#include "gui.h"
@@ -31,6 +36,7 @@
ARRAY_DEF(ViewPortArray, ViewPort*, M_PTR_OPLIST);
+/** Gui structure */
struct Gui {
// Thread and lock
osThreadId_t thread;
@@ -54,8 +60,9 @@ struct Gui {
ViewPort* gui_view_port_find_enabled(ViewPortArray_t array);
-/* Update GUI, request redraw
- * @param gui, Gui instance
+/** Update GUI, request redraw
+ *
+ * @param gui Gui instance
*/
void gui_update(Gui* gui);
@@ -67,4 +74,4 @@ void gui_unlock(Gui* gui);
void gui_cli_screen_stream_callback(uint8_t* data, size_t size, void* context);
-void gui_cli_screen_stream(Cli* cli, string_t args, void* context); \ No newline at end of file
+void gui_cli_screen_stream(Cli* cli, string_t args, void* context);
diff --git a/applications/gui/icon.h b/applications/gui/icon.h
index 058089bb..ebe40266 100644
--- a/applications/gui/icon.h
+++ b/applications/gui/icon.h
@@ -1,3 +1,8 @@
+/**
+ * @file icon.h
+ * GUI: Icon API
+ */
+
#pragma once
#include <stdint.h>
@@ -8,10 +13,28 @@ extern "C" {
typedef struct Icon Icon;
+/** Get icon width
+ *
+ * @param[in] instance pointer to Icon data
+ *
+ * @return width in pixels
+ */
uint8_t icon_get_width(const Icon* instance);
+/** Get icon height
+ *
+ * @param[in] instance pointer to Icon data
+ *
+ * @return height in pixels
+ */
uint8_t icon_get_height(const Icon* instance);
+/** Get Icon XBM bitmap data
+ *
+ * @param[in] instance pointer to Icon data
+ *
+ * @return pointer to XBM bitmap data
+ */
const uint8_t* icon_get_data(const Icon* instance);
#ifdef __cplusplus
diff --git a/applications/gui/icon_animation.h b/applications/gui/icon_animation.h
index 6adc16ec..dab9d996 100644
--- a/applications/gui/icon_animation.h
+++ b/applications/gui/icon_animation.h
@@ -1,28 +1,48 @@
+/**
+ * @file icon_animation.h
+ * GUI: IconAnimation API
+ */
+
#pragma once
#include <stdint.h>
#include <stdbool.h>
+#include <assets_icons.h>
#ifdef __cplusplus
extern "C" {
#endif
-#include <assets_icons.h>
-
+/** Icon Animation */
typedef struct IconAnimation IconAnimation;
+/** Icon Animation Callback. Used for update notification */
typedef void (*IconAnimationCallback)(IconAnimation* instance, void* context);
/** Allocate icon animation instance with const icon data.
+ *
* always returns Icon or stops system if not enough memory
+ *
+ * @param[in] icon pointer to Icon data
+ *
+ * @return IconAnimation instance
*/
IconAnimation* icon_animation_alloc(const Icon* icon);
/** Release icon animation instance
+ *
+ * @param instance IconAnimation instance
*/
void icon_animation_free(IconAnimation* instance);
-/** Get icon animation width
+/** Set IconAnimation update callback
+ *
+ * Normally you do not need to use this function, use view_tie_icon_animation
+ * instead.
+ *
+ * @param instance IconAnimation instance
+ * @param[in] callback IconAnimationCallback
+ * @param context callback context
*/
void icon_animation_set_update_callback(
IconAnimation* instance,
@@ -30,22 +50,38 @@ void icon_animation_set_update_callback(
void* context);
/** Get icon animation width
+ *
+ * @param instance IconAnimation instance
+ *
+ * @return width in pixels
*/
uint8_t icon_animation_get_width(IconAnimation* instance);
/** Get icon animation height
+ *
+ * @param instance IconAnimation instance
+ *
+ * @return height in pixels
*/
uint8_t icon_animation_get_height(IconAnimation* instance);
/** Start icon animation
+ *
+ * @param instance IconAnimation instance
*/
void icon_animation_start(IconAnimation* instance);
/** Stop icon animation
+ *
+ * @param instance IconAnimation instance
*/
void icon_animation_stop(IconAnimation* instance);
/** Returns true if current frame is a last one
+ *
+ * @param instance IconAnimation instance
+ *
+ * @return true if last frame
*/
bool icon_animation_is_last_frame(IconAnimation* instance);
diff --git a/applications/gui/icon_animation_i.h b/applications/gui/icon_animation_i.h
index 61c74788..241bcaa3 100644
--- a/applications/gui/icon_animation_i.h
+++ b/applications/gui/icon_animation_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file icon_animation_i.h
+ * GUI: internal IconAnimation API
+ */
+
#pragma once
#include "icon_animation.h"
@@ -13,11 +18,22 @@ struct IconAnimation {
void* callback_context;
};
-/** Get pointer to current frame data */
+/** Get pointer to current frame data
+ *
+ * @param instance IconAnimation instance
+ *
+ * @return pointer to current frame XBM bitmap data
+ */
const uint8_t* icon_animation_get_data(IconAnimation* instance);
-/** Advance to next frame */
+/** Advance to next frame
+ *
+ * @param instance IconAnimation instance
+ */
void icon_animation_next_frame(IconAnimation* instance);
-/** IconAnimation timer callback */
+/** IconAnimation timer callback
+ *
+ * @param context pointer to IconAnimation
+ */
void icon_animation_timer_callback(void* context);
diff --git a/applications/gui/icon_i.h b/applications/gui/icon_i.h
index 62a7ff39..c01f5cce 100644
--- a/applications/gui/icon_i.h
+++ b/applications/gui/icon_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file icon_i.h
+ * GUI: internal Icon API
+ */
+
#include "icon.h"
struct Icon {
diff --git a/applications/gui/modules/button_menu.h b/applications/gui/modules/button_menu.h
index 35355d6b..a662114b 100644
--- a/applications/gui/modules/button_menu.h
+++ b/applications/gui/modules/button_menu.h
@@ -1,4 +1,10 @@
+/**
+ * @file button_menu.h
+ * GUI: ButtonMenu view module API
+ */
+
#pragma once
+
#include <stdint.h>
#include <gui/view.h>
@@ -6,40 +12,48 @@
extern "C" {
#endif
-/* ButtonMenu anonymous structure */
+/** ButtonMenu anonymous structure */
typedef struct ButtonMenu ButtonMenu;
+
+/** ButtonMenuItem anonymous structure */
typedef struct ButtonMenuItem ButtonMenuItem;
-/* Callback for any button menu actions */
+/** Callback for any button menu actions */
typedef void (*ButtonMenuItemCallback)(void* context, int32_t index, InputType type);
-/* Type of button. Difference in drawing buttons. */
+/** Type of button. Difference in drawing buttons. */
typedef enum {
ButtonMenuItemTypeCommon,
ButtonMenuItemTypeControl,
} ButtonMenuItemType;
-/**
- * @brief Get button menu view
- * @param button_menu - ButtonMenu instance
- * @return View instance that can be used for embedding
+/** Get button menu view
+ *
+ * @param button_menu ButtonMenu instance
+ *
+ * @return View instance that can be used for embedding
*/
View* button_menu_get_view(ButtonMenu* button_menu);
-/**
- * @brief Clean button menu
- * @param button_menu - ButtonMenu instance
+/** Clean button menu
+ *
+ * @param button_menu ButtonMenu instance
*/
void button_menu_clean(ButtonMenu* button_menu);
-/**
- * @brief Add item to button menu instance
- * @param button_menu - ButtonMenu instance
- * @param label - text inside new button
- * @param index - value to distinct between buttons inside ButtonMenuItemCallback
- * @param type - type of button to create. Differ by button drawing.
- * Control buttons have no frames, and have more squared borders.
- * @return pointer to just-created item
+/** Add item to button menu instance
+ *
+ * @param button_menu ButtonMenu instance
+ * @param label text inside new button
+ * @param index value to distinct between buttons inside
+ * ButtonMenuItemCallback
+ * @param callback The callback
+ * @param type type of button to create. Differ by button
+ * drawing. Control buttons have no frames, and
+ * have more squared borders.
+ * @param callback_context The callback context
+ *
+ * @return pointer to just-created item
*/
ButtonMenuItem* button_menu_add_item(
ButtonMenu* button_menu,
@@ -49,29 +63,29 @@ ButtonMenuItem* button_menu_add_item(
ButtonMenuItemType type,
void* callback_context);
-/**
- * @brief Allocate and initialize new instance of ButtonMenu model
- * @return just-created ButtonMenu model
+/** Allocate and initialize new instance of ButtonMenu model
+ *
+ * @return just-created ButtonMenu model
*/
ButtonMenu* button_menu_alloc(void);
-/**
- * @brief Free ButtonMenu element
- * @param button_menu - ButtonMenu instance
+/** Free ButtonMenu element
+ *
+ * @param button_menu ButtonMenu instance
*/
void button_menu_free(ButtonMenu* button_menu);
-/**
- * @brief Set ButtonMenu header on top of canvas
- * @param button_menu - ButtonMenu instance
- * @param header - header on the top of button menu
+/** Set ButtonMenu header on top of canvas
+ *
+ * @param button_menu ButtonMenu instance
+ * @param header header on the top of button menu
*/
void button_menu_set_header(ButtonMenu* button_menu, const char* header);
-/**
- * @brief Set selected item
- * @param button_menu - ButtonMenu instance
- * @param index - index of ButtonMenu to be selected
+/** Set selected item
+ *
+ * @param button_menu ButtonMenu instance
+ * @param index index of ButtonMenu to be selected
*/
void button_menu_set_selected_item(ButtonMenu* button_menu, uint32_t index);
diff --git a/applications/gui/modules/button_panel.h b/applications/gui/modules/button_panel.h
index 647b3c6e..479aeeaf 100644
--- a/applications/gui/modules/button_panel.h
+++ b/applications/gui/modules/button_panel.h
@@ -1,4 +1,10 @@
+/**
+ * @file button_panel.h
+ * GUI: ButtonPanel view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
@@ -10,37 +16,39 @@ typedef struct ButtonPanel ButtonPanel;
/** Callback type to call for handling selecting button_panel items */
typedef void (*ButtonItemCallback)(void* context, uint32_t index);
+
/** Callback type for additional drawings above main button_panel screen */
typedef void (*ButtonPanelDrawCallback)(Canvas* canvas, void* _model);
+
/** Callback type to intercept input events of button_panel */
typedef bool (*ButtonPanelInputCallback)(InputEvent* event, void* context);
/** Allocate new button_panel module.
*
- * @return just-created module
+ * @return ButtonPanel instance
*/
ButtonPanel* button_panel_alloc(void);
/** Free button_panel module.
*
- * @param button_panel - module to free
+ * @param button_panel ButtonPanel instance
*/
void button_panel_free(ButtonPanel* button_panel);
/** Free items from button_panel module. Preallocated matrix stays unchanged.
*
- * @param button_panel - module to clean
+ * @param button_panel ButtonPanel instance
*/
void button_panel_clean(ButtonPanel* button_panel);
/** Reserve space for adding items.
*
- * One does not simply use button_panel_add_item() without this function.
- * It should be allocated space for it first.
+ * One does not simply use button_panel_add_item() without this function. It
+ * should be allocated space for it first.
*
- * @param button_panel - module to modify
- * @param reserve_x - number of columns in button_panel
- * @param reserve_y - number of rows in button_panel
+ * @param button_panel ButtonPanel instance
+ * @param reserve_x number of columns in button_panel
+ * @param reserve_y number of rows in button_panel
*/
void button_panel_reserve(ButtonPanel* button_panel, size_t reserve_x, size_t reserve_y);
@@ -48,20 +56,20 @@ void button_panel_reserve(ButtonPanel* button_panel, size_t reserve_x, size_t re
*
* Have to set element in bounds of allocated size by X and by Y.
*
- * @param button_panel - module
- * @param index - value to pass to callback
- * @param matrix_place_x - coordinates by x-axis on virtual grid, it
- * is only used for naviagation
- * @param matrix_place_y - coordinates by y-axis on virtual grid, it
- * is only used for naviagation
- * @param x - x-coordinate to draw icon on
- * @param y - y-coordinate to draw icon on
- * @param icon_name - name of the icon to draw
- * @param icon_name_selected - name of the icon to draw when current
- * element is selected
- * @param callback - function to call when specific element is selected
- * (pressed Ok on selected item)
- * @param callback_context - context to pass to callback
+ * @param button_panel ButtonPanel instance
+ * @param index value to pass to callback
+ * @param matrix_place_x coordinates by x-axis on virtual grid, it
+ * is only used for naviagation
+ * @param matrix_place_y coordinates by y-axis on virtual grid, it
+ * is only used for naviagation
+ * @param x x-coordinate to draw icon on
+ * @param y y-coordinate to draw icon on
+ * @param icon_name name of the icon to draw
+ * @param icon_name_selected name of the icon to draw when current
+ * element is selected
+ * @param callback function to call when specific element is
+ * selected (pressed Ok on selected item)
+ * @param callback_context context to pass to callback
*/
void button_panel_add_item(
ButtonPanel* button_panel,
@@ -77,17 +85,19 @@ void button_panel_add_item(
/** Get button_panel view.
*
- * @param button_panel - module to get view from
- * @return acquired view
+ * @param button_panel ButtonPanel instance
+ *
+ * @return acquired view
*/
View* button_panel_get_view(ButtonPanel* button_panel);
/** Add label to button_panel module.
*
- * @param x - x-coordinate to place label
- * @param y - y-coordinate to place label
- * @param font - font to write label with
- * @param label_str - string label to write
+ * @param button_panel ButtonPanel instance
+ * @param x x-coordinate to place label
+ * @param y y-coordinate to place label
+ * @param font font to write label with
+ * @param label_str string label to write
*/
void button_panel_add_label(
ButtonPanel* button_panel,
@@ -101,9 +111,9 @@ void button_panel_add_label(
*
* Used to add popup drawings after main draw callback is done.
*
- * @param button_panel - module to modify
- * @param callback - callback function to set for draw event
- * @param context - context to pass to callback
+ * @param button_panel ButtonPanel instance
+ * @param callback callback function to set for draw event
+ * @param context context to pass to callback
*/
void button_panel_set_popup_draw_callback(
ButtonPanel* button_panel,
@@ -112,12 +122,12 @@ void button_panel_set_popup_draw_callback(
/** Set popup input callback for button_panel module.
*
- * Used to add popup input callback. It will intercept all input
- * events for current view.
+ * Used to add popup input callback. It will intercept all input events for
+ * current view.
*
- * @param button_panel - module to modify
- * @param callback - function to overwrite main input callbacks
- * @param context - context to pass to callback
+ * @param button_panel ButtonPanel instance
+ * @param callback function to overwrite main input callbacks
+ * @param context context to pass to callback
*/
void button_panel_set_popup_input_callback(
ButtonPanel* button_panel,
diff --git a/applications/gui/modules/byte_input.h b/applications/gui/modules/byte_input.h
index 347474df..b2f94f3c 100644
--- a/applications/gui/modules/byte_input.h
+++ b/applications/gui/modules/byte_input.h
@@ -1,59 +1,53 @@
+/**
+ * @file byte_input.h
+ * GUI: ByteInput keyboard view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/**
- * @brief Byte input anonymous structure
- *
- */
+/** Byte input anonymous structure */
typedef struct ByteInput ByteInput;
-/**
- * @brief callback that is executed on save button press
- *
- */
+/** callback that is executed on save button press */
typedef void (*ByteInputCallback)(void* context);
-/**
- * @brief callback that is executed when byte buffer is changed
- *
- */
+/** callback that is executed when byte buffer is changed */
typedef void (*ByteChangedCallback)(void* context);
-/**
- * @brief Allocate and initialize byte input. This byte input is used to enter bytes.
- *
- * @return ByteInput instance pointer
+/** Allocate and initialize byte input. This byte input is used to enter bytes.
+ *
+ * @return ByteInput instance pointer
*/
ByteInput* byte_input_alloc();
-/**
- * @brief Deinitialize and free byte input
- *
- * @param byte_input Byte input instance
+/** Deinitialize and free byte input
+ *
+ * @param byte_input Byte input instance
*/
void byte_input_free(ByteInput* byte_input);
-/**
- * @brief Get byte input view
- *
- * @param byte_input byte input instance
- * @return View instance that can be used for embedding
+/** Get byte input view
+ *
+ * @param byte_input byte input instance
+ *
+ * @return View instance that can be used for embedding
*/
View* byte_input_get_view(ByteInput* byte_input);
-/**
- * @brief Set byte input result callback
- *
- * @param byte_input byte input instance
- * @param input_callback input callback fn
- * @param changed_callback changed callback fn
- * @param callback_context callback context
- * @param bytes buffer to use
- * @param bytes_count buffer length
+/** Set byte input result callback
+ *
+ * @param byte_input byte input instance
+ * @param input_callback input callback fn
+ * @param changed_callback changed callback fn
+ * @param callback_context callback context
+ * @param bytes buffer to use
+ * @param bytes_count buffer length
*/
void byte_input_set_result_callback(
ByteInput* byte_input,
@@ -63,11 +57,10 @@ void byte_input_set_result_callback(
uint8_t* bytes,
uint8_t bytes_count);
-/**
- * @brief Set byte input header text
- *
- * @param byte_input byte input instance
- * @param text text to be shown
+/** Set byte input header text
+ *
+ * @param byte_input byte input instance
+ * @param text text to be shown
*/
void byte_input_set_header_text(ByteInput* byte_input, const char* text);
diff --git a/applications/gui/modules/dialog.h b/applications/gui/modules/dialog.h
index 5fae73fe..e9160a35 100644
--- a/applications/gui/modules/dialog.h
+++ b/applications/gui/modules/dialog.h
@@ -1,77 +1,95 @@
+/**
+ * @file dialog.h
+ * GUI: Dialog view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* Dialog anonymous structure */
+/** Dialog anonymous structure */
typedef struct Dialog Dialog;
-/* Dialog result */
+/** Dialog result */
typedef enum {
DialogResultLeft,
DialogResultRight,
DialogResultBack,
} DialogResult;
-/* Dialog result callback type
- * @warning comes from GUI thread
+/** Dialog result callback type
+ * @warning comes from GUI thread
*/
typedef void (*DialogResultCallback)(DialogResult result, void* context);
-/* Allocate and initialize dialog
+/** Allocate and initialize dialog
+ *
* This dialog used to ask simple questions like Yes/
+ *
+ * @return Dialog instance
*/
Dialog* dialog_alloc();
-/* Deinitialize and free dialog
- * @param dialog - Dialog instance
+/** Deinitialize and free dialog
+ *
+ * @param dialog Dialog instance
*/
void dialog_free(Dialog* dialog);
-/* Get dialog view
- * @param dialog - Dialog instance
- * @return View instance that can be used for embedding
+/** Get dialog view
+ *
+ * @param dialog Dialog instance
+ *
+ * @return View instance that can be used for embedding
*/
View* dialog_get_view(Dialog* dialog);
-/* Set dialog result callback
- * @param dialog - Dialog instance
- * @param callback - result callback function
+/** Set dialog result callback
+ *
+ * @param dialog Dialog instance
+ * @param callback result callback function
*/
void dialog_set_result_callback(Dialog* dialog, DialogResultCallback callback);
-/* Set dialog context
- * @param dialog - Dialog instance
- * @param context - context pointer, will be passed to result callback
+/** Set dialog context
+ *
+ * @param dialog Dialog instance
+ * @param context context pointer, will be passed to result callback
*/
void dialog_set_context(Dialog* dialog, void* context);
-/* Set dialog header text
- * @param dialog - Dialog instance
- * @param text - text to be shown
+/** Set dialog header text
+ *
+ * @param dialog Dialog instance
+ * @param text text to be shown
*/
void dialog_set_header_text(Dialog* dialog, const char* text);
-/* Set dialog text
- * @param dialog - Dialog instance
- * @param text - text to be shown
+/** Set dialog text
+ *
+ * @param dialog Dialog instance
+ * @param text text to be shown
*/
void dialog_set_text(Dialog* dialog, const char* text);
-/* Set left button text
- * @param dialog - Dialog instance
- * @param text - text to be shown
+/** Set left button text
+ *
+ * @param dialog Dialog instance
+ * @param text text to be shown
*/
void dialog_set_left_button_text(Dialog* dialog, const char* text);
-/* Set right button text
- * @param dialog - Dialog instance
- * @param text - text to be shown
+/** Set right button text
+ *
+ * @param dialog Dialog instance
+ * @param text text to be shown
*/
void dialog_set_right_button_text(Dialog* dialog, const char* text);
#ifdef __cplusplus
}
-#endif \ No newline at end of file
+#endif
diff --git a/applications/gui/modules/dialog_ex.h b/applications/gui/modules/dialog_ex.h
index 7833128a..1420fe5f 100644
--- a/applications/gui/modules/dialog_ex.h
+++ b/applications/gui/modules/dialog_ex.h
@@ -1,4 +1,10 @@
+/**
+ * @file dialog_ex.h
+ * GUI: DialogEx view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
@@ -21,40 +27,51 @@ typedef enum {
typedef void (*DialogExResultCallback)(DialogExResult result, void* context);
/** Allocate and initialize dialog
+ *
* This dialog used to ask simple questions
- * @return DialogEx instance
+ *
+ * @return DialogEx instance
*/
DialogEx* dialog_ex_alloc();
/** Deinitialize and free dialog
- * @param dialog - DialogEx instance
+ *
+ * @param dialog_ex DialogEx instance
*/
void dialog_ex_free(DialogEx* dialog_ex);
/** Get dialog view
- * @param dialog - DialogEx instance
- * @return View instance that can be used for embedding
+ *
+ * @param dialog_ex DialogEx instance
+ *
+ * @return View instance that can be used for embedding
*/
View* dialog_ex_get_view(DialogEx* dialog_ex);
/** Set dialog result callback
- * @param dialog_ex - DialogEx instance
- * @param callback - result callback function
+ *
+ * @param dialog_ex DialogEx instance
+ * @param callback result callback function
*/
void dialog_ex_set_result_callback(DialogEx* dialog_ex, DialogExResultCallback callback);
/** Set dialog context
- * @param dialog_ex - DialogEx instance
- * @param context - context pointer, will be passed to result callback
+ *
+ * @param dialog_ex DialogEx instance
+ * @param context context pointer, will be passed to result callback
*/
void dialog_ex_set_context(DialogEx* dialog_ex, void* context);
/** Set dialog header text
+ *
* If text is null, dialog header will not be rendered
- * @param dialog - DialogEx instance
- * @param text - text to be shown, can be multiline
- * @param x, y - text position
- * @param horizontal, vertical - text aligment
+ *
+ * @param dialog_ex DialogEx instance
+ * @param text text to be shown, can be multiline
+ * @param x x position
+ * @param y y position
+ * @param horizontal horizontal text aligment
+ * @param vertical vertical text aligment
*/
void dialog_ex_set_header(
DialogEx* dialog_ex,
@@ -65,11 +82,15 @@ void dialog_ex_set_header(
Align vertical);
/** Set dialog text
+ *
* If text is null, dialog text will not be rendered
- * @param dialog - DialogEx instance
- * @param text - text to be shown, can be multiline
- * @param x, y - text position
- * @param horizontal, vertical - text aligment
+ *
+ * @param dialog_ex DialogEx instance
+ * @param text text to be shown, can be multiline
+ * @param x x position
+ * @param y y position
+ * @param horizontal horizontal text aligment
+ * @param vertical vertical text aligment
*/
void dialog_ex_set_text(
DialogEx* dialog_ex,
@@ -80,36 +101,47 @@ void dialog_ex_set_text(
Align vertical);
/** Set dialog icon
+ *
* If x or y is negative, dialog icon will not be rendered
- * @param dialog - DialogEx instance
- * @param x, y - icon position
- * @param name - icon to be shown
+ *
+ * @param dialog_ex DialogEx instance
+ * @param x x position
+ * @param y y position
+ * @param icon The icon
+ * @param name icon to be shown
*/
void dialog_ex_set_icon(DialogEx* dialog_ex, uint8_t x, uint8_t y, const Icon* icon);
/** Set left button text
+ *
* If text is null, left button will not be rendered and processed
- * @param dialog - DialogEx instance
- * @param text - text to be shown
+ *
+ * @param dialog_ex DialogEx instance
+ * @param text text to be shown
*/
void dialog_ex_set_left_button_text(DialogEx* dialog_ex, const char* text);
/** Set center button text
+ *
* If text is null, center button will not be rendered and processed
- * @param dialog - DialogEx instance
- * @param text - text to be shown
+ *
+ * @param dialog_ex DialogEx instance
+ * @param text text to be shown
*/
void dialog_ex_set_center_button_text(DialogEx* dialog_ex, const char* text);
/** Set right button text
+ *
* If text is null, right button will not be rendered and processed
- * @param dialog - DialogEx instance
- * @param text - text to be shown
+ *
+ * @param dialog_ex DialogEx instance
+ * @param text text to be shown
*/
void dialog_ex_set_right_button_text(DialogEx* dialog_ex, const char* text);
/** Clean dialog
- * @param dialog_ex DialogEx instance
+ *
+ * @param dialog_ex DialogEx instance
*/
void dialog_ex_clean(DialogEx* dialog_ex);
diff --git a/applications/gui/modules/empty_screen.h b/applications/gui/modules/empty_screen.h
index a0b56219..43d2fe04 100644
--- a/applications/gui/modules/empty_screen.h
+++ b/applications/gui/modules/empty_screen.h
@@ -1,26 +1,38 @@
+/**
+ * @file empty_screen.h
+ * GUI: EmptyScreen view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* Empty screen anonymous structure */
+/** Empty screen anonymous structure */
typedef struct EmptyScreen EmptyScreen;
-/* Allocate and initialize empty screen
+/** Allocate and initialize empty screen
+ *
* This empty screen used to ask simple questions like Yes/
+ *
+ * @return EmptyScreen instance
*/
EmptyScreen* empty_screen_alloc();
-/* Deinitialize and free empty screen
- * @param empty_screen - Empty screen instance
+/** Deinitialize and free empty screen
+ *
+ * @param empty_screen Empty screen instance
*/
void empty_screen_free(EmptyScreen* empty_screen);
-/* Get empty screen view
- * @param empty_screen - Empty screen instance
- * @return View instance that can be used for embedding
+/** Get empty screen view
+ *
+ * @param empty_screen Empty screen instance
+ *
+ * @return View instance that can be used for embedding
*/
View* empty_screen_get_view(EmptyScreen* empty_screen);
diff --git a/applications/gui/modules/file_select.h b/applications/gui/modules/file_select.h
index 5f666d5a..7318c87c 100644
--- a/applications/gui/modules/file_select.h
+++ b/applications/gui/modules/file_select.h
@@ -1,4 +1,10 @@
+/**
+ * @file file_select.h
+ * GUI: FileSelect view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
diff --git a/applications/gui/modules/menu.h b/applications/gui/modules/menu.h
index 26c83c0c..e7d52c84 100755
--- a/applications/gui/modules/menu.h
+++ b/applications/gui/modules/menu.h
@@ -1,4 +1,10 @@
+/**
+ * @file menu.h
+ * GUI: Menu view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
@@ -7,31 +13,38 @@ extern "C" {
/** Menu anonymous structure */
typedef struct Menu Menu;
+
+/** Menu Item Callback */
typedef void (*MenuItemCallback)(void* context, uint32_t index);
/** Menu allocation and initialization
- * @return Menu instance
+ *
+ * @return Menu instance
*/
Menu* menu_alloc();
/** Free menu
- * @param menu - Menu instance
+ *
+ * @param menu Menu instance
*/
void menu_free(Menu* menu);
/** Get Menu view
- * @param menu - Menu instance
- * @return View instance
+ *
+ * @param menu Menu instance
+ *
+ * @return View instance
*/
View* menu_get_view(Menu* menu);
/** Add item to menu
- * @param menu - Menu instance
- * @param label - menu item string label
- * @param icon - IconAnimation instance
- * @param index - menu item index
- * @param callback - MenuItemCallback instance
- * @param context - pointer to context
+ *
+ * @param menu Menu instance
+ * @param label menu item string label
+ * @param icon IconAnimation instance
+ * @param index menu item index
+ * @param callback MenuItemCallback instance
+ * @param context pointer to context
*/
void menu_add_item(
Menu* menu,
@@ -42,14 +55,16 @@ void menu_add_item(
void* context);
/** Clean menu
- * Note: this function does not free menu instance
- * @param menu - Menu instance
+ * @note this function does not free menu instance
+ *
+ * @param menu Menu instance
*/
void menu_clean(Menu* menu);
/** Set current menu item
- * @param submenu
- * @param index
+ *
+ * @param menu Menu instance
+ * @param index The index
*/
void menu_set_selected_item(Menu* menu, uint32_t index);
diff --git a/applications/gui/modules/popup.h b/applications/gui/modules/popup.h
index d65ce4c8..2b87f0ad 100644
--- a/applications/gui/modules/popup.h
+++ b/applications/gui/modules/popup.h
@@ -1,52 +1,70 @@
+/**
+ * @file popup.h
+ * GUI: Popup view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* Popup anonymous structure */
+/** Popup anonymous structure */
typedef struct Popup Popup;
-/* Popup result callback type
- * @warning comes from GUI thread
+/** Popup result callback type
+ * @warning comes from GUI thread
*/
typedef void (*PopupCallback)(void* context);
-/* Allocate and initialize popup
+/** Allocate and initialize popup
+ *
* This popup used to ask simple questions like Yes/
+ *
+ * @return Popup instance
*/
Popup* popup_alloc();
-/* Deinitialize and free popup
- * @param popup - Popup instance
+/** Deinitialize and free popup
+ *
+ * @param popup Popup instance
*/
void popup_free(Popup* popup);
-/* Get popup view
- * @param popup - Popup instance
- * @return View instance that can be used for embedding
+/** Get popup view
+ *
+ * @param popup Popup instance
+ *
+ * @return View instance that can be used for embedding
*/
View* popup_get_view(Popup* popup);
-/* Set popup header text
- * @param popup - Popup instance
- * @param text - text to be shown
+/** Set popup header text
+ *
+ * @param popup Popup instance
+ * @param callback PopupCallback
*/
void popup_set_callback(Popup* popup, PopupCallback callback);
-/* Set popup context
- * @param popup - Popup instance
- * @param context - context pointer, will be passed to result callback
+/** Set popup context
+ *
+ * @param popup Popup instance
+ * @param context context pointer, will be passed to result callback
*/
void popup_set_context(Popup* popup, void* context);
-/* Set popup header text
+/** Set popup header text
+ *
* If text is null, popup header will not be rendered
- * @param popup - Popup instance
- * @param text - text to be shown, can be multiline
- * @param x, y - text position
- * @param horizontal, vertical - text aligment
+ *
+ * @param popup Popup instance
+ * @param text text to be shown, can be multiline
+ * @param x x position
+ * @param y y position
+ * @param horizontal horizontal alignment
+ * @param vertical vertical aligment
*/
void popup_set_header(
Popup* popup,
@@ -56,12 +74,16 @@ void popup_set_header(
Align horizontal,
Align vertical);
-/* Set popup text
+/** Set popup text
+ *
* If text is null, popup text will not be rendered
- * @param popup - Popup instance
- * @param text - text to be shown, can be multiline
- * @param x, y - text position
- * @param horizontal, vertical - text aligment
+ *
+ * @param popup Popup instance
+ * @param text text to be shown, can be multiline
+ * @param x x position
+ * @param y y position
+ * @param horizontal horizontal alignment
+ * @param vertical vertical aligment
*/
void popup_set_text(
Popup* popup,
@@ -71,30 +93,36 @@ void popup_set_text(
Align horizontal,
Align vertical);
-/* Set popup icon
+/** Set popup icon
+ *
* If icon position is negative, popup icon will not be rendered
- * @param popup - Popup instance
- * @param x, y - icon position
- * @param name - icon to be shown
+ *
+ * @param popup Popup instance
+ * @param x x position
+ * @param y y position
+ * @param icon pointer to Icon data
*/
void popup_set_icon(Popup* popup, uint8_t x, uint8_t y, const Icon* icon);
-/* Set popup timeout
- * @param popup - Popup instance
- * @param timeout_in_ms - popup timeout value in milliseconds
+/** Set popup timeout
+ *
+ * @param popup Popup instance
+ * @param timeout_in_ms popup timeout value in milliseconds
*/
void popup_set_timeout(Popup* popup, uint32_t timeout_in_ms);
-/* Enable popup timeout
- * @param popup - Popup instance
+/** Enable popup timeout
+ *
+ * @param popup Popup instance
*/
void popup_enable_timeout(Popup* popup);
-/* Disable popup timeout
- * @param popup - Popup instance
+/** Disable popup timeout
+ *
+ * @param popup Popup instance
*/
void popup_disable_timeout(Popup* popup);
#ifdef __cplusplus
}
-#endif \ No newline at end of file
+#endif
diff --git a/applications/gui/modules/submenu.h b/applications/gui/modules/submenu.h
index 50a9211e..fac29e15 100644
--- a/applications/gui/modules/submenu.h
+++ b/applications/gui/modules/submenu.h
@@ -1,40 +1,50 @@
+/**
+ * @file submenu.h
+ * GUI: SubMenu view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* Submenu anonymous structure */
+/** Submenu anonymous structure */
typedef struct Submenu Submenu;
typedef void (*SubmenuItemCallback)(void* context, uint32_t index);
-/**
- * @brief Allocate and initialize submenu
+/** Allocate and initialize submenu
+ *
* This submenu is used to select one option
+ *
+ * @return Submenu instance
*/
Submenu* submenu_alloc();
-/**
- * @brief Deinitialize and free submenu
- * @param submenu - Submenu instance
+/** Deinitialize and free submenu
+ *
+ * @param submenu Submenu instance
*/
void submenu_free(Submenu* submenu);
-/**
- * @brief Get submenu view
- * @param submenu - Submenu instance
- * @return View instance that can be used for embedding
+/** Get submenu view
+ *
+ * @param submenu Submenu instance
+ *
+ * @return View instance that can be used for embedding
*/
View* submenu_get_view(Submenu* submenu);
-/**
- * @brief Add item to submenu
- * @param submenu - Submenu instance
- * @param label - menu item label
- * @param index - menu item index, used for callback, may be the same with other items
- * @param callback - menu item callback
- * @param callback_context - menu item callback context
+/** Add item to submenu
+ *
+ * @param submenu Submenu instance
+ * @param label menu item label
+ * @param index menu item index, used for callback, may be
+ * the same with other items
+ * @param callback menu item callback
+ * @param callback_context menu item callback context
*/
void submenu_add_item(
Submenu* submenu,
@@ -43,23 +53,23 @@ void submenu_add_item(
SubmenuItemCallback callback,
void* callback_context);
-/**
- * @brief Remove all items from submenu
- * @param submenu - Submenu instance
+/** Remove all items from submenu
+ *
+ * @param submenu Submenu instance
*/
void submenu_clean(Submenu* submenu);
-/**
- * @brief Set submenu item selector
- * @param submenu
- * @param index
+/** Set submenu item selector
+ *
+ * @param submenu Submenu instance
+ * @param index The index
*/
void submenu_set_selected_item(Submenu* submenu, uint32_t index);
-/**
- * @brief Set optional header for submenu
- * @param submenu - submenu entity
- * @param header - header to set
+/** Set optional header for submenu
+ *
+ * @param submenu Submenu instance
+ * @param header header to set
*/
void submenu_set_header(Submenu* submenu, const char* header);
diff --git a/applications/gui/modules/text_box.h b/applications/gui/modules/text_box.h
index e2bfc34f..9aaa0485 100644
--- a/applications/gui/modules/text_box.h
+++ b/applications/gui/modules/text_box.h
@@ -1,11 +1,17 @@
+/**
+ * @file text_box.h
+ * GUI: TextBox view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* TextBox anonymous structure */
+/** TextBox anonymous structure */
typedef struct TextBox TextBox;
typedef void (*TextBoxExitCallback)(void* context);
@@ -15,46 +21,56 @@ typedef enum {
} TextBoxFont;
/** Allocate and initialize text_box
+ *
+ * @return TextBox instance
*/
TextBox* text_box_alloc();
/** Deinitialize and free text_box
- * @param text_box text_box instance
+ *
+ * @param text_box text_box instance
*/
void text_box_free(TextBox* text_box);
/** Get text_box view
- * @param text_box TextBox instance
- * @return View instance that can be used for embedding
+ *
+ * @param text_box TextBox instance
+ *
+ * @return View instance that can be used for embedding
*/
View* text_box_get_view(TextBox* text_box);
/** Clean text_box
- * @param text_box TextBox instance
+ *
+ * @param text_box TextBox instance
*/
void text_box_clean(TextBox* text_box);
/** Set text for text_box
- * @param text_box TextBox instance
- * @param text text to set
+ *
+ * @param text_box TextBox instance
+ * @param text text to set
*/
void text_box_set_text(TextBox* text_box, const char* text);
/** Set TextBox font
- * @param text_box TextBox instance
- * @param font TextBoxFont instance
+ *
+ * @param text_box TextBox instance
+ * @param font TextBoxFont instance
*/
void text_box_set_font(TextBox* text_box, TextBoxFont font);
/** Set text_box context
- * @param text_box TextBox instance
- * @param context context pointer
+ *
+ * @param text_box TextBox instance
+ * @param context context pointer
*/
void text_box_set_context(TextBox* text_box, void* context);
/** Set exit callback
- * @param text_box TextBox instance
- * @param callback TextBoxExitCallback callback pointer
+ *
+ * @param text_box TextBox instance
+ * @param callback TextBoxExitCallback callback pointer
*/
void text_box_set_exit_callback(TextBox* text_box, TextBoxExitCallback callback);
diff --git a/applications/gui/modules/text_input.h b/applications/gui/modules/text_input.h
index 4ac7cd5a..d7b32def 100644
--- a/applications/gui/modules/text_input.h
+++ b/applications/gui/modules/text_input.h
@@ -1,44 +1,59 @@
+/**
+ * @file text_input.h
+ * GUI: TextInput keybord view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* Text input anonymous structure */
+/** Text input anonymous structure */
typedef struct TextInput TextInput;
typedef void (*TextInputCallback)(void* context);
-/** Allocate and initialize text input
+/** Allocate and initialize text input
+ *
* This text input is used to enter string
- * @return TextInput instance
+ *
+ * @return TextInput instance
*/
TextInput* text_input_alloc();
/** Deinitialize and free text input
- * @param text_input - TextInput instance
+ *
+ * @param text_input TextInput instance
*/
void text_input_free(TextInput* text_input);
-/** Clean text input view
- * Note: this function does not free memory
- * @param text_input - Text input instance
+/** Clean text input view Note: this function does not free memory
+ *
+ * @param text_input Text input instance
*/
void text_input_clean(TextInput* text_input);
/** Get text input view
- * @param text_input - TextInput instance
- * @return View instance that can be used for embedding
+ *
+ * @param text_input TextInput instance
+ *
+ * @return View instance that can be used for embedding
*/
View* text_input_get_view(TextInput* text_input);
/** Set text input result callback
- * @param text_input - TextInput instance
- * @param callback - callback fn
- * @param callback_context - callback context
- * @param text_buffer - pointer to YOUR text buffer, that we going to modify
- * @param text_buffer_size - YOUR text buffer size in bytes. Max string length will be text_buffer_size - 1.
- * @param clear_default_text - clear text from text_buffer on first OK event
+ *
+ * @param text_input TextInput instance
+ * @param callback callback fn
+ * @param callback_context callback context
+ * @param text_buffer pointer to YOUR text buffer, that we going
+ * to modify
+ * @param text_buffer_size YOUR text buffer size in bytes. Max string
+ * length will be text_buffer_size-1.
+ * @param clear_default_text clear text from text_buffer on first OK
+ * event
*/
void text_input_set_result_callback(
TextInput* text_input,
@@ -49,8 +64,9 @@ void text_input_set_result_callback(
bool clear_default_text);
/** Set text input header text
- * @param text_input - TextInput instance
- * @param text - text to be shown
+ *
+ * @param text_input TextInput instance
+ * @param text text to be shown
*/
void text_input_set_header_text(TextInput* text_input, const char* text);
diff --git a/applications/gui/modules/variable-item-list.h b/applications/gui/modules/variable-item-list.h
index a70ded39..e1e3cbf7 100755
--- a/applications/gui/modules/variable-item-list.h
+++ b/applications/gui/modules/variable-item-list.h
@@ -1,4 +1,10 @@
+/**
+ * @file variable-item-list.h
+ * GUI: VariableItemList view module API
+ */
+
#pragma once
+
#include <gui/view.h>
#ifdef __cplusplus
@@ -11,29 +17,40 @@ typedef void (*VariableItemChangeCallback)(VariableItem* item);
typedef void (*VariableItemListEnterCallback)(void* context, uint32_t index);
/** Allocate and initialize VariableItemList
- * @return VariableItemList*
+ *
+ * @return VariableItemList*
*/
VariableItemList* variable_item_list_alloc();
/** Deinitialize and free VariableItemList
- * @param variable_item_list VariableItemList instance
+ *
+ * @param variable_item_list VariableItemList instance
*/
void variable_item_list_free(VariableItemList* variable_item_list);
/** Clear all elements from list
- * @param variable_item_list VariableItemList instance
+ *
+ * @param variable_item_list VariableItemList instance
*/
void variable_item_list_clean(VariableItemList* variable_item_list);
+/** Get VariableItemList View instance
+ *
+ * @param variable_item_list VariableItemList instance
+ *
+ * @return View instance
+ */
View* variable_item_list_get_view(VariableItemList* variable_item_list);
/** Add item to VariableItemList
- * @param variable_item_list VariableItemList instance
- * @param label item name
- * @param values_count item values count
- * @param change_callback called on value change in gui
- * @param context item context
- * @return VariableItem* item instance
+ *
+ * @param variable_item_list VariableItemList instance
+ * @param label item name
+ * @param values_count item values count
+ * @param change_callback called on value change in gui
+ * @param context item context
+ *
+ * @return VariableItem* item instance
*/
VariableItem* variable_item_list_add(
VariableItemList* variable_item_list,
@@ -43,9 +60,10 @@ VariableItem* variable_item_list_add(
void* context);
/** Set enter callback
- * @param variable_item_list VariableItemList instance
- * @param calback VariableItemListEnterCallback instance
- * @param context pointer to context
+ *
+ * @param variable_item_list VariableItemList instance
+ * @param callback VariableItemListEnterCallback instance
+ * @param context pointer to context
*/
void variable_item_list_set_enter_callback(
VariableItemList* variable_item_list,
@@ -53,29 +71,35 @@ void variable_item_list_set_enter_callback(
void* context);
/** Set item current selected index
- * @param item VariableItem* instance
- * @param current_value_index
+ *
+ * @param item VariableItem* instance
+ * @param current_value_index The current value index
*/
void variable_item_set_current_value_index(VariableItem* item, uint8_t current_value_index);
/** Set item current selected text
- * @param item VariableItem* instance
- * @param current_value_text
+ *
+ * @param item VariableItem* instance
+ * @param current_value_text The current value text
*/
void variable_item_set_current_value_text(VariableItem* item, const char* current_value_text);
/** Get item current selected index
- * @param item VariableItem* instance
- * @return uint8_t current selected index
+ *
+ * @param item VariableItem* instance
+ *
+ * @return uint8_t current selected index
*/
uint8_t variable_item_get_current_value_index(VariableItem* item);
/** Get item context
- * @param item VariableItem* instance
- * @return void* item context
+ *
+ * @param item VariableItem* instance
+ *
+ * @return void* item context
*/
void* variable_item_get_context(VariableItem* item);
#ifdef __cplusplus
}
-#endif \ No newline at end of file
+#endif
diff --git a/applications/gui/modules/widget.h b/applications/gui/modules/widget.h
index 9a335bce..09177c57 100755
--- a/applications/gui/modules/widget.h
+++ b/applications/gui/modules/widget.h
@@ -1,38 +1,51 @@
+/**
+ * @file widget.h
+ * GUI: Widget view module API
+ */
+
#pragma once
+
#include "widget_elements/widget_element_i.h"
typedef struct Widget Widget;
typedef struct WidgetElement WidgetElement;
/** Allocate Widget that holds Widget Elements
- * @return Widget instance
+ *
+ * @return Widget instance
*/
Widget* widget_alloc();
/** Free Widget
- * @note this function free allocated Widget Elements
- * @param widget Widget instance
+ * @note this function free allocated Widget Elements
+ *
+ * @param widget Widget instance
*/
void widget_free(Widget* widget);
/** Clear Widget
- * @param widget Widget instance
+ *
+ * @param widget Widget instance
*/
void widget_clear(Widget* widget);
/** Get Widget view
- * @param widget Widget instance
- * @return View instance
+ *
+ * @param widget Widget instance
+ *
+ * @return View instance
*/
View* widget_get_view(Widget* widget);
/** Add Multi String Element
- * @param widget Widget instance
- * @param x - x coordinate
- * @param y - y coordinate
- * @param horizontal - Align instance
- * @param vertical - Align instance
- * @param font Font instance
+ *
+ * @param widget Widget instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param horizontal Align instance
+ * @param vertical Align instance
+ * @param font Font instance
+ * @param[in] text The text
*/
void widget_add_string_multiline_element(
Widget* widget,
@@ -44,12 +57,14 @@ void widget_add_string_multiline_element(
const char* text);
/** Add String Element
- * @param widget Widget instance
- * @param x - x coordinate
- * @param y - y coordinate
- * @param horizontal - Align instance
- * @param vertical - Align instance
- * @param font Font instance
+ *
+ * @param widget Widget instance
+ * @param x x coordinate
+ * @param y y coordinate
+ * @param horizontal Align instance
+ * @param vertical Align instance
+ * @param font Font instance
+ * @param[in] text The text
*/
void widget_add_string_element(
Widget* widget,
@@ -61,11 +76,12 @@ void widget_add_string_element(
const char* text);
/** Add Button Element
- * @param widget Widget instance
- * @param button_type GuiButtonType instance
- * @param text text on allocated button
- * @param callback ButtonCallback instance
- * @param context pointer to context
+ *
+ * @param widget Widget instance
+ * @param button_type GuiButtonType instance
+ * @param text text on allocated button
+ * @param callback ButtonCallback instance
+ * @param context pointer to context
*/
void widget_add_button_element(
Widget* widget,
@@ -75,20 +91,22 @@ void widget_add_button_element(
void* context);
/** Add Icon Element
- * @param widget Widget instance
- * @param x top left x coordinate
- * @param y top left y coordinate
- * @param icon Icon instance
+ *
+ * @param widget Widget instance
+ * @param x top left x coordinate
+ * @param y top left y coordinate
+ * @param icon Icon instance
*/
void widget_add_icon_element(Widget* widget, uint8_t x, uint8_t y, const Icon* icon);
/** Add Frame Element
- * @param widget Widget instance
- * @param x top left x coordinate
- * @param y top left y coordinate
- * @param width frame width
- * @param height frame height
- * @param radius frame radius
+ *
+ * @param widget Widget instance
+ * @param x top left x coordinate
+ * @param y top left y coordinate
+ * @param width frame width
+ * @param height frame height
+ * @param radius frame radius
*/
void widget_add_frame_element(
Widget* widget,
diff --git a/applications/gui/modules/widget_elements/widget_element_i.h b/applications/gui/modules/widget_elements/widget_element_i.h
index 2930eb1c..bbc58ff9 100755
--- a/applications/gui/modules/widget_elements/widget_element_i.h
+++ b/applications/gui/modules/widget_elements/widget_element_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file widget_element_i.h
+ * GUI: internal Widget Element API
+ */
+
#pragma once
#include <furi.h>
#include <gui/view.h>
@@ -29,7 +34,7 @@ struct WidgetElement {
Widget* parent;
};
-/* Create multi string element */
+/** Create multi string element */
WidgetElement* widget_element_string_multiline_create(
uint8_t x,
uint8_t y,
@@ -38,7 +43,7 @@ WidgetElement* widget_element_string_multiline_create(
Font font,
const char* text);
-/* Create string element */
+/** Create string element */
WidgetElement* widget_element_string_create(
uint8_t x,
uint8_t y,
@@ -47,20 +52,20 @@ WidgetElement* widget_element_string_create(
Font font,
const char* text);
-/* Create button element */
+/** Create button element */
WidgetElement* widget_element_button_create(
GuiButtonType button_type,
const char* text,
ButtonCallback callback,
void* context);
-/* Create icon element */
+/** Create icon element */
WidgetElement* widget_element_icon_create(uint8_t x, uint8_t y, const Icon* icon);
-/* Create frame element */
+/** Create frame element */
WidgetElement* widget_element_frame_create(
uint8_t x,
uint8_t y,
uint8_t width,
uint8_t height,
- uint8_t radius); \ No newline at end of file
+ uint8_t radius);
diff --git a/applications/gui/scene_manager.h b/applications/gui/scene_manager.h
index 0318b1cd..53f8d775 100755
--- a/applications/gui/scene_manager.h
+++ b/applications/gui/scene_manager.h
@@ -1,14 +1,18 @@
+/**
+ * @file scene_manager.h
+ * GUI: SceneManager API
+ */
+
#pragma once
+#include <stdint.h>
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <stdint.h>
-#include <stdbool.h>
-
-/** Scene Manager events type
- */
+/** Scene Manager events type */
typedef enum {
SceneManagerEventTypeCustom,
SceneManagerEventTypeBack,
@@ -44,86 +48,110 @@ typedef struct {
typedef struct SceneManager SceneManager;
/** Set Scene state
- * @param scene_manager SceneManager instance
- * @param scene_id Scene ID
- * @param state Scene new state
+ *
+ * @param scene_manager SceneManager instance
+ * @param scene_id Scene ID
+ * @param state Scene new state
*/
void scene_manager_set_scene_state(SceneManager* scene_manager, uint32_t scene_id, uint32_t state);
/** Get Scene state
- * @param scene_manager SceneManager instance
- * @param scene_id Scene ID
- * @return Scene state
+ *
+ * @param scene_manager SceneManager instance
+ * @param scene_id Scene ID
+ *
+ * @return Scene state
*/
uint32_t scene_manager_get_scene_state(SceneManager* scene_manager, uint32_t scene_id);
/** Scene Manager allocation and configuration
+ *
* Scene Manager allocates all scenes internally
- * @param app_scene_handlers SceneManagerHandlers instance
- * @param context context to be set on Scene handlers calls
- * @return SceneManager instance
+ *
+ * @param app_scene_handlers SceneManagerHandlers instance
+ * @param context context to be set on Scene handlers calls
+ *
+ * @return SceneManager instance
*/
SceneManager* scene_manager_alloc(const SceneManagerHandlers* app_scene_handlers, void* context);
/** Free Scene Manager with allocated Scenes
- * @param scene_manager SceneManager instance
+ *
+ * @param scene_manager SceneManager instance
*/
void scene_manager_free(SceneManager* scene_manager);
/** Custom event handler
+ *
* Calls Scene event handler with Custom event parameter
- * @param scene_manager SceneManager instance
- * @param custom_event Custom event code
- * @return true if event was consumed, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ * @param custom_event Custom event code
+ *
+ * @return true if event was consumed, false otherwise
*/
bool scene_manager_handle_custom_event(SceneManager* scene_manager, uint32_t custom_event);
/** Back event handler
+ *
* Calls Scene event handler with Back event parameter
- * @param scene_manager SceneManager instance
- * @return true if event was consumed, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ *
+ * @return true if event was consumed, false otherwise
*/
bool scene_manager_handle_back_event(SceneManager* scene_manager);
/** Tick event handler
+ *
* Calls Scene event handler with Tick event parameter
- * @param scene_manager SceneManager instance
- * @return true if event was consumed, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ * @return true if event was consumed, false otherwise
*/
void scene_manager_handle_tick_event(SceneManager* scene_manager);
/** Add and run next Scene
- * @param scene_manager SceneManager instance
- * @param next_scene_id next Scene ID
+ *
+ * @param scene_manager SceneManager instance
+ * @param next_scene_id next Scene ID
*/
void scene_manager_next_scene(SceneManager* scene_manager, uint32_t next_scene_id);
/** Run previous Scene
- * @param scene_manager SceneManager instance
- * @return true if previous scene was found, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ *
+ * @return true if previous scene was found, false otherwise
*/
bool scene_manager_previous_scene(SceneManager* scene_manager);
/** Search previous Scene
- * @param scene_manager SceneManager instance
- * @param scene_id Scene ID
- * @return true if previous scene was found, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ * @param scene_id Scene ID
+ *
+ * @return true if previous scene was found, false otherwise
*/
bool scene_manager_has_previous_scene(SceneManager* scene_manager, uint32_t scene_id);
/** Search and switch to previous Scene
- * @param scene_manager SceneManager instance
- * @param scene_id Scene ID
- * @return true if previous scene was found, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ * @param scene_id Scene ID
+ *
+ * @return true if previous scene was found, false otherwise
*/
bool scene_manager_search_and_switch_to_previous_scene(
SceneManager* scene_manager,
uint32_t scene_id);
/** Clear Scene stack and switch to another Scene
- * @param scene_manager SceneManager instance
- * @param scene_id Scene ID
- * @return true if previous scene was found, false otherwise
+ *
+ * @param scene_manager SceneManager instance
+ * @param scene_id Scene ID
+ *
+ * @return true if previous scene was found, false otherwise
*/
bool scene_manager_search_and_switch_to_another_scene(
SceneManager* scene_manager,
diff --git a/applications/gui/scene_manager_i.h b/applications/gui/scene_manager_i.h
index bb05d547..fca798d1 100755
--- a/applications/gui/scene_manager_i.h
+++ b/applications/gui/scene_manager_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file scene_manager_i.h
+ * GUI: internal SceneManager API
+ */
+
#pragma once
#include "scene_manager.h"
diff --git a/applications/gui/view.h b/applications/gui/view.h
index 33fdd187..5b4bf360 100644
--- a/applications/gui/view.h
+++ b/applications/gui/view.h
@@ -1,3 +1,8 @@
+/**
+ * @file view.h
+ * GUI: View API
+ */
+
#pragma once
#include <input/input.h>
@@ -27,57 +32,57 @@ typedef enum {
typedef struct View View;
/** View Draw callback
- * @param canvas, pointer to canvas
- * @param view_model, pointer to context
- * @warning called from GUI thread
+ * @param canvas, pointer to canvas
+ * @param view_model, pointer to context
+ * @warning called from GUI thread
*/
typedef void (*ViewDrawCallback)(Canvas* canvas, void* model);
/** View Input callback
- * @param event, pointer to input event data
- * @param context, pointer to context
- * @return true if event handled, false if event ignored
- * @warning called from GUI thread
+ * @param event, pointer to input event data
+ * @param context, pointer to context
+ * @return true if event handled, false if event ignored
+ * @warning called from GUI thread
*/
typedef bool (*ViewInputCallback)(InputEvent* event, void* context);
/** View Custom callback
- * @param event, number of custom event
- * @param context, pointer to context
- * @return true if event handled, false if event ignored
+ * @param event, number of custom event
+ * @param context, pointer to context
+ * @return true if event handled, false if event ignored
*/
typedef bool (*ViewCustomCallback)(uint32_t event, void* context);
/** View navigation callback
- * @param context, pointer to context
- * @return next view id
- * @warning called from GUI thread
+ * @param context, pointer to context
+ * @return next view id
+ * @warning called from GUI thread
*/
typedef uint32_t (*ViewNavigationCallback)(void* context);
/** View callback
- * @param context, pointer to context
- * @warning called from GUI thread
+ * @param context, pointer to context
+ * @warning called from GUI thread
*/
typedef void (*ViewCallback)(void* context);
-/** View Update Callback
- * Called upon model change, need to be propagated to GUI throw ViewPort update
- * @param view, pointer to view
- * @param context, pointer to context
- * @warning called from GUI thread
+/** View Update Callback Called upon model change, need to be propagated to GUI
+ * throw ViewPort update
+ * @param view, pointer to view
+ * @param context, pointer to context
+ * @warning called from GUI thread
*/
typedef void (*ViewUpdateCallback)(View* view, void* context);
/** View model types */
typedef enum {
- /* Model is not allocated */
+ /** Model is not allocated */
ViewModelTypeNone,
- /* Model consist of atomic types and/or partial update is not critical for rendering.
+ /** Model consist of atomic types and/or partial update is not critical for rendering.
* Lock free.
*/
ViewModelTypeLockFree,
- /* Model access is guarded with mutex.
+ /** Model access is guarded with mutex.
* Locking gui thread.
*/
ViewModelTypeLocking,
@@ -89,98 +94,115 @@ typedef enum {
View* view_alloc();
/** Free View
- * @param View instance
+ *
+ * @param view instance
*/
void view_free(View* view);
/** Tie IconAnimation with View
- * @param view, View instance
- * @param icon_animation, IconAnimation instance
+ *
+ * @param view View instance
+ * @param icon_animation IconAnimation instance
*/
void view_tie_icon_animation(View* view, IconAnimation* icon_animation);
/** Set View Draw callback
- * @param view, View instance
- * @param callback, draw callback
+ *
+ * @param view View instance
+ * @param callback draw callback
*/
void view_set_draw_callback(View* view, ViewDrawCallback callback);
/** Set View Input callback
- * @param view, View instance
- * @param callback, input callback
+ *
+ * @param view View instance
+ * @param callback input callback
*/
void view_set_input_callback(View* view, ViewInputCallback callback);
/** Set View Custom callback
- * @param view, View instance
- * @param callback, input callback
+ *
+ * @param view View instance
+ * @param callback input callback
*/
void view_set_custom_callback(View* view, ViewCustomCallback callback);
/** Set Navigation Previous callback
- * @param view, View instance
- * @param callback, input callback
+ *
+ * @param view View instance
+ * @param callback input callback
*/
void view_set_previous_callback(View* view, ViewNavigationCallback callback);
/** Set Enter callback
- * @param view, View instance
- * @param callback, callback
+ *
+ * @param view View instance
+ * @param callback callback
*/
void view_set_enter_callback(View* view, ViewCallback callback);
/** Set Exit callback
- * @param view, View instance
- * @param callback, callback
+ *
+ * @param view View instance
+ * @param callback callback
*/
void view_set_exit_callback(View* view, ViewCallback callback);
/** Set Update callback
- * @param view, View instance
- * @param callback, callback
+ *
+ * @param view View instance
+ * @param callback callback
*/
void view_set_update_callback(View* view, ViewUpdateCallback callback);
/** Set View Draw callback
- * @param view, View instance
- * @param context, context for callbacks
+ *
+ * @param view View instance
+ * @param context context for callbacks
*/
void view_set_update_callback_context(View* view, void* context);
/** Set View Draw callback
- * @param view, View instance
- * @param context, context for callbacks
+ *
+ * @param view View instance
+ * @param context context for callbacks
*/
void view_set_context(View* view, void* context);
/** Set View Orientation
- * @param view, View instance
- * @param orientation, either vertical or horizontal
+ *
+ * @param view View instance
+ * @param orientation either vertical or horizontal
*/
void view_set_orientation(View* view, ViewOrientation orientation);
/** Allocate view model.
- * @param view, View instance
- * @param type, View Model Type
- * @param size, size
+ *
+ * @param view View instance
+ * @param type View Model Type
+ * @param size size
*/
void view_allocate_model(View* view, ViewModelType type, size_t size);
/** Free view model data memory.
- * @param view, View instance
+ *
+ * @param view View instance
*/
void view_free_model(View* view);
/** Get view model data
- * @param view, View instance
- * @return pointer to model data
- * @warning Don't forget to commit model changes
+ *
+ * @param view View instance
+ *
+ * @return pointer to model data
+ * @warning Don't forget to commit model changes
*/
void* view_get_model(View* view);
/** Commit view model
- * @param view, View instance
- * @param update, true if you want to emit view update, false otherwise
+ *
+ * @param view View instance
+ * @param update true if you want to emit view update, false otherwise
*/
void view_commit_model(View* view, bool update);
@@ -196,11 +218,13 @@ void view_commit_model(View* view, bool update);
view_commit_model(view, update); \
}
#else
-/**
- * With clause for view model
- * @param view, View instance pointer
- * @param function_body a (){} lambda declaration, executed within you parent function context
- * @return true if you want to emit view update, false otherwise
+/** With clause for view model
+ *
+ * @param view View instance pointer
+ * @param function_body a (){} lambda declaration, executed within you
+ * parent function context
+ *
+ * @return true if you want to emit view update, false otherwise
*/
#define with_view_model(view, function_body) \
{ \
diff --git a/applications/gui/view_dispatcher.h b/applications/gui/view_dispatcher.h
index 895c9b78..7b22cfc9 100755
--- a/applications/gui/view_dispatcher.h
+++ b/applications/gui/view_dispatcher.h
@@ -1,3 +1,8 @@
+/**
+ * @file view_dispatcher.h
+ * GUI: ViewDispatcher API
+ */
+
#pragma once
#include "view.h"
@@ -8,8 +13,7 @@
extern "C" {
#endif
-/** ViewDispatcher view_port placement
- */
+/** ViewDispatcher view_port placement */
typedef enum {
ViewDispatcherTypeNone, /**< Special layer for internal use only */
ViewDispatcherTypeWindow, /**< Main view_port layer, status bar is shown */
@@ -18,61 +22,70 @@ typedef enum {
typedef struct ViewDispatcher ViewDispatcher;
-/** Prototype for custom event callback
- */
+/** Prototype for custom event callback */
typedef bool (*ViewDispatcherCustomEventCallback)(void* context, uint32_t event);
-/** Prototype for navigation event callback
- */
+/** Prototype for navigation event callback */
typedef bool (*ViewDispatcherNavigationEventCallback)(void* context);
-/** Prototype for tick event callback
- */
+/** Prototype for tick event callback */
typedef void (*ViewDispatcherTickEventCallback)(void* context);
/** Allocate ViewDispatcher instance
- * @return pointer to ViewDispatcher instance
+ *
+ * @return pointer to ViewDispatcher instance
*/
ViewDispatcher* view_dispatcher_alloc();
/** Free ViewDispatcher instance
- * @param view_dispatcher pointer to ViewDispatcher
+ *
+ * @param view_dispatcher pointer to ViewDispatcher
*/
void view_dispatcher_free(ViewDispatcher* view_dispatcher);
/** Enable queue support
- * If queue enabled all input and custom events will be dispatched throw internal queue
- * @param view_dispatcher ViewDispatcher instance
+ *
+ * If queue enabled all input and custom events will be dispatched throw
+ * internal queue
+ *
+ * @param view_dispatcher ViewDispatcher instance
*/
void view_dispatcher_enable_queue(ViewDispatcher* view_dispatcher);
/** Send custom event
- * @param view_dispatcher ViewDispatcher instance
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param[in] event The event
*/
void view_dispatcher_send_custom_event(ViewDispatcher* view_dispatcher, uint32_t event);
/** Set custom event handler
+ *
* Called on Custom Event, if it is not consumed by view
- * @param view_dispatcher ViewDispatcher instance
- * @param callback ViewDispatcherCustomEventCallback instance
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param callback ViewDispatcherCustomEventCallback instance
*/
void view_dispatcher_set_custom_event_callback(
ViewDispatcher* view_dispatcher,
ViewDispatcherCustomEventCallback callback);
/** Set navigation event handler
+ *
* Called on Input Short Back Event, if it is not consumed by view
- * @param view_dispatcher ViewDispatcher instance
- * @param callback ViewDispatcherNavigationEventCallback instance
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param callback ViewDispatcherNavigationEventCallback instance
*/
void view_dispatcher_set_navigation_event_callback(
ViewDispatcher* view_dispatcher,
ViewDispatcherNavigationEventCallback callback);
/** Set tick event handler
- * @param view_dispatcher ViewDispatcher instance
- * @param callback ViewDispatcherTickEventCallback
- * @param tick_period callback call period
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param callback ViewDispatcherTickEventCallback
+ * @param tick_period callback call period
*/
void view_dispatcher_set_tick_event_callback(
ViewDispatcher* view_dispatcher,
@@ -80,46 +93,57 @@ void view_dispatcher_set_tick_event_callback(
uint32_t tick_period);
/** Set event callback context
- * @param view_dispatcher ViewDispatcher instance
- * @param context pointer to context
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param context pointer to context
*/
void view_dispatcher_set_event_callback_context(ViewDispatcher* view_dispatcher, void* context);
/** Run ViewDispatcher
+ *
* Use only after queue enabled
- * @param view_dispatcher ViewDispatcher instance
+ *
+ * @param view_dispatcher ViewDispatcher instance
*/
void view_dispatcher_run(ViewDispatcher* view_dispatcher);
/** Stop ViewDispatcher
+ *
* Use only after queue enabled
- * @param view_dispatcher ViewDispatcher instance
+ *
+ * @param view_dispatcher ViewDispatcher instance
*/
void view_dispatcher_stop(ViewDispatcher* view_dispatcher);
/** Add view to ViewDispatcher
- * @param view_dispatcher, ViewDispatcher instance
- * @param view_id View id to register
- * @param view View instance
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param view_id View id to register
+ * @param view View instance
*/
void view_dispatcher_add_view(ViewDispatcher* view_dispatcher, uint32_t view_id, View* view);
/** Remove view from ViewDispatcher
- * @param view_dispatcher ViewDispatcher instance
- * @param view_id View id to remove
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param view_id View id to remove
*/
void view_dispatcher_remove_view(ViewDispatcher* view_dispatcher, uint32_t view_id);
/** Switch to View
- * @param view_dispatcher ViewDispatcher instance
- * @param view_id View id to register
- * @warning switching may be delayed till input events complementarity reached
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param view_id View id to register
+ * @warning switching may be delayed till input events complementarity
+ * reached
*/
void view_dispatcher_switch_to_view(ViewDispatcher* view_dispatcher, uint32_t view_id);
/** Attach ViewDispatcher to GUI
- * @param view_dispatcher ViewDispatcher instance
- * @param gui GUI instance to attach to
+ *
+ * @param view_dispatcher ViewDispatcher instance
+ * @param gui GUI instance to attach to
+ * @param[in] type The type
*/
void view_dispatcher_attach_to_gui(
ViewDispatcher* view_dispatcher,
diff --git a/applications/gui/view_dispatcher_i.h b/applications/gui/view_dispatcher_i.h
index 60c9aa47..ad0f0888 100644
--- a/applications/gui/view_dispatcher_i.h
+++ b/applications/gui/view_dispatcher_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file view_dispatcher_i.h
+ * GUI: ViewDispatcher API
+ */
+
#pragma once
#include <furi.h>
@@ -41,23 +46,23 @@ typedef struct {
};
} ViewDispatcherMessage;
-/* ViewPort Draw Callback */
+/** ViewPort Draw Callback */
void view_dispatcher_draw_callback(Canvas* canvas, void* context);
-/* ViewPort Input Callback */
+/** ViewPort Input Callback */
void view_dispatcher_input_callback(InputEvent* event, void* context);
-/* Input handler */
+/** Input handler */
void view_dispatcher_handle_input(ViewDispatcher* view_dispatcher, InputEvent* event);
-/* Tick handler */
+/** Tick handler */
void view_dispatcher_handle_tick_event(ViewDispatcher* view_dispatcher);
-/* Custom event handler */
+/** Custom event handler */
void view_dispatcher_handle_custom_event(ViewDispatcher* view_dispatcher, uint32_t event);
-/* Set current view, dispatches view enter and exit */
+/** Set current view, dispatches view enter and exit */
void view_dispatcher_set_current_view(ViewDispatcher* view_dispatcher, View* view);
-/* ViewDispatcher update event */
+/** ViewDispatcher update event */
void view_dispatcher_update(View* view, void* context);
diff --git a/applications/gui/view_i.h b/applications/gui/view_i.h
index 2d2d779f..21b374d5 100644
--- a/applications/gui/view_i.h
+++ b/applications/gui/view_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file view_i.h
+ * GUI: internal View API
+ */
+
#pragma once
#include "view.h"
@@ -26,26 +31,26 @@ struct View {
void* context;
};
-/* IconAnimation tie callback */
+/** IconAnimation tie callback */
void view_icon_animation_callback(IconAnimation* instance, void* context);
-/* Unlock model */
+/** Unlock model */
void view_unlock_model(View* view);
-/* Draw Callback for View dispatcher */
+/** Draw Callback for View dispatcher */
void view_draw(View* view, Canvas* canvas);
-/* Input Callback for View dispatcher */
+/** Input Callback for View dispatcher */
bool view_input(View* view, InputEvent* event);
-/* Custom Callback for View dispatcher */
+/** Custom Callback for View dispatcher */
bool view_custom(View* view, uint32_t event);
-/* Previous Callback for View dispatcher */
+/** Previous Callback for View dispatcher */
uint32_t view_previous(View* view);
-/* Enter Callback for View dispatcher */
+/** Enter Callback for View dispatcher */
void view_enter(View* view);
-/* Exit Callback for View dispatcher */
+/** Exit Callback for View dispatcher */
void view_exit(View* view);
diff --git a/applications/gui/view_port.h b/applications/gui/view_port.h
index 24c13339..96f2798e 100644
--- a/applications/gui/view_port.h
+++ b/applications/gui/view_port.h
@@ -1,3 +1,8 @@
+/**
+ * @file view_port.h
+ * GUI: ViewPort API
+ */
+
#pragma once
#include <input/input.h>
@@ -15,50 +20,65 @@ typedef enum {
} ViewPortOrientation;
/** ViewPort Draw callback
- * @warning called from GUI thread
+ * @warning called from GUI thread
*/
typedef void (*ViewPortDrawCallback)(Canvas* canvas, void* context);
/** ViewPort Input callback
- * @warning called from GUI thread
+ * @warning called from GUI thread
*/
typedef void (*ViewPortInputCallback)(InputEvent* event, void* context);
/** ViewPort allocator
+ *
* always returns view_port or stops system if not enough memory.
+ *
+ * @return ViewPort instance
*/
ViewPort* view_port_alloc();
/** ViewPort deallocator
+ *
* Ensure that view_port was unregistered in GUI system before use.
+ *
+ * @param view_port ViewPort instance
*/
void view_port_free(ViewPort* view_port);
/** Set view_port width.
+ *
* Will be used to limit canvas drawing area and autolayout feature.
- * @param width - wanted width, 0 - auto.
+ *
+ * @param view_port ViewPort instance
+ * @param width wanted width, 0 - auto.
*/
void view_port_set_width(ViewPort* view_port, uint8_t width);
uint8_t view_port_get_width(ViewPort* view_port);
/** Set view_port height.
+ *
* Will be used to limit canvas drawing area and autolayout feature.
- * @param height - wanted height, 0 - auto.
+ *
+ * @param view_port ViewPort instance
+ * @param height wanted height, 0 - auto.
*/
void view_port_set_height(ViewPort* view_port, uint8_t height);
uint8_t view_port_get_height(ViewPort* view_port);
/** Enable or disable view_port rendering.
- * @param view_port - ViewPort instance
- * @param enabled
- * @warning automatically dispatches update event
+ *
+ * @param view_port ViewPort instance
+ * @param enabled Indicates if enabled
+ * @warning automatically dispatches update event
*/
void view_port_enabled_set(ViewPort* view_port, bool enabled);
bool view_port_is_enabled(ViewPort* view_port);
/** ViewPort event callbacks
- * @param callback - appropriate callback function
- * @param context - context to pass to callback
+ *
+ * @param view_port ViewPort instance
+ * @param callback appropriate callback function
+ * @param context context to pass to callback
*/
void view_port_draw_callback_set(ViewPort* view_port, ViewPortDrawCallback callback, void* context);
void view_port_input_callback_set(
@@ -67,12 +87,17 @@ void view_port_input_callback_set(
void* context);
/** Emit update signal to GUI system.
+ *
* Rendering will happen later after GUI system process signal.
+ *
+ * @param view_port ViewPort instance
*/
void view_port_update(ViewPort* view_port);
/** Set ViewPort orientation.
- * @param orientation, display orientation, horizontal or vertical.
+ *
+ * @param view_port ViewPort instance
+ * @param orientation display orientation, horizontal or vertical.
*/
void view_port_set_orientation(ViewPort* view_port, ViewPortOrientation orientation);
ViewPortOrientation view_port_get_orientation(const ViewPort* view_port);
diff --git a/applications/gui/view_port_i.h b/applications/gui/view_port_i.h
index 55a9aa00..90f48ac9 100644
--- a/applications/gui/view_port_i.h
+++ b/applications/gui/view_port_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file view_port_i.h
+ * GUI: internal ViewPort API
+ */
+
#pragma once
#include "gui_i.h"
@@ -18,23 +23,29 @@ struct ViewPort {
void* input_callback_context;
};
-/*
- * Set GUI reference.
+/** Set GUI reference.
+ *
* To be used by GUI, called upon view_port tree insert
- * @param gui - gui instance pointer.
+ *
+ * @param view_port ViewPort instance
+ * @param gui gui instance pointer
*/
void view_port_gui_set(ViewPort* view_port, Gui* gui);
-/*
- * Process draw call. Calls draw callback.
+/** Process draw call. Calls draw callback.
+ *
* To be used by GUI, called on tree redraw.
- * @param canvas - canvas to draw at.
+ *
+ * @param view_port ViewPort instance
+ * @param canvas canvas to draw at
*/
void view_port_draw(ViewPort* view_port, Canvas* canvas);
-/*
- * Process input. Calls input callbac
+/** Process input. Calls input callback.
+ *
* To be used by GUI, called on input dispatch.
- * @param event - pointer to input event.
+ *
+ * @param view_port ViewPort instance
+ * @param event pointer to input event
*/
void view_port_input(ViewPort* view_port, InputEvent* event);
diff --git a/applications/input/input.h b/applications/input/input.h
index fd6da95d..d848b1c6 100644
--- a/applications/input/input.h
+++ b/applications/input/input.h
@@ -1,19 +1,24 @@
+/**
+ * @file input.h
+ * Input: main API
+ */
+
#pragma once
#include <furi-hal-resources.h>
-/* Input Types
+/** Input Types
* Some of them are physical events and some logical
*/
typedef enum {
- InputTypePress, /* Press event, emitted after debounce */
- InputTypeRelease, /* Release event, emitted after debounce */
- InputTypeShort, /* Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
- InputTypeLong, /* Long event, emmited after INPUT_LONG_PRESS interval, asynchronouse to InputTypeRelease */
- InputTypeRepeat, /* Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
+ InputTypePress, /**< Press event, emitted after debounce */
+ InputTypeRelease, /**< Release event, emitted after debounce */
+ InputTypeShort, /**< Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
+ InputTypeLong, /**< Long event, emmited after INPUT_LONG_PRESS interval, asynchronouse to InputTypeRelease */
+ InputTypeRepeat, /**< Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
} InputType;
-/* Input Event, dispatches with PubSub */
+/** Input Event, dispatches with PubSub */
typedef struct {
uint32_t sequence;
InputKey key;
diff --git a/applications/input/input_i.h b/applications/input/input_i.h
index d0cdfa76..db314dad 100644
--- a/applications/input/input_i.h
+++ b/applications/input/input_i.h
@@ -1,3 +1,8 @@
+/**
+ * @file input_i.h
+ * Input: internal API
+ */
+
#pragma once
#include "input.h"
@@ -16,7 +21,7 @@
#define INPUT_LONG_PRESS_COUNTS 2
#define INPUT_THREAD_FLAG_ISR 0x00000001
-/* Input pin state */
+/** Input pin state */
typedef struct {
const InputPin* pin;
// State
@@ -27,7 +32,7 @@ typedef struct {
volatile uint32_t counter;
} InputPinState;
-/* Input state */
+/** Input state */
typedef struct {
osThreadId_t thread;
PubSub event_pubsub;
@@ -36,8 +41,8 @@ typedef struct {
volatile uint32_t counter;
} Input;
-/* Input press timer callback */
+/** Input press timer callback */
void input_press_timer_callback(void* arg);
-/* Input interrupt handler */
+/** Input interrupt handler */
void input_isr(void* _ctx);
diff --git a/core/furi-hal/api-interrupt-mgr.h b/core/furi-hal/api-interrupt-mgr.h
index 81245cb9..0a9c9d8c 100644
--- a/core/furi-hal/api-interrupt-mgr.h
+++ b/core/furi-hal/api-interrupt-mgr.h
@@ -1,3 +1,8 @@
+/**
+ * @file api-interrupt-mgr.h
+ * Furi: interrupt API
+ */
+
#pragma once
#include <stdbool.h>
@@ -23,45 +28,45 @@ typedef struct {
bool ready;
} InterruptCallbackItem;
-/**
- * Init interrupt
- * @return true on succsessful initialization, false otherwise
+/** Init interrupt
+ *
+ * @return true on succsessful initialization, false otherwise
*/
bool api_interrupt_init();
-/**
- * Add interrupt
- * @param callback InterruptCallback
- * @param type InterruptType
- * @param context context for callback
+/** Add interrupt
+ *
+ * @param callback InterruptCallback
+ * @param type InterruptType
+ * @param context context for callback
*/
void api_interrupt_add(InterruptCallback callback, InterruptType type, void* context);
-/**
- * Remove interrupt
- * @param callback InterruptCallback
- * @param type InterruptType
+/** Remove interrupt
+ *
+ * @param callback InterruptCallback
+ * @param type InterruptType
*/
void api_interrupt_remove(InterruptCallback callback, InterruptType type);
-/**
- * Enable interrupt
- * @param callback InterruptCallback
- * @param type InterruptType
+/** Enable interrupt
+ *
+ * @param callback InterruptCallback
+ * @param type InterruptType
*/
void api_interrupt_enable(InterruptCallback callback, InterruptType type);
-/**
- * Disable interrupt
- * @param callback InterruptCallback
- * @param type InterruptType
+/** Disable interrupt
+ *
+ * @param callback InterruptCallback
+ * @param type InterruptType
*/
void api_interrupt_disable(InterruptCallback callback, InterruptType type);
-/**
- * Call interrupt
- * @param type InterruptType
- * @param hw pointer to hardware peripheral
+/** Call interrupt
+ *
+ * @param type InterruptType
+ * @param hw pointer to hardware peripheral
*/
void api_interrupt_call(InterruptType type, void* hw);
diff --git a/core/furi/memmgr.c b/core/furi/memmgr.c
index a79cc502..12146247 100644
--- a/core/furi/memmgr.c
+++ b/core/furi/memmgr.c
@@ -68,6 +68,12 @@ size_t memmgr_get_minimum_free_heap(void) {
return xPortGetMinimumEverFreeHeapSize();
}
+void* furi_alloc(size_t size) {
+ void* p = malloc(size);
+ furi_check(p);
+ return memset(p, 0, size);
+}
+
void* __wrap__malloc_r(struct _reent* r, size_t size) {
void* pointer = malloc(size);
return pointer;
diff --git a/core/furi/memmgr.h b/core/furi/memmgr.h
index 98e7c1d8..7c8a3fe9 100644
--- a/core/furi/memmgr.h
+++ b/core/furi/memmgr.h
@@ -1,3 +1,8 @@
+/**
+ * @file memmgr.h
+ * Furi: memory managment API and glue
+ */
+
#pragma once
#include <stddef.h>
@@ -12,14 +17,27 @@ extern "C" {
// define for test case "link against furi memmgr"
#define FURI_MEMMGR_GUARD 1
+/** Get free heap size
+ *
+ * @return free heap size in bytes
+ */
size_t memmgr_get_free_heap(void);
+
+/** Get heap watermark
+ *
+ * @return minimum heap in bytes
+ */
size_t memmgr_get_minimum_free_heap(void);
-inline static void* furi_alloc(size_t size) {
- void* p = malloc(size);
- furi_check(p);
- return memset(p, 0, size);
-}
+/** Allocate memory from heap
+ *
+ * @note performs memset with 0, will crash system if not enough memory
+ *
+ * @param[in] size bytes to allocate
+ *
+ * @return pointer to allocated memory
+ */
+void* furi_alloc(size_t size);
#ifdef __cplusplus
}
diff --git a/core/furi/memmgr_heap.h b/core/furi/memmgr_heap.h
index cbb8fa89..04dced06 100644
--- a/core/furi/memmgr_heap.h
+++ b/core/furi/memmgr_heap.h
@@ -1,3 +1,8 @@
+/**
+ * @file memmgr_heap.h
+ * Furi: heap memory managment API and allocator
+ */
+
#pragma once
#include <stdint.h>
@@ -10,28 +15,32 @@ extern "C" {
#define MEMMGR_HEAP_UNKNOWN 0xFFFFFFFF
/** Memmgr heap enable thread allocation tracking
- * @param thread_id - thread id to track
+ *
+ * @param thread_id - thread id to track
*/
void memmgr_heap_enable_thread_trace(osThreadId_t thread_id);
/** Memmgr heap disable thread allocation tracking
- * @param thread_id - thread id to track
+ *
+ * @param thread_id - thread id to track
*/
void memmgr_heap_disable_thread_trace(osThreadId_t thread_id);
/** Memmgr heap get allocatred thread memory
- * @param thread_id - thread id to track
- * @return bytes allocated right now
+ *
+ * @param thread_id - thread id to track
+ *
+ * @return bytes allocated right now
*/
size_t memmgr_heap_get_thread_memory(osThreadId_t thread_id);
/** Memmgr heap get the max contiguous block size on the heap
- * @return size_t max contiguous block size
+ *
+ * @return size_t max contiguous block size
*/
size_t memmgr_heap_get_max_free_block();
-/**
- * Print the address and size of all free blocks to stdout
+/** Print the address and size of all free blocks to stdout
*/
void memmgr_heap_printf_free_blocks();
diff --git a/core/furi/record.h b/core/furi/record.h
index bc90a25d..d5d92deb 100644
--- a/core/furi/record.h
+++ b/core/furi/record.h
@@ -1,3 +1,8 @@
+/**
+ * @file record.h
+ * Furi: record API
+ */
+
#pragma once
#include <stdbool.h>
@@ -6,36 +11,45 @@
extern "C" {
#endif
-/** Initialize record storage
- * For internal use only.
+/** Initialize record storage For internal use only.
*/
void furi_record_init();
/** Create record
- * @param name - record name
- * @param data - data pointer
- * @note Thread safe. Create and destroy must be executed from the same thread.
+ *
+ * @param name record name
+ * @param data data pointer
+ * @note Thread safe. Create and destroy must be executed from the same
+ * thread.
*/
void furi_record_create(const char* name, void* data);
/** Destroy record
- * @param name - record name
- * @return true if successful, false if still have holders or thread is not owner.
- * @note Thread safe. Create and destroy must be executed from the same thread.
+ *
+ * @param name record name
+ *
+ * @return true if successful, false if still have holders or thread is not
+ * owner.
+ * @note Thread safe. Create and destroy must be executed from the same
+ * thread.
*/
bool furi_record_destroy(const char* name);
/** Open record
- * @param name - record name
- * @return pointer to the record
- * @note Thread safe. Open and close must be executed from the same thread.
- * Suspends caller thread till record appear
+ *
+ * @param name record name
+ *
+ * @return pointer to the record
+ * @note Thread safe. Open and close must be executed from the same
+ * thread. Suspends caller thread till record appear
*/
void* furi_record_open(const char* name);
/** Close record
- * @param name - record name
- * @note Thread safe. Open and close must be executed from the same thread.
+ *
+ * @param name record name
+ * @note Thread safe. Open and close must be executed from the same
+ * thread.
*/
void furi_record_close(const char* name);
diff --git a/core/furi/stdglue.h b/core/furi/stdglue.h
index a13c994d..c83a443e 100644
--- a/core/furi/stdglue.h
+++ b/core/furi/stdglue.h
@@ -1,3 +1,8 @@
+/**
+ * @file stdglue.h
+ * Furi: stdlibc glue
+ */
+
#pragma once
#include <stdbool.h>
@@ -7,31 +12,31 @@
extern "C" {
#endif
-/**
- * Write callback
- * @param _cookie - pointer to cookie (see stdio gnu extension)
- * @param data - pointer to data
- * @param size - data size
- * @warnign your handler must consume everything
+/** Write callback
+ * @param _cookie pointer to cookie (see stdio gnu extension)
+ * @param data pointer to data
+ * @param size data size @warnign your handler must consume everything
*/
typedef void (*FuriStdglueWriteCallback)(void* _cookie, const char* data, size_t size);
/** Initialized std library glue code */
void furi_stdglue_init();
-/**
- * Set global STDOUT callback
- * @param callback - callback or NULL to clear
- * @return true on success, otherwise fail
- * @warning function is thread aware, use this API from the same thread
+/** Set global STDOUT callback
+ *
+ * @param callback callback or NULL to clear
+ *
+ * @return true on success, otherwise fail
+ * @warning function is thread aware, use this API from the same thread
*/
bool furi_stdglue_set_global_stdout_callback(FuriStdglueWriteCallback callback);
-/**
- * Set STDOUT callback for your thread
- * @param callback - callback or NULL to clear
- * @return true on success, otherwise fail
- * @warning function is thread aware, use this API from the same thread
+/** Set STDOUT callback for your thread
+ *
+ * @param callback callback or NULL to clear
+ *
+ * @return true on success, otherwise fail
+ * @warning function is thread aware, use this API from the same thread
*/
bool furi_stdglue_set_thread_stdout_callback(FuriStdglueWriteCallback callback);
diff --git a/core/furi/thread.h b/core/furi/thread.h
index a4736265..50342517 100644
--- a/core/furi/thread.h
+++ b/core/furi/thread.h
@@ -1,3 +1,8 @@
+/**
+ * @file thread.h
+ * Furi: Furi Thread API
+ */
+
#pragma once
#include <stdint.h>
@@ -18,109 +23,130 @@ typedef enum {
/** FuriThread anonymous structure */
typedef struct FuriThread FuriThread;
-/** FuriThreadCallback
- * Your callback to run in new thread
- * @warning don't use osThreadExit
+/** FuriThreadCallback Your callback to run in new thread
+ * @warning never use osThreadExit in FuriThread
*/
typedef int32_t (*FuriThreadCallback)(void* context);
-/** FuriThread state change calback
- * called upon thread state change
- * @param state - new thread state
- * @param context - callback context
+/** FuriThread state change calback called upon thread state change
+ * @param state new thread state
+ * @param context callback context
*/
typedef void (*FuriThreadStateCallback)(FuriThreadState state, void* context);
/** Allocate FuriThread
- * @return FuriThread instance
+ *
+ * @return FuriThread instance
*/
FuriThread* furi_thread_alloc();
/** Release FuriThread
- * @param thread - FuriThread instance
+ *
+ * @param thread FuriThread instance
*/
void furi_thread_free(FuriThread* thread);
/** Set FuriThread name
- * @param thread - FuriThread instance
- * @param name - string
+ *
+ * @param thread FuriThread instance
+ * @param name string
*/
void furi_thread_set_name(FuriThread* thread, const char* name);
/** Set FuriThread stack size
- * @param thread - FuriThread instance
- * @param stack_size - stack size in bytes
+ *
+ * @param thread FuriThread instance
+ * @param stack_size stack size in bytes
*/
void furi_thread_set_stack_size(FuriThread* thread, size_t stack_size);
/** Set FuriThread callback
- * @param thread - FuriThread instance
- * @param callback - FuriThreadCallback, called upon thread run
+ *
+ * @param thread FuriThread instance
+ * @param callback FuriThreadCallback, called upon thread run
*/
void furi_thread_set_callback(FuriThread* thread, FuriThreadCallback callback);
/** Set FuriThread context
- * @param thread - FuriThread instance
- * @param context - pointer to context for thread callback
+ *
+ * @param thread FuriThread instance
+ * @param context pointer to context for thread callback
*/
void furi_thread_set_context(FuriThread* thread, void* context);
/** Set FuriThread state change callback
- * @param thread - FuriThread instance
- * @param callack - state change callback
+ *
+ * @param thread FuriThread instance
+ * @param callback state change callback
*/
void furi_thread_set_state_callback(FuriThread* thread, FuriThreadStateCallback callback);
/** Set FuriThread state change context
- * @param thread - FuriThread instance
- * @param context - pointer to context
+ *
+ * @param thread FuriThread instance
+ * @param context pointer to context
*/
void furi_thread_set_state_context(FuriThread* thread, void* context);
/** Get FuriThread state
- * @param thread - FuriThread instance
- * @return thread state from FuriThreadState
+ *
+ * @param thread FuriThread instance
+ *
+ * @return thread state from FuriThreadState
*/
FuriThreadState furi_thread_get_state(FuriThread* thread);
/** Start FuriThread
- * @param thread - FuriThread instance
- * @return true on success
+ *
+ * @param thread FuriThread instance
+ *
+ * @return true on success
*/
bool furi_thread_start(FuriThread* thread);
/** Treminate FuriThread
- * @param thread - FuriThread instance
- * @return osStatus_t
- * @warning terminating statefull thread is dangerous
- * use only if you know what you doing
+ *
+ * @param thread FuriThread instance
+ *
+ * @return osStatus_t
+ * @warning terminating statefull thread is dangerous use only if you know
+ * what you doing
*/
osStatus_t furi_thread_terminate(FuriThread* thread);
/** Join FuriThread
- * @param thread - FuriThread instance
- * @return osStatus_t
+ *
+ * @param thread FuriThread instance
+ *
+ * @return osStatus_t
*/
osStatus_t furi_thread_join(FuriThread* thread);
/** Get CMSIS Thread ID
- * @param thread - FuriThread instance
- * @return osThreadId_t or NULL
+ *
+ * @param thread FuriThread instance
+ *
+ * @return osThreadId_t or NULL
*/
osThreadId_t furi_thread_get_thread_id(FuriThread* thread);
/** Enable heap tracing
- * @param thread - FuriThread instance
+ *
+ * @param thread FuriThread instance
*/
void furi_thread_enable_heap_trace(FuriThread* thread);
/** Disable heap tracing
- * @param thread - FuriThread instance
+ *
+ * @param thread FuriThread instance
*/
void furi_thread_disable_heap_trace(FuriThread* thread);
/** Get thread heap size
- * @param thread - FuriThread instance
+ *
+ * @param thread FuriThread instance
+ *
+ * @return size in bytes
*/
size_t furi_thread_get_heap_size(FuriThread* thread);
diff --git a/documentation/Doxyfile b/documentation/Doxyfile
new file mode 100644
index 00000000..08760acf
--- /dev/null
+++ b/documentation/Doxyfile
@@ -0,0 +1,2608 @@
+# Doxyfile 1.9.2
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a double hash (##) is considered a comment and is placed in
+# front of the TAG it is preceding.
+#
+# All text after a single hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists, items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (\" \").
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the configuration
+# file that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
+# The default value is: UTF-8.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
+# double-quotes, unless you are using Doxywizard) that should identify the
+# project for which the documentation is generated. This name is used in the
+# title of most generated pages and in a few other places.
+# The default value is: My Project.
+
+PROJECT_NAME = "FlipperZero Firmware"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
+# could be handy for archiving the generated documentation or if some version
+# control system is used.
+
+PROJECT_NUMBER =
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer a
+# quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF =
+
+# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
+# in the documentation. The maximum height of the logo should not exceed 55
+# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
+# the logo to the output directory.
+
+PROJECT_LOGO =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
+# into which the generated documentation will be written. If a relative path is
+# entered, it will be relative to the location where doxygen was started. If
+# left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = documentation
+
+# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
+# directories (in 2 levels) under the output directory of each output format and
+# will distribute the generated files over these directories. Enabling this
+# option can be useful when feeding doxygen a huge amount of source files, where
+# putting all generated files in the same directory would otherwise causes
+# performance problems for the file system.
+# The default value is: NO.
+
+CREATE_SUBDIRS = NO
+
+# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
+# characters to appear in the names of generated files. If set to NO, non-ASCII
+# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
+# U+3044.
+# The default value is: NO.
+
+ALLOW_UNICODE_NAMES = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
+# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
+# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
+# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
+# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
+# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
+# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
+# Ukrainian and Vietnamese.
+# The default value is: English.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
+# descriptions after the members that are listed in the file and class
+# documentation (similar to Javadoc). Set to NO to disable this.
+# The default value is: YES.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
+# description of a member or function before the detailed description
+#
+# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+# The default value is: YES.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator that is
+# used to form the text in various listings. Each string in this list, if found
+# as the leading text of the brief description, will be stripped from the text
+# and the result, after processing the whole list, is used as the annotated
+# text. Otherwise, the brief description is used as-is. If left blank, the
+# following values are used ($name is automatically replaced with the name of
+# the entity):The $name class, The $name widget, The $name file, is, provides,
+# specifies, contains, represents, a, an and the.
+
+ABBREVIATE_BRIEF = "The $name class" \
+ "The $name widget" \
+ "The $name file" \
+ is \
+ provides \
+ specifies \
+ contains \
+ represents \
+ a \
+ an \
+ the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# doxygen will generate a detailed section even if there is only a brief
+# description.
+# The default value is: NO.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+# The default value is: NO.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
+# before files name in the file list and in the header files. If set to NO the
+# shortest path that makes the file name unique will be used
+# The default value is: YES.
+
+FULL_PATH_NAMES = YES
+
+# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
+# Stripping is only done if one of the specified strings matches the left-hand
+# part of the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the path to
+# strip.
+#
+# Note that you can specify absolute paths here, but also relative paths, which
+# will be relative from the directory where doxygen is started.
+# This tag requires that the tag FULL_PATH_NAMES is set to YES.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
+# path mentioned in the documentation of a class, which tells the reader which
+# header file to include in order to use a class. If left blank only the name of
+# the header file containing the class definition is used. Otherwise one should
+# specify the list of include paths that are normally passed to the compiler
+# using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
+# less readable) file names. This can be useful is your file systems doesn't
+# support long names like on DOS, Mac, or CD-ROM.
+# The default value is: NO.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
+# first line (until the first dot) of a Javadoc-style comment as the brief
+# description. If set to NO, the Javadoc-style will behave just like regular Qt-
+# style comments (thus requiring an explicit @brief command for a brief
+# description.)
+# The default value is: NO.
+
+JAVADOC_AUTOBRIEF = YES
+
+# If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line
+# such as
+# /***************
+# as being the beginning of a Javadoc-style comment "banner". If set to NO, the
+# Javadoc-style will behave just like regular comments and it will not be
+# interpreted by doxygen.
+# The default value is: NO.
+
+JAVADOC_BANNER = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
+# line (until the first dot) of a Qt-style comment as the brief description. If
+# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
+# requiring an explicit \brief command for a brief description.)
+# The default value is: NO.
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
+# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
+# a brief description. This used to be the default behavior. The new default is
+# to treat a multi-line C++ comment block as a detailed description. Set this
+# tag to YES if you prefer the old behavior instead.
+#
+# Note that setting this tag to YES also means that rational rose comments are
+# not recognized any more.
+# The default value is: NO.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
+# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
+# documentation from any documented member that it re-implements.
+# The default value is: YES.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
+# page for each member. If set to NO, the documentation of a member will be part
+# of the file/class/namespace that contains it.
+# The default value is: NO.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
+# uses this value to replace tabs by spaces in code fragments.
+# Minimum value: 1, maximum value: 16, default value: 4.
+
+TAB_SIZE = 4
+
+# This tag can be used to specify a number of aliases that act as commands in
+# the documentation. An alias has the form:
+# name=value
+# For example adding
+# "sideeffect=@par Side Effects:^^"
+# will allow you to put the command \sideeffect (or @sideeffect) in the
+# documentation, which will result in a user-defined paragraph with heading
+# "Side Effects:". Note that you cannot put \n's in the value part of an alias
+# to insert newlines (in the resulting output). You can put ^^ in the value part
+# of an alias to insert a newline as if a physical newline was in the original
+# file. When you need a literal { or } or , in the value part of an alias you
+# have to escape them by means of a backslash (\), this can lead to conflicts
+# with the commands \{ and \} for these it is advised to use the version @{ and
+# @} or use a double escape (\\{ and \\})
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
+# only. Doxygen will then generate output that is more tailored for C. For
+# instance, some of the names that are used will be different. The list of all
+# members will be omitted, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_FOR_C = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
+# Python sources only. Doxygen will then generate output that is more tailored
+# for that language. For instance, namespaces will be presented as packages,
+# qualified scopes will look different, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources. Doxygen will then generate output that is tailored for Fortran.
+# The default value is: NO.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for VHDL.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice
+# sources only. Doxygen will then generate output that is more tailored for that
+# language. For instance, namespaces will be presented as modules, types will be
+# separated into more groups, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_SLICE = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension, and
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# VHDL, Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
+# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
+# tries to guess whether the code is fixed or free formatted code, this is the
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
+#
+# Note: For files without extension you can use no_extension as a placeholder.
+#
+# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
+# the files are not read by doxygen. When specifying no_extension you should add
+# * to the FILE_PATTERNS.
+#
+# Note see also the list of default file extension mappings.
+
+EXTENSION_MAPPING =
+
+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
+# according to the Markdown format, which allows for more readable
+# documentation. See https://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you can
+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
+# case of backward compatibilities issues.
+# The default value is: YES.
+
+MARKDOWN_SUPPORT = YES
+
+# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
+# to that level are automatically included in the table of contents, even if
+# they do not have an id attribute.
+# Note: This feature currently applies only to Markdown headings.
+# Minimum value: 0, maximum value: 99, default value: 5.
+# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
+
+TOC_INCLUDE_HEADINGS = 5
+
+# When enabled doxygen tries to link words that correspond to documented
+# classes, or namespaces to their corresponding documentation. Such a link can
+# be prevented in individual cases by putting a % sign in front of the word or
+# globally by setting AUTOLINK_SUPPORT to NO.
+# The default value is: YES.
+
+AUTOLINK_SUPPORT = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should set this
+# tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string);
+# versus func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+# The default value is: NO.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+# The default value is: NO.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
+# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
+# will parse them like normal C++ but will assume all classes use public instead
+# of private inheritance when no explicit protection keyword is present.
+# The default value is: NO.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES will make
+# doxygen to replace the get and set methods by a property in the documentation.
+# This will only work if the methods are indeed getting or setting a simple
+# type. If this is not the case, or you want to show the methods anyway, you
+# should set this option to NO.
+# The default value is: YES.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+# The default value is: NO.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# If one adds a struct or class to a group and this option is enabled, then also
+# any nested class or struct is added to the same group. By default this option
+# is disabled and one has to add nested compounds explicitly via \ingroup.
+# The default value is: NO.
+
+GROUP_NESTED_COMPOUNDS = NO
+
+# Set the SUBGROUPING tag to YES to allow class member groups of the same type
+# (for instance a group of public functions) to be put as a subgroup of that
+# type (e.g. under the Public Functions section). Set it to NO to prevent
+# subgrouping. Alternatively, this can be done per class using the
+# \nosubgrouping command.
+# The default value is: YES.
+
+SUBGROUPING = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
+# are shown inside the group in which they are included (e.g. using \ingroup)
+# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
+# and RTF).
+#
+# Note that this feature does not work in combination with
+# SEPARATE_MEMBER_PAGES.
+# The default value is: NO.
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
+# with only public data fields or simple typedef fields will be shown inline in
+# the documentation of the scope in which they are defined (i.e. file,
+# namespace, or group documentation), provided this scope is documented. If set
+# to NO, structs, classes, and unions are shown on a separate page (for HTML and
+# Man pages) or section (for LaTeX and RTF).
+# The default value is: NO.
+
+INLINE_SIMPLE_STRUCTS = NO
+
+# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
+# enum is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically be
+# useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+# The default value is: NO.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
+# cache is used to resolve symbols given their name and scope. Since this can be
+# an expensive process and often the same symbol appears multiple times in the
+# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
+# doxygen will become slower. If the cache is too large, memory is wasted. The
+# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
+# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
+# symbols. At the end of a run doxygen will report the cache usage and suggest
+# the optimal cache size from a speed point of view.
+# Minimum value: 0, maximum value: 9, default value: 0.
+
+LOOKUP_CACHE_SIZE = 0
+
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which effectively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
+# documentation are documented, even if no documentation was available. Private
+# class members and static file members will be hidden unless the
+# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
+# Note: This will also disable the warnings about undocumented members that are
+# normally produced when WARNINGS is set to YES.
+# The default value is: NO.
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
+# be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual
+# methods of a class will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIV_VIRTUAL = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
+# scope will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PACKAGE = NO
+
+# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
+# included in the documentation.
+# The default value is: NO.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
+# locally in source files will be included in the documentation. If set to NO,
+# only classes defined in header files are included. Does not have any effect
+# for Java sources.
+# The default value is: YES.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. If set to YES, local methods,
+# which are defined in the implementation section but not in the interface are
+# included in the documentation. If set to NO, only methods in the interface are
+# included.
+# The default value is: NO.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base name of
+# the file that contains the anonymous namespace. By default anonymous namespace
+# are hidden.
+# The default value is: NO.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If this flag is set to YES, the name of an unnamed parameter in a declaration
+# will be determined by the corresponding definition. By default unnamed
+# parameters remain unnamed in the output.
+# The default value is: YES.
+
+RESOLVE_UNNAMED_PARAMS = YES
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
+# undocumented members inside documented classes or files. If set to NO these
+# members will be included in the various overviews, but no documentation
+# section is generated. This option has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy. If set
+# to NO, these classes will be included in the various overviews. This option
+# has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
+# The default value is: NO.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
+# documentation blocks found inside the body of a function. If set to NO, these
+# blocks will be appended to the function's detailed documentation block.
+# The default value is: NO.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation that is typed after a
+# \internal command is included. If the tag is set to NO then the documentation
+# will be excluded. Set it to YES to include the internal documentation.
+# The default value is: NO.
+
+INTERNAL_DOCS = NO
+
+# With the correct setting of option CASE_SENSE_NAMES doxygen will better be
+# able to match the capabilities of the underlying filesystem. In case the
+# filesystem is case sensitive (i.e. it supports files in the same directory
+# whose names only differ in casing), the option must be set to YES to properly
+# deal with such files in case they appear in the input. For filesystems that
+# are not case sensitive the option should be be set to NO to properly deal with
+# output files written for symbols that only differ in casing, such as for two
+# classes, one named CLASS and the other named Class, and to also support
+# references to files without having to specify the exact matching casing. On
+# Windows (including Cygwin) and MacOS, users should typically set this option
+# to NO, whereas on Linux or other Unix flavors it should typically be set to
+# YES.
+# The default value is: system dependent.
+
+CASE_SENSE_NAMES = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
+# their full class and namespace scopes in the documentation. If set to YES, the
+# scope will be hidden.
+# The default value is: NO.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
+# append additional text to a page's title, such as Class Reference. If set to
+# YES the compound reference will be hidden.
+# The default value is: NO.
+
+HIDE_COMPOUND_REFERENCE= NO
+
+# If the SHOW_HEADERFILE tag is set to YES then the documentation for a class
+# will show which file needs to be included to use the class.
+# The default value is: YES.
+
+SHOW_HEADERFILE = YES
+
+# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
+# the files that are included by a file in the documentation of that file.
+# The default value is: YES.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
+# grouped member an include statement to the documentation, telling the reader
+# which file to include in order to use the member.
+# The default value is: NO.
+
+SHOW_GROUPED_MEMB_INC = NO
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
+# files with double quotes in the documentation rather than with sharp brackets.
+# The default value is: NO.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
+# documentation for inline members.
+# The default value is: YES.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
+# (detailed) documentation of file and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order.
+# The default value is: YES.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
+# descriptions of file, namespace and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order. Note that
+# this will also influence the order of the classes in the class list.
+# The default value is: NO.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
+# (brief and detailed) documentation of class members so that constructors and
+# destructors are listed first. If set to NO the constructors will appear in the
+# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
+# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
+# member documentation.
+# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
+# detailed member documentation.
+# The default value is: NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
+# of group names into alphabetical order. If set to NO the group names will
+# appear in their defined order.
+# The default value is: NO.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
+# fully-qualified names, including namespaces. If set to NO, the class list will
+# be sorted only by class name, not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the alphabetical
+# list.
+# The default value is: NO.
+
+SORT_BY_SCOPE_NAME = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
+# type resolution of all parameters of a function it will reject a match between
+# the prototype and the implementation of a member function even if there is
+# only one candidate or it is obvious which candidate to choose by doing a
+# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
+# accept a match between prototype and implementation in such cases.
+# The default value is: NO.
+
+STRICT_PROTO_MATCHING = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
+# list. This list is created by putting \todo commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
+# list. This list is created by putting \test commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
+# list. This list is created by putting \bug commands in the documentation.
+# The default value is: YES.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
+# the deprecated list. This list is created by putting \deprecated commands in
+# the documentation.
+# The default value is: YES.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional documentation
+# sections, marked by \if <section_label> ... \endif and \cond <section_label>
+# ... \endcond blocks.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
+# initial value of a variable or macro / define can have for it to appear in the
+# documentation. If the initializer consists of more lines than specified here
+# it will be hidden. Use a value of 0 to hide initializers completely. The
+# appearance of the value of individual variables and macros / defines can be
+# controlled using \showinitializer or \hideinitializer command in the
+# documentation regardless of this setting.
+# Minimum value: 0, maximum value: 10000, default value: 30.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
+# the bottom of the documentation of classes and structs. If set to YES, the
+# list will mention the files that were used to generate the documentation.
+# The default value is: YES.
+
+SHOW_USED_FILES = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
+# will remove the Files entry from the Quick Index and from the Folder Tree View
+# (if specified).
+# The default value is: YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
+# page. This will remove the Namespaces entry from the Quick Index and from the
+# Folder Tree View (if specified).
+# The default value is: YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command command input-file, where command is the value of the
+# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
+# by doxygen. Whatever the program writes to standard output is used as the file
+# version. For an example see the documentation.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option. You can
+# optionally specify a file name after the option, if omitted DoxygenLayout.xml
+# will be used as the name of the layout file. See also section "Changing the
+# layout of pages" for information.
+#
+# Note that if you run doxygen from a directory containing a file called
+# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
+# tag is left empty.
+
+LAYOUT_FILE =
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
+# the reference definitions. This must be a list of .bib files. The .bib
+# extension is automatically appended if omitted. This requires the bibtex tool
+# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
+# For LaTeX the style of the bibliography can be controlled using
+# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
+# search path. See also \cite for info how to create references.
+
+CITE_BIB_FILES =
+
+#---------------------------------------------------------------------------
+# Configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated to
+# standard output by doxygen. If QUIET is set to YES this implies that the
+# messages are off.
+# The default value is: NO.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
+# this implies that the warnings are on.
+#
+# Tip: Turn warnings on while writing the documentation.
+# The default value is: YES.
+
+WARNINGS = YES
+
+# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
+# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
+# will automatically be disabled.
+# The default value is: YES.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as documenting some parameters in
+# a documented function twice, or documenting parameters that don't exist or
+# using markup commands wrongly.
+# The default value is: YES.
+
+WARN_IF_DOC_ERROR = YES
+
+# If WARN_IF_INCOMPLETE_DOC is set to YES, doxygen will warn about incomplete
+# function parameter documentation. If set to NO, doxygen will accept that some
+# parameters have no documentation without warning.
+# The default value is: YES.
+
+WARN_IF_INCOMPLETE_DOC = YES
+
+# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
+# are documented, but have no documentation for their parameters or return
+# value. If set to NO, doxygen will only warn about wrong parameter
+# documentation, but not about the absence of documentation. If EXTRACT_ALL is
+# set to YES then this flag will automatically be disabled. See also
+# WARN_IF_INCOMPLETE_DOC
+# The default value is: NO.
+
+WARN_NO_PARAMDOC = NO
+
+# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
+# a warning is encountered. If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS
+# then doxygen will continue running as if WARN_AS_ERROR tag is set to NO, but
+# at the end of the doxygen process doxygen will return with a non-zero status.
+# Possible values are: NO, YES and FAIL_ON_WARNINGS.
+# The default value is: NO.
+
+WARN_AS_ERROR = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that doxygen
+# can produce. The string should contain the $file, $line, and $text tags, which
+# will be replaced by the file and line number from which the warning originated
+# and the warning text. Optionally the format may contain $version, which will
+# be replaced by the version of the file (if it could be obtained via
+# FILE_VERSION_FILTER)
+# The default value is: $file:$line: $text.
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning and error
+# messages should be written. If left blank the output is written to standard
+# error (stderr).
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag is used to specify the files and/or directories that contain
+# documented source files. You may enter file names like myfile.cpp or
+# directories like /usr/src/myproject. Separate the files or directories with
+# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
+# Note: If this tag is empty the current directory is searched.
+
+INPUT = applications \
+ core \
+ lib/irda \
+ lib/subghz \
+ lib/toolbox \
+ lib/onewire \
+ firmware/targets/furi-hal-include
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
+# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
+# documentation (see:
+# https://www.gnu.org/software/libiconv/) for the list of possible encodings.
+# The default value is: UTF-8.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
+# *.h) to filter out the source-files in the directories.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# read by doxygen.
+#
+# Note the list of default checked file patterns might differ from the list of
+# default file extension mappings.
+#
+# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
+# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
+# *.hh, *.hxx, *.hpp, *.h++, *.l, *.cs, *.d, *.php, *.php4, *.php5, *.phtml,
+# *.inc, *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C
+# comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
+
+FILE_PATTERNS = *.c \
+ *.cc \
+ *.cxx \
+ *.cpp \
+ *.c++ \
+ *.h \
+ *.hh \
+ *.hxx \
+ *.hpp \
+ *.h++
+
+# The RECURSIVE tag can be used to specify whether or not subdirectories should
+# be searched for input files as well.
+# The default value is: NO.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+#
+# Note that relative paths are relative to the directory from which doxygen is
+# run.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+# The default value is: NO.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories.
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories use the pattern */test/*
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or directories
+# that contain example code fragments that are included (see the \include
+# command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
+# *.h) to filter out the source-files in the directories. If left blank all
+# files are included.
+
+EXAMPLE_PATTERNS = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude commands
+# irrespective of the value of the RECURSIVE tag.
+# The default value is: NO.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or directories
+# that contain images that are to be included in the documentation (see the
+# \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command:
+#
+# <filter> <input-file>
+#
+# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
+# name of an input file. Doxygen will then use the output that the filter
+# program writes to standard output. If FILTER_PATTERNS is specified, this tag
+# will be ignored.
+#
+# Note that the filter must not add or remove lines; it is applied before the
+# code is scanned, but not when the output code is generated. If lines are added
+# or removed, the anchors will not be placed correctly.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# properly processed by doxygen.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form: pattern=filter
+# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
+# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
+# patterns match the file name, INPUT_FILTER is applied.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# properly processed by doxygen.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will also be used to filter the input files that are used for
+# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
+# The default value is: NO.
+
+FILTER_SOURCE_FILES = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
+# it is also possible to disable source filtering for a specific pattern using
+# *.ext= (so without naming a filter).
+# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
+
+FILTER_SOURCE_PATTERNS =
+
+# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
+# is part of the input, its contents will be placed on the main page
+# (index.html). This can be useful if you have a project on for instance GitHub
+# and want to reuse the introduction page also for the doxygen output.
+
+USE_MDFILE_AS_MAINPAGE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
+# generated. Documented entities will be cross-referenced with these sources.
+#
+# Note: To get rid of all source code in the generated output, make sure that
+# also VERBATIM_HEADERS is set to NO.
+# The default value is: NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body of functions,
+# classes and enums directly into the documentation.
+# The default value is: NO.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
+# special comment blocks from generated source code fragments. Normal C, C++ and
+# Fortran comments will always remain visible.
+# The default value is: YES.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
+# entity all documented functions referencing it will be listed.
+# The default value is: NO.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES then for each documented function
+# all documented entities called/used by that function will be listed.
+# The default value is: NO.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
+# to YES then the hyperlinks from functions in REFERENCES_RELATION and
+# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
+# link to the documentation.
+# The default value is: YES.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
+# source code will show a tooltip with additional information such as prototype,
+# brief description and links to the definition and documentation. Since this
+# will make the HTML file larger and loading of large files a bit slower, you
+# can opt to disable this feature.
+# The default value is: YES.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+SOURCE_TOOLTIPS = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code will
+# point to the HTML generated by the htags(1) tool instead of doxygen built-in
+# source browser. The htags tool is part of GNU's global source tagging system
+# (see https://www.gnu.org/software/global/global.html). You will need version
+# 4.8.6 or higher.
+#
+# To use it do the following:
+# - Install the latest version of global
+# - Enable SOURCE_BROWSER and USE_HTAGS in the configuration file
+# - Make sure the INPUT points to the root of the source tree
+# - Run doxygen as normal
+#
+# Doxygen will invoke htags (and that will in turn invoke gtags), so these
+# tools must be available from the command line (i.e. in the search path).
+#
+# The result: instead of the source browser generated by doxygen, the links to
+# source code will now point to the output of htags.
+# The default value is: NO.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
+# verbatim copy of the header file for each class for which an include is
+# specified. Set to NO to disable this.
+# See also: Section \class.
+# The default value is: YES.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
+# compounds will be generated. Enable this if the project contains a lot of
+# classes, structs, unions or interfaces.
+# The default value is: YES.
+
+ALPHABETICAL_INDEX = YES
+
+# In case all classes in a project start with a common prefix, all classes will
+# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
+# can be used to specify a prefix (or a list of prefixes) that should be ignored
+# while generating the index headers.
+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
+# The default value is: YES.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
+# generated HTML page (for example: .htm, .php, .asp).
+# The default value is: .html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
+# each generated HTML page. If the tag is left blank doxygen will generate a
+# standard header.
+#
+# To get valid HTML the header file that includes any scripts and style sheets
+# that doxygen needs, which is dependent on the configuration options used (e.g.
+# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
+# default header using
+# doxygen -w html new_header.html new_footer.html new_stylesheet.css
+# YourConfigFile
+# and then modify the file new_header.html. See also section "Doxygen usage"
+# for information on how to generate the default header that doxygen normally
+# uses.
+# Note: The header is subject to change so you typically have to regenerate the
+# default header when upgrading to a newer version of doxygen. For a description
+# of the possible markers and block names see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_HEADER =
+
+# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
+# generated HTML page. If the tag is left blank doxygen will generate a standard
+# footer. See HTML_HEADER for more information on how to generate a default
+# footer and what special commands can be used inside the footer. See also
+# section "Doxygen usage" for information on how to generate the default footer
+# that doxygen normally uses.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
+# sheet that is used by each HTML page. It can be used to fine-tune the look of
+# the HTML output. If left blank doxygen will generate a default style sheet.
+# See also section "Doxygen usage" for information on how to generate the style
+# sheet that doxygen normally uses.
+# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
+# it is more robust and this tag (HTML_STYLESHEET) will in the future become
+# obsolete.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_STYLESHEET =
+
+# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# cascading style sheets that are included after the standard style sheets
+# created by doxygen. Using this option one can overrule certain style aspects.
+# This is preferred over using HTML_STYLESHEET since it does not replace the
+# standard style sheet and is therefore more robust against future updates.
+# Doxygen will copy the style sheet files to the output directory.
+# Note: The order of the extra style sheet files is of importance (e.g. the last
+# style sheet in the list overrules the setting of the previous ones in the
+# list). For an example see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_STYLESHEET =
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the HTML output directory. Note
+# that these files will be copied to the base HTML output directory. Use the
+# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
+# files will be copied as-is; there are no commands or markers available.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_FILES =
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
+# will adjust the colors in the style sheet and background images according to
+# this color. Hue is specified as an angle on a color-wheel, see
+# https://en.wikipedia.org/wiki/Hue for more information. For instance the value
+# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
+# purple, and 360 is red again.
+# Minimum value: 0, maximum value: 359, default value: 220.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_HUE = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
+# in the HTML output. For a value of 0 the output will use gray-scales only. A
+# value of 255 will produce the most vivid colors.
+# Minimum value: 0, maximum value: 255, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_SAT = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
+# luminance component of the colors in the HTML output. Values below 100
+# gradually make the output lighter, whereas values above 100 make the output
+# darker. The value divided by 100 is the actual gamma applied, so 80 represents
+# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
+# change the gamma.
+# Minimum value: 40, maximum value: 240, default value: 80.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_GAMMA = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting this
+# to YES can help to show when doxygen was last run and thus if the
+# documentation is up to date.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_TIMESTAMP = NO
+
+# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
+# documentation will contain a main index with vertical navigation menus that
+# are dynamically created via JavaScript. If disabled, the navigation index will
+# consists of multiple levels of tabs that are statically embedded in every HTML
+# page. Disable this option to support browsers that do not have JavaScript,
+# like the Qt help browser.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_MENUS = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
+# shown in the various tree structured indices initially; the user can expand
+# and collapse entries dynamically later on. Doxygen will expand the tree to
+# such a level that at most the specified number of entries are visible (unless
+# a fully collapsed tree already exceeds this amount). So setting the number of
+# entries 1 will produce a full collapsed tree by default. 0 is a special value
+# representing an infinite number of entries and will result in a full expanded
+# tree by default.
+# Minimum value: 0, maximum value: 9999, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_INDEX_NUM_ENTRIES = 100
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files will be
+# generated that can be used as input for Apple's Xcode 3 integrated development
+# environment (see:
+# https://developer.apple.com/xcode/), introduced with OSX 10.5 (Leopard). To
+# create a documentation set, doxygen will generate a Makefile in the HTML
+# output directory. Running make will produce the docset in that directory and
+# running make install will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
+# startup. See https://developer.apple.com/library/archive/featuredarticles/Doxy
+# genXcode/_index.html for more information.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_DOCSET = NO
+
+# This tag determines the name of the docset feed. A documentation feed provides
+# an umbrella under which multiple documentation sets from a single provider
+# (such as a company or product suite) can be grouped.
+# The default value is: Doxygen generated docs.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# This tag specifies a string that should uniquely identify the documentation
+# set bundle. This should be a reverse domain-name style string, e.g.
+# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
+# the documentation publisher. This should be a reverse domain-name style
+# string, e.g. com.mycompany.MyDocSet.documentation.
+# The default value is: org.doxygen.Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_ID = org.doxygen.Publisher
+
+# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
+# The default value is: Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_NAME = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
+# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
+# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
+# on Windows. In the beginning of 2021 Microsoft took the original page, with
+# a.o. the download links, offline the HTML help workshop was already many years
+# in maintenance mode). You can download the HTML help workshop from the web
+# archives at Installation executable (see:
+# http://web.archive.org/web/20160201063255/http://download.microsoft.com/downlo
+# ad/0/A/9/0A939EF6-E31C-430F-A3DF-DFAE7960D564/htmlhelp.exe).
+#
+# The HTML Help Workshop contains a compiler that can convert all HTML output
+# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
+# files are now used as the Windows 98 help format, and will replace the old
+# Windows help format (.hlp) on all Windows platforms in the future. Compressed
+# HTML files also contain an index, a table of contents, and you can search for
+# words in the documentation. The HTML workshop also contains a viewer for
+# compressed HTML files.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_HTMLHELP = NO
+
+# The CHM_FILE tag can be used to specify the file name of the resulting .chm
+# file. You can add a path in front of the file if the result should not be
+# written to the html output directory.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_FILE =
+
+# The HHC_LOCATION tag can be used to specify the location (absolute path
+# including file name) of the HTML help compiler (hhc.exe). If non-empty,
+# doxygen will try to run the HTML help compiler on the generated index.hhp.
+# The file has to be specified with full path.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+HHC_LOCATION =
+
+# The GENERATE_CHI flag controls if a separate .chi index file is generated
+# (YES) or that it should be included in the main .chm file (NO).
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+GENERATE_CHI = NO
+
+# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
+# and project file content.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_INDEX_ENCODING =
+
+# The BINARY_TOC flag controls whether a binary table of contents is generated
+# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
+# enables the Previous and Next buttons.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members to
+# the table of contents of the HTML help documentation and to the tree view.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
+# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
+# (.qch) of the generated HTML documentation.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
+# the file name of the resulting .qch file. The path specified is relative to
+# the HTML output folder.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
+# Project output. For more information please see Qt Help Project / Namespace
+# (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#namespace).
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
+# Help Project output. For more information please see Qt Help Project / Virtual
+# Folders (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#virtual-folders).
+# The default value is: doc.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
+# filter to add. For more information please see Qt Help Project / Custom
+# Filters (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see Qt Help Project / Custom
+# Filters (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's filter section matches. Qt Help Project / Filter Attributes (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#filter-attributes).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_SECT_FILTER_ATTRS =
+
+# The QHG_LOCATION tag can be used to specify the location (absolute path
+# including file name) of Qt's qhelpgenerator. If non-empty doxygen will try to
+# run qhelpgenerator on the generated .qhp file.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
+# generated, together with the HTML files, they form an Eclipse help plugin. To
+# install this plugin and make it available under the help contents menu in
+# Eclipse, the contents of the directory containing the HTML and XML files needs
+# to be copied into the plugins directory of eclipse. The name of the directory
+# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
+# After copying Eclipse needs to be restarted before the help appears.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_ECLIPSEHELP = NO
+
+# A unique identifier for the Eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have this
+# name. Each documentation set should have its own identifier.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
+
+ECLIPSE_DOC_ID = org.doxygen.Project
+
+# If you want full control over the layout of the generated HTML pages it might
+# be necessary to disable the index and replace it with your own. The
+# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
+# of each HTML page. A value of NO enables the index and the value YES disables
+# it. Since the tabs in the index contain the same information as the navigation
+# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+DISABLE_INDEX = NO
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information. If the tag
+# value is set to YES, a side panel will be generated containing a tree-like
+# index structure (just like the one that is generated for HTML Help). For this
+# to work a browser that supports JavaScript, DHTML, CSS and frames is required
+# (i.e. any modern browser). Windows users are probably better off using the
+# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
+# further fine tune the look of the index (see "Fine-tuning the output"). As an
+# example, the default style sheet generated by doxygen has an example that
+# shows how to put an image at the root of the tree instead of the PROJECT_NAME.
+# Since the tree basically has the same information as the tab index, you could
+# consider setting DISABLE_INDEX to YES when enabling this option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_TREEVIEW = NO
+
+# When both GENERATE_TREEVIEW and DISABLE_INDEX are set to YES, then the
+# FULL_SIDEBAR option determines if the side bar is limited to only the treeview
+# area (value NO) or if it should extend to the full height of the window (value
+# YES). Setting this to YES gives a layout similar to
+# https://docs.readthedocs.io with more room for contents, but less room for the
+# project logo, title, and description. If either GENERATOR_TREEVIEW or
+# DISABLE_INDEX is set to NO, this option has no effect.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FULL_SIDEBAR = NO
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
+# doxygen will group on one line in the generated HTML documentation.
+#
+# Note that a value of 0 will completely suppress the enum values from appearing
+# in the overview section.
+# Minimum value: 0, maximum value: 20, default value: 4.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+ENUM_VALUES_PER_LINE = 4
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
+# to set the initial width (in pixels) of the frame in which the tree is shown.
+# Minimum value: 0, maximum value: 1500, default value: 250.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+TREEVIEW_WIDTH = 250
+
+# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
+# external symbols imported via tag files in a separate window.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+EXT_LINKS_IN_WINDOW = NO
+
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
+# Use this tag to change the font size of LaTeX formulas included as images in
+# the HTML documentation. When you change the font size after a successful
+# doxygen run you need to manually remove any form_*.png images from the HTML
+# output directory to force them to be regenerated.
+# Minimum value: 8, maximum value: 50, default value: 10.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_FONTSIZE = 10
+
+# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are not
+# supported properly for IE 6.0, but are supported on all modern browsers.
+#
+# Note that when changing this option you need to delete any form_*.png files in
+# the HTML output directory before the changes have effect.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_TRANSPARENT = YES
+
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
+# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
+# installed or if you want to formulas look prettier in the HTML output. When
+# enabled you may also need to install MathJax separately and configure the path
+# to it using the MATHJAX_RELPATH option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+USE_MATHJAX = NO
+
+# With MATHJAX_VERSION it is possible to specify the MathJax version to be used.
+# Note that the different versions of MathJax have different requirements with
+# regards to the different settings, so it is possible that also other MathJax
+# settings have to be changed when switching between the different MathJax
+# versions.
+# Possible values are: MathJax_2 and MathJax_3.
+# The default value is: MathJax_2.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_VERSION = MathJax_2
+
+# When MathJax is enabled you can set the default output format to be used for
+# the MathJax output. For more details about the output format see MathJax
+# version 2 (see:
+# http://docs.mathjax.org/en/v2.7-latest/output.html) and MathJax version 3
+# (see:
+# http://docs.mathjax.org/en/latest/web/components/output.html).
+# Possible values are: HTML-CSS (which is slower, but has the best
+# compatibility. This is the name for Mathjax version 2, for MathJax version 3
+# this will be translated into chtml), NativeMML (i.e. MathML. Only supported
+# for NathJax 2. For MathJax version 3 chtml will be used instead.), chtml (This
+# is the name for Mathjax version 3, for MathJax version 2 this will be
+# translated into HTML-CSS) and SVG.
+# The default value is: HTML-CSS.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_FORMAT = HTML-CSS
+
+# When MathJax is enabled you need to specify the location relative to the HTML
+# output directory using the MATHJAX_RELPATH option. The destination directory
+# should contain the MathJax.js script. For instance, if the mathjax directory
+# is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
+# Content Delivery Network so you can quickly see the result without installing
+# MathJax. However, it is strongly recommended to install a local copy of
+# MathJax from https://www.mathjax.org before deployment. The default value is:
+# - in case of MathJax version 2: https://cdn.jsdelivr.net/npm/mathjax@2
+# - in case of MathJax version 3: https://cdn.jsdelivr.net/npm/mathjax@3
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_RELPATH =
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
+# extension names that should be enabled during MathJax rendering. For example
+# for MathJax version 2 (see https://docs.mathjax.org/en/v2.7-latest/tex.html
+# #tex-and-latex-extensions):
+# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
+# For example for MathJax version 3 (see
+# http://docs.mathjax.org/en/latest/input/tex/extensions/index.html):
+# MATHJAX_EXTENSIONS = ams
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_EXTENSIONS =
+
+# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
+# of code that will be used on startup of the MathJax code. See the MathJax site
+# (see:
+# http://docs.mathjax.org/en/v2.7-latest/output.html) for more details. For an
+# example see the documentation.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_CODEFILE =
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
+# the HTML output. The underlying search engine uses javascript and DHTML and
+# should work on any modern browser. Note that when using HTML help
+# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
+# there is already a search function so this one should typically be disabled.
+# For large projects the javascript based search engine can be slow, then
+# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
+# search using the keyboard; to jump to the search box use <access key> + S
+# (what the <access key> is depends on the OS and browser, but it is typically
+# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
+# key> to jump into the search results window, the results can be navigated
+# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
+# the search. The filter options can be selected when the cursor is inside the
+# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
+# to select a filter and <Enter> or <escape> to activate or cancel the filter
+# option.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+SEARCHENGINE = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a web server instead of a web client using JavaScript. There
+# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
+# setting. When disabled, doxygen will generate a PHP script for searching and
+# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
+# and searching needs to be provided by external tools. See the section
+# "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SERVER_BASED_SEARCH = NO
+
+# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
+# script for searching. Instead the search results are written to an XML file
+# which needs to be processed by an external indexer. Doxygen will invoke an
+# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
+# search results.
+#
+# Doxygen ships with an example indexer (doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see:
+# https://xapian.org/).
+#
+# See the section "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH = NO
+
+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
+# which will return the search results when EXTERNAL_SEARCH is enabled.
+#
+# Doxygen ships with an example indexer (doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see:
+# https://xapian.org/). See the section "External Indexing and Searching" for
+# details.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHENGINE_URL =
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
+# search data is written to a file for indexing by an external tool. With the
+# SEARCHDATA_FILE tag the name of this file can be specified.
+# The default file is: searchdata.xml.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHDATA_FILE = searchdata.xml
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
+# projects and redirect the results back to the right project.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH_ID =
+
+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
+# projects other than the one defined by this configuration file, but that are
+# all added to the same external search index. Each project needs to have a
+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
+# to a relative location where the documentation can be found. The format is:
+# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTRA_SEARCH_MAPPINGS =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
+# The default value is: YES.
+
+GENERATE_LATEX = YES
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: latex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked.
+#
+# Note that when not enabling USE_PDFLATEX the default is latex when enabling
+# USE_PDFLATEX the default is pdflatex and when in the later case latex is
+# chosen this is overwritten by pdflatex. For specific output languages the
+# default can have been set differently, this depends on the implementation of
+# the output language.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_CMD_NAME =
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
+# index for LaTeX.
+# Note: This tag is used in the Makefile / make.bat.
+# See also: LATEX_MAKEINDEX_CMD for the part in the generated output file
+# (.tex).
+# The default file is: makeindex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# The LATEX_MAKEINDEX_CMD tag can be used to specify the command name to
+# generate index for LaTeX. In case there is no backslash (\) as first character
+# it will be automatically added in the LaTeX code.
+# Note: This tag is used in the generated output file (.tex).
+# See also: MAKEINDEX_CMD_NAME for the part in the Makefile / make.bat.
+# The default value is: makeindex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_MAKEINDEX_CMD = makeindex
+
+# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used by the
+# printer.
+# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
+# 14 inches) and executive (7.25 x 10.5 inches).
+# The default value is: a4.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PAPER_TYPE = a4
+
+# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
+# that should be included in the LaTeX output. The package can be specified just
+# by its name or with the correct syntax as to be used with the LaTeX
+# \usepackage command. To get the times font for instance you can specify :
+# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
+# To use the option intlimits with the amsmath package you can specify:
+# EXTRA_PACKAGES=[intlimits]{amsmath}
+# If left blank no extra packages will be included.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a user-defined LaTeX header for
+# the generated LaTeX document. The header should contain everything until the
+# first chapter. If it is left blank doxygen will generate a standard header. It
+# is highly recommended to start with a default header using
+# doxygen -w latex new_header.tex new_footer.tex new_stylesheet.sty
+# and then modify the file new_header.tex. See also section "Doxygen usage" for
+# information on how to generate the default header that doxygen normally uses.
+#
+# Note: Only use a user-defined header if you know what you are doing!
+# Note: The header is subject to change so you typically have to regenerate the
+# default header when upgrading to a newer version of doxygen. The following
+# commands have a special meaning inside the header (and footer): For a
+# description of the possible markers and block names see the documentation.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HEADER =
+
+# The LATEX_FOOTER tag can be used to specify a user-defined LaTeX footer for
+# the generated LaTeX document. The footer should contain everything after the
+# last chapter. If it is left blank doxygen will generate a standard footer. See
+# LATEX_HEADER for more information on how to generate a default footer and what
+# special commands can be used inside the footer. See also section "Doxygen
+# usage" for information on how to generate the default footer that doxygen
+# normally uses. Note: Only use a user-defined footer if you know what you are
+# doing!
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_FOOTER =
+
+# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# LaTeX style sheets that are included after the standard style sheets created
+# by doxygen. Using this option one can overrule certain style aspects. Doxygen
+# will copy the style sheet files to the output directory.
+# Note: The order of the extra style sheet files is of importance (e.g. the last
+# style sheet in the list overrules the setting of the previous ones in the
+# list).
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_STYLESHEET =
+
+# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the LATEX_OUTPUT output
+# directory. Note that the files will be copied as-is; there are no commands or
+# markers available.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_FILES =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
+# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
+# contain links (just like the HTML output) instead of page references. This
+# makes the output suitable for online browsing using a PDF viewer.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
+# command to the generated LaTeX files. This will instruct LaTeX to keep running
+# if errors occur, instead of asking the user for help.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BATCHMODE = NO
+
+# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
+# index chapters (such as File Index, Compound Index, etc.) in the output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HIDE_INDICES = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
+# bibliography, e.g. plainnat, or ieeetr. See
+# https://en.wikipedia.org/wiki/BibTeX and \cite for more info.
+# The default value is: plain.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BIB_STYLE = plain
+
+# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
+# page will contain the date and time when the page was generated. Setting this
+# to NO can help when comparing the output of multiple runs.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_TIMESTAMP = NO
+
+# The LATEX_EMOJI_DIRECTORY tag is used to specify the (relative or absolute)
+# path from which the emoji images will be read. If a relative path is entered,
+# it will be relative to the LATEX_OUTPUT directory. If left blank the
+# LATEX_OUTPUT directory will be used.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EMOJI_DIRECTORY =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
+# RTF output is optimized for Word 97 and may not look too pretty with other RTF
+# readers/editors.
+# The default value is: NO.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: rtf.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
+# contain hyperlink fields. The RTF file will contain links (just like the HTML
+# output) instead of page references. This makes the output suitable for online
+# browsing using Word or some other Word compatible readers that support those
+# fields.
+#
+# Note: WordPad (write) and others do not support links.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_HYPERLINKS = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# configuration file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+#
+# See also section "Doxygen usage" for information on how to generate the
+# default style sheet that doxygen normally uses.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an RTF document. Syntax is
+# similar to doxygen's configuration file. A template extensions file can be
+# generated using doxygen -e rtf extensionFile.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
+# classes and files.
+# The default value is: NO.
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it. A directory man3 will be created inside the directory specified by
+# MAN_OUTPUT.
+# The default directory is: man.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to the generated
+# man pages. In case the manual section does not start with a number, the number
+# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
+# optional.
+# The default value is: .3.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_EXTENSION = .3
+
+# The MAN_SUBDIR tag determines the name of the directory created within
+# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
+# MAN_EXTENSION with the initial . removed.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_SUBDIR =
+
+# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
+# will generate one additional man file for each entity documented in the real
+# man page(s). These additional files only source the real man page, but without
+# them the man command would be unable to find the correct page.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
+# captures the structure of the code including all documentation.
+# The default value is: NO.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: xml.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_OUTPUT = xml
+
+# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
+# listings (including syntax highlighting and cross-referencing information) to
+# the XML output. Note that enabling this will significantly increase the size
+# of the XML output.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_PROGRAMLISTING = YES
+
+# If the XML_NS_MEMB_FILE_SCOPE tag is set to YES, doxygen will include
+# namespace members in file scope as well, matching the HTML output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_NS_MEMB_FILE_SCOPE = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the DOCBOOK output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
+# that can be used to generate PDF.
+# The default value is: NO.
+
+GENERATE_DOCBOOK = NO
+
+# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
+# front of it.
+# The default directory is: docbook.
+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
+
+DOCBOOK_OUTPUT = docbook
+
+#---------------------------------------------------------------------------
+# Configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
+# AutoGen Definitions (see http://autogen.sourceforge.net/) file that captures
+# the structure of the code including all documentation. Note that this feature
+# is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
+# file that captures the structure of the code including all documentation.
+#
+# Note that this feature is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
+# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
+# output from the Perl module output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
+# formatted so it can be parsed by a human reader. This is useful if you want to
+# understand what is going on. On the other hand, if this tag is set to NO, the
+# size of the Perl module output will be much smaller and Perl will parse it
+# just the same.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file are
+# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
+# so different doxyrules.make files included by the same Makefile don't
+# overwrite each other's variables.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
+# C-preprocessor directives found in the sources and include files.
+# The default value is: YES.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
+# in the source code. If set to NO, only conditional compilation will be
+# performed. Macro expansion can be done in a controlled way by setting
+# EXPAND_ONLY_PREDEF to YES.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
+# the macro expansion is limited to the macros specified with the PREDEFINED and
+# EXPAND_AS_DEFINED tags.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES, the include files in the
+# INCLUDE_PATH will be searched if a #include is found.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by the
+# preprocessor.
+# This tag requires that the tag SEARCH_INCLUDES is set to YES.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will be
+# used.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that are
+# defined before the preprocessor is started (similar to the -D option of e.g.
+# gcc). The argument of the tag is a list of macros of the form: name or
+# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
+# is assumed. To prevent a macro definition from being undefined via #undef or
+# recursively expanded use the := operator instead of the = operator.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+PREDEFINED =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
+# tag can be used to specify a list of macro names that should be expanded. The
+# macro definition that is found in the sources will be used. Use the PREDEFINED
+# tag if you want to use a different macro definition that overrules the
+# definition found in the source code.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
+# remove all references to function-like macros that are alone on a line, have
+# an all uppercase name, and do not end with a semicolon. Such function macros
+# are typically used for boiler-plate code, and will confuse the parser if not
+# removed.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES tag can be used to specify one or more tag files. For each tag
+# file the location of the external documentation should be added. The format of
+# a tag file without this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where loc1 and loc2 can be relative or absolute paths or URLs. See the
+# section "Linking to external documentation" for more information about the use
+# of tag files.
+# Note: Each tag file must have a unique name (where the name does NOT include
+# the path). If a tag file is not located in the directory in which doxygen is
+# run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
+# tag file that is based on the input files it reads. See section "Linking to
+# external documentation" for more information about the usage of tag files.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
+# the class index. If set to NO, only the inherited external classes will be
+# listed.
+# The default value is: NO.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will be
+# listed.
+# The default value is: YES.
+
+EXTERNAL_GROUPS = YES
+
+# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
+# the related pages index. If set to NO, only the current project's pages will
+# be listed.
+# The default value is: YES.
+
+EXTERNAL_PAGES = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
+# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
+# NO turns the diagrams off. Note that this option also works with HAVE_DOT
+# disabled, but it is recommended to install and use dot, since it yields more
+# powerful graphs.
+# The default value is: YES.
+
+CLASS_DIAGRAMS = YES
+
+# You can include diagrams made with dia in doxygen documentation. Doxygen will
+# then run dia to produce the diagram and insert it in the documentation. The
+# DIA_PATH tag allows you to specify the directory where the dia binary resides.
+# If left empty dia is assumed to be found in the default search path.
+
+DIA_PATH =
+
+# If set to YES the inheritance and collaboration graphs will hide inheritance
+# and usage relations if the target is undocumented or is not a class.
+# The default value is: YES.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz (see:
+# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
+# Bell Labs. The other options in this section have no effect if this option is
+# set to NO
+# The default value is: NO.
+
+HAVE_DOT = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
+# to run in parallel. When set to 0 doxygen will base this on the number of
+# processors available in the system. You can set it explicitly to a value
+# larger than 0 to get control over the balance between CPU load and processing
+# speed.
+# Minimum value: 0, maximum value: 32, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_NUM_THREADS = 0
+
+# When you want a differently looking font in the dot files that doxygen
+# generates you can specify the font name using DOT_FONTNAME. You need to make
+# sure dot is able to find the font, which can be done by putting it in a
+# standard location or by setting the DOTFONTPATH environment variable or by
+# setting DOT_FONTPATH to the directory containing the font.
+# The default value is: Helvetica.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTNAME = Helvetica
+
+# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
+# dot graphs.
+# Minimum value: 4, maximum value: 24, default value: 10.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the default font as specified with
+# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
+# the path where dot can find it using this tag.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
+# each documented class showing the direct and indirect inheritance relations.
+# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
+# graph for each documented class showing the direct and indirect implementation
+# dependencies (inheritance, containment, and class references variables) of the
+# class with other documented classes.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
+# groups, showing the direct groups dependencies.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+UML_LOOK = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
+# class node. If there are many fields or methods and many nodes the graph may
+# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
+# number of items for each type to make the size more manageable. Set this to 0
+# for no limit. Note that the threshold may be exceeded by 50% before the limit
+# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
+# but if the number exceeds 15, the total amount of fields shown is limited to
+# 10.
+# Minimum value: 0, maximum value: 100, default value: 10.
+# This tag requires that the tag UML_LOOK is set to YES.
+
+UML_LIMIT_NUM_FIELDS = 10
+
+# If the DOT_UML_DETAILS tag is set to NO, doxygen will show attributes and
+# methods without types and arguments in the UML graphs. If the DOT_UML_DETAILS
+# tag is set to YES, doxygen will add type and arguments for attributes and
+# methods in the UML graphs. If the DOT_UML_DETAILS tag is set to NONE, doxygen
+# will not generate fields with class member information in the UML graphs. The
+# class diagrams will look similar to the default class diagrams but using UML
+# notation for the relationships.
+# Possible values are: NO, YES and NONE.
+# The default value is: NO.
+# This tag requires that the tag UML_LOOK is set to YES.
+
+DOT_UML_DETAILS = NO
+
+# The DOT_WRAP_THRESHOLD tag can be used to set the maximum number of characters
+# to display on a single line. If the actual line length exceeds this threshold
+# significantly it will wrapped across multiple lines. Some heuristics are apply
+# to avoid ugly line breaks.
+# Minimum value: 0, maximum value: 1000, default value: 17.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_WRAP_THRESHOLD = 17
+
+# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
+# collaboration graphs will show the relations between templates and their
+# instances.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+TEMPLATE_RELATIONS = NO
+
+# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
+# YES then doxygen will generate a graph for each documented file showing the
+# direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDE_GRAPH = YES
+
+# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
+# set to YES then doxygen will generate a graph for each documented file showing
+# the direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command. Disabling a call graph can be
+# accomplished by means of the command \hidecallgraph.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable caller graphs for selected
+# functions only using the \callergraph command. Disabling a caller graph can be
+# accomplished by means of the command \hidecallergraph.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
+# hierarchy of all classes instead of a textual one.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
+# dependencies a directory has on other directories in a graphical way. The
+# dependency relations are determined by the #include relations between the
+# files in the directories.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. For an explanation of the image formats see the section
+# output formats in the documentation of the dot tool (Graphviz (see:
+# http://www.graphviz.org/)).
+# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
+# to make the SVG files visible in IE 9+ (other browsers do not have this
+# requirement).
+# Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,
+# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
+# png:gdiplus:gdiplus.
+# The default value is: png.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_IMAGE_FORMAT = png
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+# enable generation of interactive SVG images that allow zooming and panning.
+#
+# Note that this requires a modern browser other than Internet Explorer. Tested
+# and working are Firefox, Chrome, Safari, and Opera.
+# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
+# the SVG files visible. Older versions of IE do not have SVG support.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INTERACTIVE_SVG = NO
+
+# The DOT_PATH tag can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the \dotfile
+# command).
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOTFILE_DIRS =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the \mscfile
+# command).
+
+MSCFILE_DIRS =
+
+# The DIAFILE_DIRS tag can be used to specify one or more directories that
+# contain dia files that are included in the documentation (see the \diafile
+# command).
+
+DIAFILE_DIRS =
+
+# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
+# path where java can find the plantuml.jar file. If left blank, it is assumed
+# PlantUML is not used or called during a preprocessing step. Doxygen will
+# generate a warning when it encounters a \startuml command in this case and
+# will not generate output for the diagram.
+
+PLANTUML_JAR_PATH =
+
+# When using plantuml, the PLANTUML_CFG_FILE tag can be used to specify a
+# configuration file for plantuml.
+
+PLANTUML_CFG_FILE =
+
+# When using plantuml, the specified paths are searched for files specified by
+# the !include statement in a plantuml block.
+
+PLANTUML_INCLUDE_PATH =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
+# that will be shown in the graph. If the number of nodes in a graph becomes
+# larger than this value, doxygen will truncate the graph, which is visualized
+# by representing a node as a red box. Note that doxygen if the number of direct
+# children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
+# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+# Minimum value: 0, maximum value: 10000, default value: 50.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
+# generated by dot. A depth value of 3 means that only nodes reachable from the
+# root by following a path via at most 3 edges will be shown. Nodes that lay
+# further from the root node will be omitted. Note that setting this option to 1
+# or 2 may greatly reduce the computation time needed for large code bases. Also
+# note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+# Minimum value: 0, maximum value: 1000, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not seem
+# to support this out of the box.
+#
+# Warning: Depending on the platform used, enabling this option may lead to
+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
+# read).
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10) support
+# this, this feature is disabled by default.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
+# explaining the meaning of the various boxes and arrows in the dot generated
+# graphs.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate
+# files that are used to generate the various graphs.
+#
+# Note: This setting is not only used for dot files but also for msc temporary
+# files.
+# The default value is: YES.
+
+DOT_CLEANUP = YES
diff --git a/firmware/targets/f6/furi-hal/furi-hal-flash.h b/firmware/targets/f6/furi-hal/furi-hal-flash.h
index 3ef9b730..583d53eb 100644
--- a/firmware/targets/f6/furi-hal/furi-hal-flash.h
+++ b/firmware/targets/f6/furi-hal/furi-hal-flash.h
@@ -5,70 +5,88 @@
#include <stddef.h>
/** Get flash base address
- * @return pointer to flash base
+ *
+ * @return pointer to flash base
*/
size_t furi_hal_flash_get_base();
/** Get flash read block size
- * @return size in bytes
+ *
+ * @return size in bytes
*/
size_t furi_hal_flash_get_read_block_size();
/** Get flash write block size
- * @return size in bytes
+ *
+ * @return size in bytes
*/
size_t furi_hal_flash_get_write_block_size();
/** Get flash page size
- * @return size in bytes
+ *
+ * @return size in bytes
*/
size_t furi_hal_flash_get_page_size();
/** Get expected flash cycles count
- * @return count of erase-write operations
+ *
+ * @return count of erase-write operations
*/
size_t furi_hal_flash_get_cycles_count();
/** Get free flash start address
- * @return pointer to free region start
+ *
+ * @return pointer to free region start
*/
const void* furi_hal_flash_get_free_start_address();
/** Get free flash end address
- * @return pointer to free region end
+ *
+ * @return pointer to free region end
*/
const void* furi_hal_flash_get_free_end_address();
/** Get first free page start address
- * @return first free page memory address
+ *
+ * @return first free page memory address
*/
size_t furi_hal_flash_get_free_page_start_address();
/** Get free page count
- * @return free page count
+ *
+ * @return free page count
*/
size_t furi_hal_flash_get_free_page_count();
-/*
- * Erase Flash
+/** Erase Flash
+ *
* Locking operation, uses HSEM to manage shared access.
- * @param page, page number
- * @param count, page count to erase
+ *
+ * @param page page number
+ * @param count page count to erase
+ *
+ * @return true on success
*/
bool furi_hal_flash_erase(uint8_t page, uint8_t count);
-/*
- * Write double word (64 bits)
+/** Write double word (64 bits)
+ *
* Locking operation, uses HSEM to manage shared access.
- * @param address - destination address, must be double word aligned.
- * @param data - data to write
+ *
+ * @param address destination address, must be double word aligned.
+ * @param data data to write
+ *
+ * @return true on success
*/
bool furi_hal_flash_write_dword(size_t address, uint64_t data);
-/*
- * Write double word (64 bits) from address
+/** Write double word (64 bits) from address
+ *
* Locking operation, uses HSEM to manage shared access.
- * @param address - destination address, must be block aligned
- * @param source_address - source address
+ *
+ * @param address destination address, must be block aligned
+ * @param source_address source address
+ *
+ * @return true on success
*/
bool furi_hal_flash_write_dword_from(size_t address, size_t source_address);
diff --git a/firmware/targets/f6/furi-hal/furi-hal-subghz.c b/firmware/targets/f6/furi-hal/furi-hal-subghz.c
index 34446d8d..2d7b1a90 100644
--- a/firmware/targets/f6/furi-hal/furi-hal-subghz.c
+++ b/firmware/targets/f6/furi-hal/furi-hal-subghz.c
@@ -290,14 +290,6 @@ void furi_hal_subghz_load_preset(FuriHalSubGhzPreset preset) {
}
}
-uint8_t furi_hal_subghz_get_status() {
- const FuriHalSpiDevice* device = furi_hal_spi_device_get(FuriHalSpiDeviceIdSubGhz);
- CC1101StatusRaw st;
- st.status = cc1101_get_status(device);
- furi_hal_spi_device_return(device);
- return st.status_raw;
-}
-
void furi_hal_subghz_load_registers(const uint8_t data[][2]) {
const FuriHalSpiDevice* device = furi_hal_spi_device_get(FuriHalSpiDeviceIdSubGhz);
cc1101_reset(device);
diff --git a/firmware/targets/f7/furi-hal/furi-hal-subghz.c b/firmware/targets/f7/furi-hal/furi-hal-subghz.c
index 34446d8d..2d7b1a90 100644
--- a/firmware/targets/f7/furi-hal/furi-hal-subghz.c
+++ b/firmware/targets/f7/furi-hal/furi-hal-subghz.c
@@ -290,14 +290,6 @@ void furi_hal_subghz_load_preset(FuriHalSubGhzPreset preset) {
}
}
-uint8_t furi_hal_subghz_get_status() {
- const FuriHalSpiDevice* device = furi_hal_spi_device_get(FuriHalSpiDeviceIdSubGhz);
- CC1101StatusRaw st;
- st.status = cc1101_get_status(device);
- furi_hal_spi_device_return(device);
- return st.status_raw;
-}
-
void furi_hal_subghz_load_registers(const uint8_t data[][2]) {
const FuriHalSpiDevice* device = furi_hal_spi_device_get(FuriHalSpiDeviceIdSubGhz);
cc1101_reset(device);
diff --git a/firmware/targets/furi-hal-include/furi-hal-boot.h b/firmware/targets/furi-hal-include/furi-hal-boot.h
index 9731ca1c..195a7bb0 100644
--- a/firmware/targets/furi-hal-include/furi-hal-boot.h
+++ b/firmware/targets/furi-hal-include/furi-hal-boot.h
@@ -1,4 +1,10 @@
+/**
+ * @file furi-hal-boot.h
+ * Bootloader HAL API
+ */
+
#pragma once
+
#include <stdint.h>
#ifdef __cplusplus
@@ -17,16 +23,26 @@ typedef enum {
FuriHalBootFlagFactoryReset=1,
} FuriHalBootFlag;
-/** Initialize boot subsystem */
+/** Initialize boot subsystem
+ */
void furi_hal_boot_init();
-/** Set boot mode */
+/** Set boot mode
+ *
+ * @param[in] mode FuriHalBootMode
+ */
void furi_hal_boot_set_mode(FuriHalBootMode mode);
-/** Set boot flags */
+/** Set boot flags
+ *
+ * @param[in] flags FuriHalBootFlag
+ */
void furi_hal_boot_set_flags(FuriHalBootFlag flags);
-/** Get boot flag */
+/** Get boot flag
+ *
+ * @return FuriHalBootFlag
+ */
FuriHalBootFlag furi_hal_boot_get_flags();
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal-bt.h b/firmware/targets/furi-hal-include/furi-hal-bt.h
index 61cc413e..89fab715 100644
--- a/firmware/targets/furi-hal-include/furi-hal-bt.h
+++ b/firmware/targets/furi-hal-include/furi-hal-bt.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-bt.h
+ * BT/BLE HAL API
+ */
+
#pragma once
#include <m-string.h>
@@ -7,64 +12,114 @@
extern "C" {
#endif
-/** Initialize */
+/** Initialize
+ */
void furi_hal_bt_init();
-/** Start BLE app */
+/** Start BLE app
+ *
+ * @return true if app inited
+ */
bool furi_hal_bt_init_app();
-/** Start advertising */
+/** Start advertising
+ */
void furi_hal_bt_start_advertising();
-/** Stop advertising */
+/** Stop advertising
+ */
void furi_hal_bt_stop_advertising();
-/** Returns true if BLE is advertising */
+/** Returns true if BLE is advertising
+ *
+ * @return true if BLE advertising
+ */
bool furi_hal_bt_is_active();
-/** Get BT/BLE system component state */
+/** Get BT/BLE system component state
+ *
+ * @param[in] buffer string_t buffer to write to
+ */
void furi_hal_bt_dump_state(string_t buffer);
-/** Get BT/BLE system component state */
+/** Get BT/BLE system component state
+ *
+ * @return true if core2 is alive
+ */
bool furi_hal_bt_is_alive();
-/** Wait for Core2 startup */
+/** Wait for Core2 startup
+ *
+ * @return true if success, otherwise timeouted
+ */
bool furi_hal_bt_wait_startup();
-/**
- * Lock shared access to flash controller
- * @return true if lock was successful, false if not
+/** Lock shared access to flash controller
+ *
+ * @param[in] erase_flag true if erase operation
+ *
+ * @return true if lock was successful, false if not
*/
bool furi_hal_bt_lock_flash(bool erase_flag);
-/** Unlock shared access to flash controller */
+/** Unlock shared access to flash controller
+ *
+ * @param[in] erase_flag true if erase operation
+ */
void furi_hal_bt_unlock_flash(bool erase_flag);
-/** Start ble tone tx at given channel and power */
+/** Start ble tone tx at given channel and power
+ *
+ * @param[in] channel The channel
+ * @param[in] power The power
+ */
void furi_hal_bt_start_tone_tx(uint8_t channel, uint8_t power);
-/** Stop ble tone tx */
+/** Stop ble tone tx
+ */
void furi_hal_bt_stop_tone_tx();
-/** Start sending ble packets at a given frequency and datarate */
+/** Start sending ble packets at a given frequency and datarate
+ *
+ * @param[in] channel The channel
+ * @param[in] pattern The pattern
+ * @param[in] datarate The datarate
+ */
void furi_hal_bt_start_packet_tx(uint8_t channel, uint8_t pattern, uint8_t datarate);
-/** Stop sending ble packets */
+/** Stop sending ble packets
+ *
+ * @return sent packet count
+ */
uint16_t furi_hal_bt_stop_packet_test();
-/** Start receiving packets */
+/** Start receiving packets
+ *
+ * @param[in] channel RX channel
+ * @param[in] datarate Datarate
+ */
void furi_hal_bt_start_packet_rx(uint8_t channel, uint8_t datarate);
-/** Set up the RF to listen to a given RF channel */
+/** Set up the RF to listen to a given RF channel
+ *
+ * @param[in] channel RX channel
+ */
void furi_hal_bt_start_rx(uint8_t channel);
-/** Stop RF listenning */
+/** Stop RF listenning
+ */
void furi_hal_bt_stop_rx();
-/** Get RSSI */
+/** Get RSSI
+ *
+ * @return RSSI in dBm
+ */
float furi_hal_bt_get_rssi();
-/** Get number of transmitted packets */
+/** Get number of transmitted packets
+ *
+ * @return packet count
+ */
uint32_t furi_hal_bt_get_transmitted_packets();
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal-crypto.h b/firmware/targets/furi-hal-include/furi-hal-crypto.h
index 304a3dbe..0428f781 100644
--- a/firmware/targets/furi-hal-include/furi-hal-crypto.h
+++ b/firmware/targets/furi-hal-include/furi-hal-crypto.h
@@ -1,3 +1,7 @@
+/**
+ * @file furi-hal-crypto.h
+ * Cryptography HAL API
+ */
#pragma once
#include <stdbool.h>
@@ -24,43 +28,54 @@ typedef struct {
uint8_t* data;
} FuriHalCryptoKey;
-/** Initialize cryptography layer
- * This includes AES engines, PKA and RNG
+/** Initialize cryptography layer This includes AES engines, PKA and RNG
*/
void furi_hal_crypto_init();
/** Store key in crypto storage
- * @param key - FuriHalCryptoKey to store. Only Master, Simple or Encrypted
- * @param slot - pinter to int where store slot number will be saved
- * @return true on success
+ *
+ * @param key FuriHalCryptoKey to store. Only Master, Simple or
+ * Encrypted
+ * @param slot pinter to int where store slot number will be saved
+ *
+ * @return true on success
*/
bool furi_hal_crypto_store_add_key(FuriHalCryptoKey* key, uint8_t* slot);
/** Init AES engine and load key from crypto store
- * @param slot - store slot number
- * @return true on success
+ *
+ * @param slot store slot number
+ * @param[in] iv pointer to 16 bytes Initialization Vector data
+ *
+ * @return true on success
*/
bool furi_hal_crypto_store_load_key(uint8_t slot, const uint8_t* iv);
/** Unload key engine and deinit AES engine
- * @param slot - store slot number
- * @return true on success
+ *
+ * @param slot store slot number
+ *
+ * @return true on success
*/
bool furi_hal_crypto_store_unload_key(uint8_t slot);
/** Encrypt data
- * @param input - pointer to input data
- * @param output - pointer to output data
- * @param size - input/output buffer size in bytes
- * @return true on success
+ *
+ * @param input pointer to input data
+ * @param output pointer to output data
+ * @param size input/output buffer size in bytes
+ *
+ * @return true on success
*/
bool furi_hal_crypto_encrypt(const uint8_t *input, uint8_t *output, size_t size);
/** Decrypt data
- * @param input - pointer to input data
- * @param output - pointer to output data
- * @param size - input/output buffer size in bytes
- * @return true on success
+ *
+ * @param input pointer to input data
+ * @param output pointer to output data
+ * @param size input/output buffer size in bytes
+ *
+ * @return true on success
*/
bool furi_hal_crypto_decrypt(const uint8_t *input, uint8_t *output, size_t size);
diff --git a/firmware/targets/furi-hal-include/furi-hal-delay.h b/firmware/targets/furi-hal-include/furi-hal-delay.h
index 3ba2836f..7e5c0d7f 100644
--- a/firmware/targets/furi-hal-include/furi-hal-delay.h
+++ b/firmware/targets/furi-hal-include/furi-hal-delay.h
@@ -1,23 +1,39 @@
+/**
+ * @file furi-hal-delay.h
+ * Delay HAL API
+ */
+
#pragma once
+
#include "main.h"
#ifdef __cplusplus
extern "C" {
#endif
-/** Init DWT */
+/** Init DWT
+ */
void furi_hal_delay_init(void);
-/**
- * Delay in milliseconds
- * @warning Cannot be used from ISR
+/** Delay in milliseconds
+ * @warning Cannot be used from ISR
+ *
+ * @param[in] milliseconds milliseconds to wait
*/
void delay(float milliseconds);
-/** Delay in microseconds */
+/** Delay in microseconds
+ *
+ * @param[in] microseconds microseconds to wait
+ */
void delay_us(float microseconds);
-/** Get current millisecond */
+/** Get current millisecond
+ *
+ * System uptime, pProvided by HAL, may overflow.
+ *
+ * @return Current milliseconds
+ */
uint32_t millis(void);
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal-i2c.h b/firmware/targets/furi-hal-include/furi-hal-i2c.h
index 90908c8d..db61aea8 100644
--- a/firmware/targets/furi-hal-include/furi-hal-i2c.h
+++ b/firmware/targets/furi-hal-include/furi-hal-i2c.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-i2c.h
+ * I2C HAL API
+ */
+
#pragma once
#include <stdbool.h>
@@ -8,17 +13,19 @@
extern "C" {
#endif
-/** Init I2C */
+/** Init I2C
+ */
void furi_hal_i2c_init();
-/**
- * Perform I2C tx transfer
- * @param instance I2C_TypeDef instance
- * @param address I2C slave address
- * @param data pointer to data buffer
- * @param size size of data buffer
- * @param timeout timeout in CPU ticks
- * @return true on successful transfer, false otherwise
+/** Perform I2C tx transfer
+ *
+ * @param instance I2C_TypeDef instance
+ * @param address I2C slave address
+ * @param data pointer to data buffer
+ * @param size size of data buffer
+ * @param timeout timeout in CPU ticks
+ *
+ * @return true on successful transfer, false otherwise
*/
bool furi_hal_i2c_tx(
I2C_TypeDef* instance,
@@ -27,14 +34,15 @@ bool furi_hal_i2c_tx(
const uint8_t size,
uint32_t timeout);
-/**
- * Perform I2C rx transfer
- * @param instance I2C_TypeDef instance
- * @param address I2C slave address
- * @param data pointer to data buffer
- * @param size size of data buffer
- * @param timeout timeout in CPU ticks
- * @return true on successful transfer, false otherwise
+/** Perform I2C rx transfer
+ *
+ * @param instance I2C_TypeDef instance
+ * @param address I2C slave address
+ * @param data pointer to data buffer
+ * @param size size of data buffer
+ * @param timeout timeout in CPU ticks
+ *
+ * @return true on successful transfer, false otherwise
*/
bool furi_hal_i2c_rx(
I2C_TypeDef* instance,
@@ -43,16 +51,17 @@ bool furi_hal_i2c_rx(
const uint8_t size,
uint32_t timeout);
-/**
- * Perform I2C tx and rx transfers
- * @param instance I2C_TypeDef instance
- * @param address I2C slave address
- * @param tx_data pointer to tx data buffer
- * @param tx_size size of tx data buffer
- * @param rx_data pointer to rx data buffer
- * @param rx_size size of rx data buffer
- * @param timeout timeout in CPU ticks
- * @return true on successful transfer, false otherwise
+/** Perform I2C tx and rx transfers
+ *
+ * @param instance I2C_TypeDef instance
+ * @param address I2C slave address
+ * @param tx_data pointer to tx data buffer
+ * @param tx_size size of tx data buffer
+ * @param rx_data pointer to rx data buffer
+ * @param rx_size size of rx data buffer
+ * @param timeout timeout in CPU ticks
+ *
+ * @return true on successful transfer, false otherwise
*/
bool furi_hal_i2c_trx(
I2C_TypeDef* instance,
@@ -63,17 +72,22 @@ bool furi_hal_i2c_trx(
const uint8_t rx_size,
uint32_t timeout);
-/** Acquire I2C mutex */
+/** Acquire I2C mutex
+ */
void furi_hal_i2c_lock();
-/** Release I2C mutex */
+/** Release I2C mutex
+ */
void furi_hal_i2c_unlock();
-/**
- * With clause for I2C peripheral
- * @param type type of function_body
- * @param pointer pointer to return of function_body
- * @param function_body a (){} lambda declaration, executed with I2C mutex acquired
+/** With clause for I2C peripheral
+ *
+ * @param type type of function_body
+ * @param pointer pointer to return of function_body
+ * @param function_body a (){} lambda declaration, executed with I2C mutex
+ * acquired
+ *
+ * @return Nothing
*/
#define with_furi_hal_i2c(type, pointer, function_body) \
{ \
diff --git a/firmware/targets/furi-hal-include/furi-hal-ibutton.h b/firmware/targets/furi-hal-include/furi-hal-ibutton.h
index e31af720..d1158121 100644
--- a/firmware/targets/furi-hal-include/furi-hal-ibutton.h
+++ b/firmware/targets/furi-hal-include/furi-hal-ibutton.h
@@ -1,4 +1,10 @@
+/**
+ * @file furi-hal-ibutton.h
+ * iButton HAL API
+ */
+
#pragma once
+
#include <stdbool.h>
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal-irda.h b/firmware/targets/furi-hal-include/furi-hal-irda.h
index 260180d2..00db4b34 100644
--- a/firmware/targets/furi-hal-include/furi-hal-irda.h
+++ b/firmware/targets/furi-hal-include/furi-hal-irda.h
@@ -1,4 +1,10 @@
+/**
+ * @file furi-hal-irda.h
+ * IRDA HAL API
+ */
+
#pragma once
+
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
@@ -11,122 +17,120 @@ extern "C" {
#define IRDA_MIN_FREQUENCY 10000
typedef enum {
- FuriHalIrdaTxGetDataStateOk, /* New data obtained */
- FuriHalIrdaTxGetDataStateDone, /* New data obtained, and this is end of package */
- FuriHalIrdaTxGetDataStateLastDone, /* New data obtained, and this is end of package and no more data available */
+ FuriHalIrdaTxGetDataStateOk, /**< New data obtained */
+ FuriHalIrdaTxGetDataStateDone, /**< New data obtained, and this is end of package */
+ FuriHalIrdaTxGetDataStateLastDone, /**< New data obtained, and this is end of package and no more data available */
} FuriHalIrdaTxGetDataState;
-/* Callback type for providing data to IRDA DMA TX system. It is called every tim */
+/** Callback type for providing data to IRDA DMA TX system. It is called every tim */
typedef FuriHalIrdaTxGetDataState (*FuriHalIrdaTxGetDataISRCallback) (void* context, uint32_t* duration, bool* level);
-/* Callback type called every time signal is sent by DMA to Timer.
- * Actually, it means there are 2 timings left to send for this signal, which is almost end.
- * Don't use this callback to stop transmission, as far as there are next signal is
- * charged for transmission by DMA.
+/** Callback type called every time signal is sent by DMA to Timer.
+ *
+ * Actually, it means there are 2 timings left to send for this signal, which is
+ * almost end. Don't use this callback to stop transmission, as far as there are
+ * next signal is charged for transmission by DMA.
*/
typedef void (*FuriHalIrdaTxSignalSentISRCallback) (void* context);
-/**
- * Signature of callback function for receiving continuous IRDA rx signal.
+/** Signature of callback function for receiving continuous IRDA rx signal.
*
- * @param ctx[in] - context to pass to callback
- * @param level[in] - level of input IRDA rx signal
- * @param duration[in] - duration of continuous rx signal level in us
+ * @param ctx[in] context to pass to callback
+ * @param level[in] level of input IRDA rx signal
+ * @param duration[in] duration of continuous rx signal level in us
*/
typedef void (*FuriHalIrdaRxCaptureCallback)(void* ctx, bool level, uint32_t duration);
-/**
- * Signature of callback function for reaching silence timeout on IRDA port.
+/** Signature of callback function for reaching silence timeout on IRDA port.
*
- * @param ctx[in] - context to pass to callback
+ * @param ctx[in] context to pass to callback
*/
typedef void (*FuriHalIrdaRxTimeoutCallback)(void* ctx);
-/**
- * Initialize IRDA RX timer to receive interrupts.
- * It provides interrupts for every RX-signal edge changing
- * with its duration.
+/** Initialize IRDA RX timer to receive interrupts.
+ *
+ * It provides interrupts for every RX-signal edge changing with its duration.
*/
void furi_hal_irda_async_rx_start(void);
-/**
- * Deinitialize IRDA RX interrupt.
+/** Deinitialize IRDA RX interrupt.
*/
void furi_hal_irda_async_rx_stop(void);
/** Setup hal for receiving silence timeout.
+ *
* Should be used with 'furi_hal_irda_timeout_irq_set_callback()'.
*
- * @param[in] timeout_us - time to wait for silence on IRDA port
- * before generating IRQ.
+ * @param[in] timeout_us time to wait for silence on IRDA port before
+ * generating IRQ.
*/
void furi_hal_irda_async_rx_set_timeout(uint32_t timeout_us);
/** Setup callback for previously initialized IRDA RX interrupt.
*
- * @param[in] callback - callback to call when RX signal edge changing occurs
- * @param[in] ctx - context for callback
+ * @param[in] callback callback to call when RX signal edge changing occurs
+ * @param[in] ctx context for callback
*/
void furi_hal_irda_async_rx_set_capture_isr_callback(FuriHalIrdaRxCaptureCallback callback, void *ctx);
-/**
- * Setup callback for reaching silence timeout on IRDA port.
+/** Setup callback for reaching silence timeout on IRDA port.
+ *
* Should setup hal with 'furi_hal_irda_setup_rx_timeout_irq()' first.
*
- * @param[in] callback - callback for silence timeout
- * @param[in] ctx - context to pass to callback
+ * @param[in] callback callback for silence timeout
+ * @param[in] ctx context to pass to callback
*/
void furi_hal_irda_async_rx_set_timeout_isr_callback(FuriHalIrdaRxTimeoutCallback callback, void *ctx);
-/**
- * Check if IRDA is in use now.
- * @return true - IRDA is busy, false otherwise.
+/** Check if IRDA is in use now.
+ *
+ * @return true if IRDA is busy, false otherwise.
*/
bool furi_hal_irda_is_busy(void);
-/**
- * Set callback providing new data. This function has to be called
- * before furi_hal_irda_async_tx_start().
+/** Set callback providing new data.
+ *
+ * This function has to be called before furi_hal_irda_async_tx_start().
*
- * @param[in] callback - function to provide new data
- * @param[in] context - context for callback
+ * @param[in] callback function to provide new data
+ * @param[in] context context for callback
*/
void furi_hal_irda_async_tx_set_data_isr_callback(FuriHalIrdaTxGetDataISRCallback callback, void* context);
-/**
- * Start IR asynchronous transmission. It can be stopped by 2 reasons:
- * 1) implicit call for furi_hal_irda_async_tx_stop()
- * 2) callback can provide FuriHalIrdaTxGetDataStateLastDone response
- * which means no more data available for transmission.
+/** Start IR asynchronous transmission.
+ *
+ * It can be stopped by 2 reasons:
+ * 1. implicit call for furi_hal_irda_async_tx_stop()
+ * 2. callback can provide FuriHalIrdaTxGetDataStateLastDone response which
+ * means no more data available for transmission.
*
* Any func (furi_hal_irda_async_tx_stop() or
- * furi_hal_irda_async_tx_wait_termination()) has to be called to wait
- * end of transmission and free resources.
+ * furi_hal_irda_async_tx_wait_termination()) has to be called to wait end of
+ * transmission and free resources.
*
- * @param[in] freq - frequency for PWM
- * @param[in] duty_cycle - duty cycle for PWM
+ * @param[in] freq frequency for PWM
+ * @param[in] duty_cycle duty cycle for PWM
*/
void furi_hal_irda_async_tx_start(uint32_t freq, float duty_cycle);
-/**
- * Stop IR asynchronous transmission and free resources.
- * Transmission will stop as soon as transmission reaches end of
- * package (FuriHalIrdaTxGetDataStateDone or FuriHalIrdaTxGetDataStateLastDone).
+/** Stop IR asynchronous transmission and free resources.
+ *
+ * Transmission will stop as soon as transmission reaches end of package
+ * (FuriHalIrdaTxGetDataStateDone or FuriHalIrdaTxGetDataStateLastDone).
*/
void furi_hal_irda_async_tx_stop(void);
-/**
- * Wait for end of IR asynchronous transmission and free resources.
- * Transmission will stop as soon as transmission reaches end of
- * transmission (FuriHalIrdaTxGetDataStateLastDone).
+/** Wait for end of IR asynchronous transmission and free resources.
+ *
+ * Transmission will stop as soon as transmission reaches end of transmission
+ * (FuriHalIrdaTxGetDataStateLastDone).
*/
void furi_hal_irda_async_tx_wait_termination(void);
-/**
- * Set callback for end of signal transmission
+/** Set callback for end of signal transmission
*
- * @param[in] callback - function to call when signal is sent
- * @param[in] context - context for callback
+ * @param[in] callback function to call when signal is sent
+ * @param[in] context context for callback
*/
void furi_hal_irda_async_tx_set_signal_sent_isr_callback(FuriHalIrdaTxSignalSentISRCallback callback, void* context);
diff --git a/firmware/targets/furi-hal-include/furi-hal-light.h b/firmware/targets/furi-hal-include/furi-hal-light.h
index 6b699850..741ba423 100644
--- a/firmware/targets/furi-hal-include/furi-hal-light.h
+++ b/firmware/targets/furi-hal-include/furi-hal-light.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-light.h
+ * Light control HAL API
+ */
+
#pragma once
#include <stdbool.h>
@@ -8,13 +13,14 @@
extern "C" {
#endif
-/** Init light driver */
+/** Init light driver
+ */
void furi_hal_light_init();
-/**
- * Set light value
- * @param light - Light
- * @param value - light brightness [0-255]
+/** Set light value
+ *
+ * @param light Light
+ * @param value light brightness [0-255]
*/
void furi_hal_light_set(Light light, uint8_t value);
diff --git a/firmware/targets/furi-hal-include/furi-hal-nfc.h b/firmware/targets/furi-hal-include/furi-hal-nfc.h
index 1ef9063d..c05b4df9 100644
--- a/firmware/targets/furi-hal-include/furi-hal-nfc.h
+++ b/firmware/targets/furi-hal-include/furi-hal-nfc.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-nfc.h
+ * NFC HAL API
+ */
+
#pragma once
#include <rfal_nfc.h>
@@ -11,58 +16,78 @@ extern "C" {
#define FURI_HAL_NFC_UID_MAX_LEN 10
-/**
- * Init nfc
+/** Init nfc
*/
void furi_hal_nfc_init();
-/**
- * Check if nfc worker is busy
+/** Check if nfc worker is busy
+ *
+ * @return true if busy
*/
bool furi_hal_nfc_is_busy();
-/**
- * NFC field on
+/** NFC field on
*/
void furi_hal_nfc_field_on();
-/**
- * NFC field off
+/** NFC field off
*/
void furi_hal_nfc_field_off();
-/**
- * NFC start sleep
+/** NFC start sleep
*/
void furi_hal_nfc_start_sleep();
-/**
- * NFC stop sleep
+/** NFC stop sleep
*/
void furi_hal_nfc_exit_sleep();
-/**
- * NFC poll
+/** NFC poll
+ *
+ * @param dev_list pointer to rfalNfcDevice buffer
+ * @param dev_cnt pointer device count
+ * @param timeout timeout in ms
+ * @param deactivate deactivate flag
+ *
+ * @return true on success
*/
bool furi_hal_nfc_detect(rfalNfcDevice** dev_list, uint8_t* dev_cnt, uint32_t timeout, bool deactivate);
-/**
- * NFC listen
+/** NFC listen
+ *
+ * @param uid pointer to uid buffer
+ * @param uid_len uid length
+ * @param atqa pointer to atqa
+ * @param sak sak
+ * @param activate_after_sak activate after sak flag
+ * @param timeout timeout in ms
+ *
+ * @return true on success
*/
bool furi_hal_nfc_listen(uint8_t* uid, uint8_t uid_len, uint8_t* atqa, uint8_t sak, bool activate_after_sak, uint32_t timeout);
-/**
- * Get first command from reader after activation in emulation mode
+/** Get first command from reader after activation in emulation mode
+ *
+ * @param rx_buff pointer to receive buffer
+ * @param rx_len receive buffer length
+ *
+ * @return true on success
*/
bool furi_hal_nfc_get_first_frame(uint8_t** rx_buff, uint16_t** rx_len);
-/**
- * NFC data exchange
+/** NFC data exchange
+ *
+ * @param tx_buff transmit buffer
+ * @param tx_len transmit buffer length
+ * @param rx_buff receive buffer
+ * @param rx_len receive buffer length
+ * @param deactivate deactivate flag
+ *
+ * @return ST ReturnCode
*/
ReturnCode furi_hal_nfc_data_exchange(uint8_t* tx_buff, uint16_t tx_len, uint8_t** rx_buff, uint16_t** rx_len, bool deactivate);
-/**
- * NFC deactivate and start sleep
+/** NFC deactivate and start sleep
*/
void furi_hal_nfc_deactivate();
diff --git a/firmware/targets/furi-hal-include/furi-hal-power.h b/firmware/targets/furi-hal-include/furi-hal-power.h
index 3514e8d6..8bbdcfed 100644
--- a/firmware/targets/furi-hal-include/furi-hal-power.h
+++ b/firmware/targets/furi-hal-include/furi-hal-power.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-power.h
+ * Power HAL API
+ */
+
#pragma once
#include <stdint.h>
@@ -14,92 +19,142 @@ typedef enum {
FuriHalPowerICFuelGauge,
} FuriHalPowerIC;
-/** Initialize drivers */
+/** Initialize drivers
+ */
void furi_hal_power_init();
-/**
- * Get current insomnia level
- * @return insomnia level: 0 - no insomnia, >0 - insomnia, bearer count.
+/** Get current insomnia level
+ *
+ * @return insomnia level: 0 - no insomnia, >0 - insomnia, bearer count.
*/
uint16_t furi_hal_power_insomnia_level();
-/**
- * Enter insomnia mode
- * Prevents device from going to sleep
- * @warning Internally increases insomnia level
- * Must be paired with furi_hal_power_insomnia_exit
+/** Enter insomnia mode Prevents device from going to sleep
+ * @warning Internally increases insomnia level Must be paired with
+ * furi_hal_power_insomnia_exit
*/
void furi_hal_power_insomnia_enter();
-/**
- * Exit insomnia mode
- * Allow device to go to sleep
- * @warning Internally decreases insomnia level.
- * Must be paired with furi_hal_power_insomnia_enter
+/** Exit insomnia mode Allow device to go to sleep
+ * @warning Internally decreases insomnia level. Must be paired with
+ * furi_hal_power_insomnia_enter
*/
void furi_hal_power_insomnia_exit();
-/** Check if sleep availble */
+/** Check if sleep availble
+ *
+ * @return true if available
+ */
bool furi_hal_power_sleep_available();
-/** Check if deep sleep availble */
+/** Check if deep sleep availble
+ *
+ * @return true if available
+ */
bool furi_hal_power_deep_sleep_available();
-/** Go to sleep */
+/** Go to sleep
+ */
void furi_hal_power_sleep();
-/** Get predicted remaining battery capacity in percents */
+/** Get predicted remaining battery capacity in percents
+ *
+ * @return remaining battery capacity in percents
+ */
uint8_t furi_hal_power_get_pct();
-/** Get battery health state in percents */
+/** Get battery health state in percents
+ *
+ * @return health in percents
+ */
uint8_t furi_hal_power_get_bat_health_pct();
-/** Get charging status */
+/** Get charging status
+ *
+ * @return true if charging
+ */
bool furi_hal_power_is_charging();
-/** Poweroff device */
+/** Poweroff device
+ */
void furi_hal_power_off();
-/** Reset device */
+/** Reset device
+ */
void furi_hal_power_reset();
-/** OTG enable */
+/** OTG enable
+ */
void furi_hal_power_enable_otg();
-/** OTG disable */
+/** OTG disable
+ */
void furi_hal_power_disable_otg();
-/** Get OTG status */
+/** Get OTG status
+ *
+ * @return true if enabled
+ */
bool furi_hal_power_is_otg_enabled();
-/** Get remaining battery battery capacity in mAh */
+/** Get remaining battery battery capacity in mAh
+ *
+ * @return capacity in mAh
+ */
uint32_t furi_hal_power_get_battery_remaining_capacity();
-/** Get full charge battery capacity in mAh */
+/** Get full charge battery capacity in mAh
+ *
+ * @return capacity in mAh
+ */
uint32_t furi_hal_power_get_battery_full_capacity();
-/** Get battery voltage in V */
+/** Get battery voltage in V
+ *
+ * @param ic FuriHalPowerIc to get measurment
+ *
+ * @return voltage in V
+ */
float furi_hal_power_get_battery_voltage(FuriHalPowerIC ic);
-/** Get battery current in A */
+/** Get battery current in A
+ *
+ * @param ic FuriHalPowerIc to get measurment
+ *
+ * @return current in A
+ */
float furi_hal_power_get_battery_current(FuriHalPowerIC ic);
-/** Get temperature in C */
+/** Get temperature in C
+ *
+ * @param ic FuriHalPowerIc to get measurment
+ *
+ * @return temperature in C
+ */
float furi_hal_power_get_battery_temperature(FuriHalPowerIC ic);
-/** Get System voltage in V */
+/** Get System voltage in V
+ *
+ * @return voltage in V
+ */
float furi_hal_power_get_system_voltage();
-/** Get USB voltage in V */
+/** Get USB voltage in V
+ *
+ * @return voltage in V
+ */
float furi_hal_power_get_usb_voltage();
-/** Get power system component state */
+/** Get power system component state
+ */
void furi_hal_power_dump_state();
-/** Enable 3.3v on external gpio and sd card */
+/** Enable 3.3v on external gpio and sd card
+ */
void furi_hal_power_enable_external_3_3v();
-/** Disable 3.3v on external gpio and sd card */
+/** Disable 3.3v on external gpio and sd card
+ */
void furi_hal_power_disable_external_3_3v();
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal-rfid.h b/firmware/targets/furi-hal-include/furi-hal-rfid.h
index 8c76d66d..5e11c6d6 100644
--- a/firmware/targets/furi-hal-include/furi-hal-rfid.h
+++ b/firmware/targets/furi-hal-include/furi-hal-rfid.h
@@ -1,4 +1,10 @@
+/**
+ * @file furi-hal-rfid.h
+ * RFID HAL API
+ */
+
#pragma once
+
#include <stdint.h>
#include <stdbool.h>
#include <main.h>
@@ -7,111 +13,91 @@
extern "C" {
#endif
-/** Initialize RFID subsystem */
+/** Initialize RFID subsystem
+ */
void furi_hal_rfid_init();
-/**
- * @brief config rfid pins to reset state
- *
+/** Config rfid pins to reset state
*/
void furi_hal_rfid_pins_reset();
-/**
- * @brief config rfid pins to emulate state
- *
+/** Config rfid pins to emulate state
*/
void furi_hal_rfid_pins_emulate();
-/**
- * @brief config rfid pins to read state
- *
+/** Config rfid pins to read state
*/
void furi_hal_rfid_pins_read();
-/**
- * @brief config rfid timer to read state
- *
- * @param freq timer frequency
- * @param duty_cycle timer duty cycle, 0.0-1.0
+/** Config rfid timer to read state
+ *
+ * @param freq timer frequency
+ * @param duty_cycle timer duty cycle, 0.0-1.0
*/
void furi_hal_rfid_tim_read(float freq, float duty_cycle);
-/**
- * @brief start read timer
- *
+/** Start read timer
*/
void furi_hal_rfid_tim_read_start();
-/**
- * @brief stop read timer
- *
+/** Stop read timer
*/
void furi_hal_rfid_tim_read_stop();
-/**
- * @brief config rfid timer to emulate state
- *
- * @param freq timer frequency
+/** Config rfid timer to emulate state
+ *
+ * @param freq timer frequency
*/
void furi_hal_rfid_tim_emulate(float freq);
-/**
- * @brief start emulation timer
- *
+/** Start emulation timer
*/
void furi_hal_rfid_tim_emulate_start();
-/**
- * @brief stop emulation timer
- *
+/** Stop emulation timer
*/
void furi_hal_rfid_tim_emulate_stop();
-/**
- * @brief config rfid timers to reset state
- *
+/** Config rfid timers to reset state
*/
void furi_hal_rfid_tim_reset();
-/**
- * @brief check that timer instance is emulation timer
- *
- * @param hw timer instance
+/** Check that timer instance is emulation timer
+ *
+ * @param hw timer instance
+ *
+ * @return true if instance is emulation timer
*/
bool furi_hal_rfid_is_tim_emulate(TIM_HandleTypeDef* hw);
-/**
- * @brief set emulation timer period
- *
- * @param period overall duration
+/** Set emulation timer period
+ *
+ * @param period overall duration
*/
void furi_hal_rfid_set_emulate_period(uint32_t period);
-/**
- * @brief set emulation timer pulse
- *
- * @param pulse duration of high level
+/** Set emulation timer pulse
+ *
+ * @param pulse duration of high level
*/
void furi_hal_rfid_set_emulate_pulse(uint32_t pulse);
-/**
- * @brief set read timer period
- *
- * @param period overall duration
+/** Set read timer period
+ *
+ * @param period overall duration
*/
void furi_hal_rfid_set_read_period(uint32_t period);
-/**
- * @brief set read timer pulse
- *
- * @param pulse duration of high level
+/** Set read timer pulse
+ *
+ * @param pulse duration of high level
*/
void furi_hal_rfid_set_read_pulse(uint32_t pulse);
-/**
- * Сhanges the configuration of the RFID timer "on a fly"
- * @param freq new frequency
- * @param duty_cycle new duty cycle
+/** Сhanges the configuration of the RFID timer "on a fly"
+ *
+ * @param freq new frequency
+ * @param duty_cycle new duty cycle
*/
void furi_hal_rfid_change_read_config(float freq, float duty_cycle);
diff --git a/firmware/targets/furi-hal-include/furi-hal-sd.h b/firmware/targets/furi-hal-include/furi-hal-sd.h
index ab67022b..212ec3ee 100644
--- a/firmware/targets/furi-hal-include/furi-hal-sd.h
+++ b/firmware/targets/furi-hal-include/furi-hal-sd.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-sd.h
+ * SD Card HAL API
+ */
+
#include <stdint.h>
#include <stdbool.h>
@@ -5,19 +10,20 @@
extern "C" {
#endif
-/** Init SD card detect */
+/** Init SD card detect
+ */
void hal_sd_detect_init(void);
-/** Set SD card detect pin to low */
+/** Set SD card detect pin to low
+ */
void hal_sd_detect_set_low(void);
-/**
- * Get SD card status
- * @return true if SD card present
- * @return false if SD card not present
+/** Get SD card status
+ *
+ * @return true if SD card present, false if SD card not present
*/
bool hal_sd_detect(void);
#ifdef __cplusplus
}
-#endif \ No newline at end of file
+#endif
diff --git a/firmware/targets/furi-hal-include/furi-hal-subghz.h b/firmware/targets/furi-hal-include/furi-hal-subghz.h
index 38aa65da..334cfd78 100644
--- a/firmware/targets/furi-hal-include/furi-hal-subghz.h
+++ b/firmware/targets/furi-hal-include/furi-hal-subghz.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-subghz.h
+ * SubGhz HAL API
+ */
+
#pragma once
#include <stdbool.h>
@@ -11,130 +16,148 @@ extern "C" {
/** Radio Presets */
typedef enum {
- FuriHalSubGhzPresetOok270Async, /** OOK, bandwidth 270kHz, asynchronous */
- FuriHalSubGhzPresetOok650Async, /** OOK, bandwidth 650kHz, asynchronous */
- FuriHalSubGhzPreset2FSKAsync, /** FM, asynchronous */
+ FuriHalSubGhzPresetOok270Async, /**< OOK, bandwidth 270kHz, asynchronous */
+ FuriHalSubGhzPresetOok650Async, /**< OOK, bandwidth 650kHz, asynchronous */
+ FuriHalSubGhzPreset2FSKAsync, /**< FM, asynchronous */
} FuriHalSubGhzPreset;
-/** Switchable Radio Paths */
+/** Switchable Radio Paths */
typedef enum {
- FuriHalSubGhzPathIsolate, /** Isolate Radio from antenna */
- FuriHalSubGhzPath433, /** Center Frquency: 433MHz. Path 1: SW1RF1-SW2RF2, LCLCL */
- FuriHalSubGhzPath315, /** Center Frquency: 315MHz. Path 2: SW1RF2-SW2RF1, LCLCLCL */
- FuriHalSubGhzPath868, /** Center Frquency: 868MHz. Path 3: SW1RF3-SW2RF3, LCLC */
+ FuriHalSubGhzPathIsolate, /**< Isolate Radio from antenna */
+ FuriHalSubGhzPath433, /**< Center Frquency: 433MHz. Path 1: SW1RF1-SW2RF2, LCLCL */
+ FuriHalSubGhzPath315, /**< Center Frquency: 315MHz. Path 2: SW1RF2-SW2RF1, LCLCLCL */
+ FuriHalSubGhzPath868, /**< Center Frquency: 868MHz. Path 3: SW1RF3-SW2RF3, LCLC */
} FuriHalSubGhzPath;
/** SubGhz state */
typedef enum {
- SubGhzStateInit, /** Init pending */
+ SubGhzStateInit, /**< Init pending */
- SubGhzStateIdle, /** Idle, energy save mode */
+ SubGhzStateIdle, /**< Idle, energy save mode */
- SubGhzStateAsyncRx, /** Async RX started */
+ SubGhzStateAsyncRx, /**< Async RX started */
- SubGhzStateAsyncTx, /** Async TX started, DMA and timer is on */
- SubGhzStateAsyncTxLast, /** Async TX continue, DMA completed and timer got last value to go */
- SubGhzStateAsyncTxEnd, /** Async TX complete, cleanup needed */
+ SubGhzStateAsyncTx, /**< Async TX started, DMA and timer is on */
+ SubGhzStateAsyncTxLast, /**< Async TX continue, DMA completed and timer got last value to go */
+ SubGhzStateAsyncTxEnd, /**< Async TX complete, cleanup needed */
} SubGhzState;
-/** SubGhz regulation, receive transmission on the current frequency for the region */
+/** SubGhz regulation, receive transmission on the current frequency for the
+ * region */
typedef enum {
SubGhzRegulationOnlyRx, /**only Rx*/
SubGhzRegulationTxRx, /**TxRx*/
} SubGhzRegulation;
-/** Initialize and switch to power save mode
- * Used by internal API-HAL initalization routine
- * Can be used to reinitialize device to safe state and send it to sleep
+/** Initialize and switch to power save mode Used by internal API-HAL
+ * initalization routine Can be used to reinitialize device to safe state and
+ * send it to sleep
*/
void furi_hal_subghz_init();
-/** Send device to sleep mode */
+/** Send device to sleep mode
+ */
void furi_hal_subghz_sleep();
-/** Dump info to stdout */
+/** Dump info to stdout
+ */
void furi_hal_subghz_dump_state();
-/** Load registers from preset by preset name
- * @param preset to load
+/** Load registers from preset by preset name
+ *
+ * @param preset to load
*/
void furi_hal_subghz_load_preset(FuriHalSubGhzPreset preset);
-/** Get status */
-uint8_t furi_hal_subghz_get_status();
-
/** Load registers
- * @param register-value pairs array, terminated with {0,0}
+ *
+ * @param data Registers data
*/
void furi_hal_subghz_load_registers(const uint8_t data[][2]);
/** Load PATABLE
- * @param data, 8 uint8_t values
+ *
+ * @param data 8 uint8_t values
*/
void furi_hal_subghz_load_patable(const uint8_t data[8]);
/** Write packet to FIFO
- * @param data, bytes array
- * @param size, size
+ *
+ * @param data bytes array
+ * @param size size
*/
void furi_hal_subghz_write_packet(const uint8_t* data, uint8_t size);
/** Read packet from FIFO
- * @param data, pointer
- * @param size, size
+ *
+ * @param data pointer
+ * @param size size
*/
void furi_hal_subghz_read_packet(uint8_t* data, uint8_t* size);
-/** Flush rx FIFO buffer */
+/** Flush rx FIFO buffer
+ */
void furi_hal_subghz_flush_rx();
-/** Shutdown
- * Issue spwd command
- * @warning registers content will be lost
+/** Shutdown Issue spwd command
+ * @warning registers content will be lost
*/
void furi_hal_subghz_shutdown();
-/** Reset
- * Issue reset command
- * @warning registers content will be lost
+/** Reset Issue reset command
+ * @warning registers content will be lost
*/
void furi_hal_subghz_reset();
-/** Switch to Idle */
+/** Switch to Idle
+ */
void furi_hal_subghz_idle();
-/** Switch to Recieve */
+/** Switch to Recieve
+ */
void furi_hal_subghz_rx();
/** Switch to Transmit
-* @return true if the transfer is allowed by belonging to the region
-*/
+ *
+ * @return true if the transfer is allowed by belonging to the region
+ */
bool furi_hal_subghz_tx();
-/** Get RSSI value in dBm */
+/** Get RSSI value in dBm
+ *
+ * @return RSSI value
+ */
float furi_hal_subghz_get_rssi();
/** Check if frequency is in valid range
- * @return true if frequncy is valid, otherwise false
+ *
+ * @param value frequency in Hz
+ *
+ * @return true if frequncy is valid, otherwise false
*/
bool furi_hal_subghz_is_frequency_valid(uint32_t value);
-/** Set frequency and path
- * This function automatically selects antenna matching network
- * @param frequency in herz
- * @return real frequency in herz
+/** Set frequency and path This function automatically selects antenna matching
+ * network
+ *
+ * @param value frequency in Hz
+ *
+ * @return real frequency in herz
*/
uint32_t furi_hal_subghz_set_frequency_and_path(uint32_t value);
/** Set frequency
- * @param frequency in herz
- * @return real frequency in herz
+ *
+ * @param value frequency in Hz
+ *
+ * @return real frequency in herz
*/
uint32_t furi_hal_subghz_set_frequency(uint32_t value);
/** Set path
- * @param radio path to use
+ *
+ * @param path path to use
*/
void furi_hal_subghz_set_path(FuriHalSubGhzPath path);
@@ -143,33 +166,39 @@ void furi_hal_subghz_set_path(FuriHalSubGhzPath path);
/** Signal Timings Capture callback */
typedef void (*FuriHalSubGhzCaptureCallback)(bool level, uint32_t duration, void* context);
-/** Enable signal timings capture
- * Initializes GPIO and TIM2 for timings capture
+/** Enable signal timings capture Initializes GPIO and TIM2 for timings capture
+ *
+ * @param callback FuriHalSubGhzCaptureCallback
+ * @param context callback context
*/
void furi_hal_subghz_start_async_rx(FuriHalSubGhzCaptureCallback callback, void* context);
-/** Disable signal timings capture
- * Resets GPIO and TIM2
+/** Disable signal timings capture Resets GPIO and TIM2
*/
void furi_hal_subghz_stop_async_rx();
/** Async TX callback type
- * @param context - callback context
- * @return LevelDuration
+ * @param context callback context
+ * @return LevelDuration
*/
typedef LevelDuration (*FuriHalSubGhzAsyncTxCallback)(void* context);
-/** Start async TX
- * Initializes GPIO, TIM2 and DMA1 for signal output
- * @return true if the transfer is allowed by belonging to the region
+/** Start async TX Initializes GPIO, TIM2 and DMA1 for signal output
+ *
+ * @param callback FuriHalSubGhzAsyncTxCallback
+ * @param context callback context
+ *
+ * @return true if the transfer is allowed by belonging to the region
*/
bool furi_hal_subghz_start_async_tx(FuriHalSubGhzAsyncTxCallback callback, void* context);
-/** Wait for async transmission to complete */
+/** Wait for async transmission to complete
+ *
+ * @return true if TX complete
+ */
bool furi_hal_subghz_is_async_tx_complete();
-/** Stop async transmission and cleanup resources
- * Resets GPIO, TIM2, and DMA1
+/** Stop async transmission and cleanup resources Resets GPIO, TIM2, and DMA1
*/
void furi_hal_subghz_stop_async_tx();
diff --git a/firmware/targets/furi-hal-include/furi-hal-vcp.h b/firmware/targets/furi-hal-include/furi-hal-vcp.h
index 1312b20c..7d4803ae 100644
--- a/firmware/targets/furi-hal-include/furi-hal-vcp.h
+++ b/firmware/targets/furi-hal-include/furi-hal-vcp.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-vcp.h
+ * VCP HAL API
+ */
+
#pragma once
#include <stdbool.h>
@@ -8,35 +13,34 @@
extern "C" {
#endif
-/**
- * Init VCP HAL
- * Allocates ring buffer and initializes state
+/** Init VCP HAL Allocates ring buffer and initializes state
*/
void furi_hal_vcp_init();
-/**
- * Recieve data from VCP
- * Waits till some data arrives, never returns 0
- * @param buffer - pointer to buffer
- * @param size - buffer size
- * @return items copied in buffer, 0 if channel closed
+/** Recieve data from VCP Waits till some data arrives, never returns 0
+ *
+ * @param buffer pointer to buffer
+ * @param size buffer size
+ *
+ * @return items copied in buffer, 0 if channel closed
*/
size_t furi_hal_vcp_rx(uint8_t* buffer, size_t size);
-/**
- * Recieve data from VCP with timeout
- * Waits till some data arrives during timeout
- * @param buffer - pointer to buffer
- * @param size - buffer size
- * @param timeout - rx timeout in ms
- * @return items copied in buffer, 0 if channel closed or timeout occurs
+/** Recieve data from VCP with timeout Waits till some data arrives during
+ * timeout
+ *
+ * @param buffer pointer to buffer
+ * @param size buffer size
+ * @param timeout rx timeout in ms
+ *
+ * @return items copied in buffer, 0 if channel closed or timeout occurs
*/
size_t furi_hal_vcp_rx_with_timeout(uint8_t* buffer, size_t size, uint32_t timeout);
-/**
- * Transmit data to VCP
- * @param buffer - pointer to buffer
- * @param size - buffer size
+/** Transmit data to VCP
+ *
+ * @param buffer pointer to buffer
+ * @param size buffer size
*/
void furi_hal_vcp_tx(const uint8_t* buffer, size_t size);
diff --git a/firmware/targets/furi-hal-include/furi-hal-version.h b/firmware/targets/furi-hal-include/furi-hal-version.h
index 1cd702fc..12b2e63c 100644
--- a/firmware/targets/furi-hal-include/furi-hal-version.h
+++ b/firmware/targets/furi-hal-include/furi-hal-version.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-version.h
+ * Version HAL API
+ */
+
#pragma once
#include <stdbool.h>
@@ -24,65 +29,110 @@ typedef enum {
FuriHalVersionRegionJp=0x03,
} FuriHalVersionRegion;
-/** Init flipper version */
+/** Init flipper version
+ */
void furi_hal_version_init();
-/** Check target firmware version */
+/** Check target firmware version
+ *
+ * @return true if target and real matches
+ */
bool furi_hal_version_do_i_belong_here();
-/** Get model name */
+/** Get model name
+ *
+ * @return model name C-string
+ */
const char* furi_hal_version_get_model_name();
-/** Get hardware version */
+/** Get hardware version
+ *
+ * @return Hardware Version
+ */
const uint8_t furi_hal_version_get_hw_version();
-/** Get hardware target */
+/** Get hardware target
+ *
+ * @return Hardware Target
+ */
const uint8_t furi_hal_version_get_hw_target();
-/** Get hardware body */
+/** Get hardware body
+ *
+ * @return Hardware Body
+ */
const uint8_t furi_hal_version_get_hw_body();
-/** Get hardware body color */
+/** Get hardware body color
+ *
+ * @return Hardware Color
+ */
const FuriHalVersionColor furi_hal_version_get_hw_color();
-/** Get hardware connect */
+/** Get hardware connect
+ *
+ * @return Hardware Interconnect
+ */
const uint8_t furi_hal_version_get_hw_connect();
-/** Get hardware region */
+/** Get hardware region
+ *
+ * @return Hardware Region
+ */
const FuriHalVersionRegion furi_hal_version_get_hw_region();
-/** Get hardware timestamp */
+/** Get hardware timestamp
+ *
+ * @return Hardware Manufacture timestamp
+ */
const uint32_t furi_hal_version_get_hw_timestamp();
-/** Get pointer to target name */
+/** Get pointer to target name
+ *
+ * @return Hardware Name C-string
+ */
const char* furi_hal_version_get_name_ptr();
-/** Get pointer to target device name */
+/** Get pointer to target device name
+ *
+ * @return Hardware Device Name C-string
+ */
const char* furi_hal_version_get_device_name_ptr();
-/** Get pointer to target ble local device name */
+/** Get pointer to target ble local device name
+ *
+ * @return Ble Device Name C-string
+ */
const char* furi_hal_version_get_ble_local_device_name_ptr();
+/** Get BLE MAC address
+ *
+ * @return pointer to BLE MAC address
+ */
const uint8_t* furi_hal_version_get_ble_mac();
-/**
- * Get address of version structure of bootloader, stored in chip flash.
+/** Get address of version structure of bootloader, stored in chip flash.
*
- * @return Address of boot version structure.
+ * @return Address of boot version structure.
*/
-const struct Version* furi_hal_version_get_boot_version(void);
+const struct Version* furi_hal_version_get_boot_version();
-/**
- * Get address of version structure of firmware.
+/** Get address of version structure of firmware.
*
- * @return Address of firmware version structure.
+ * @return Address of firmware version structure.
*/
-const struct Version* furi_hal_version_get_firmware_version(void);
+const struct Version* furi_hal_version_get_firmware_version();
-/** Get platform UID size in bytes */
+/** Get platform UID size in bytes
+ *
+ * @return UID size in bytes
+ */
size_t furi_hal_version_uid_size();
-/** Get const pointer to UID */
+/** Get const pointer to UID
+ *
+ * @return pointer to UID
+ */
const uint8_t* furi_hal_version_uid();
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal-vibro.h b/firmware/targets/furi-hal-include/furi-hal-vibro.h
index 6a7c4d36..99dae2fe 100644
--- a/firmware/targets/furi-hal-include/furi-hal-vibro.h
+++ b/firmware/targets/furi-hal-include/furi-hal-vibro.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal-vibro.h
+ * Vibro HAL API
+ */
+
#pragma once
#include <stdbool.h>
@@ -8,10 +13,14 @@
extern "C" {
#endif
-/** Initialize vibro */
+/** Initialize vibro
+ */
void furi_hal_vibro_init();
-/** Turn on/off vibro */
+/** Turn on/off vibro
+ *
+ * @param[in] value new state
+ */
void furi_hal_vibro_on(bool value);
#ifdef __cplusplus
diff --git a/firmware/targets/furi-hal-include/furi-hal.h b/firmware/targets/furi-hal-include/furi-hal.h
index 0fc9f2ac..1318c614 100644
--- a/firmware/targets/furi-hal-include/furi-hal.h
+++ b/firmware/targets/furi-hal-include/furi-hal.h
@@ -1,3 +1,8 @@
+/**
+ * @file furi-hal.h
+ * Furi HAL API
+ */
+
#pragma once
#ifdef __cplusplus
diff --git a/flipper-zero-cla.md b/flipper-zero-cla.md
deleted file mode 100644
index 8c33cdfd..00000000
--- a/flipper-zero-cla.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Flipper Zero Contributor License Agreement
-
-## Definitions
-
-* You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
-* This Flipper Zero Sources or Sources - all of the files within any archive file or any group of files released in conjunction by Flipper Devices Inc., Flipper Devices Inc., or a derived or modified work based on such files.
-* Contribution - any type of work that is submitted to a Sources, including any modifications or additions to existing work.
-* Submitted - conveyed to a Sources via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Flipper Devices Inc., contributors or maintainers.
-* A Modification, or a Mod - instructions, to be performed manually or in an automated manner, that alter any part of this Sources.
-* A Modified Sources - this Sources or a derivative of it with one or more Modification applied to it.
-* Distribution - allowing one or more other people to in any way download or receive
-a copy of this Sources, a Modified Sources, or a derivative of this Sources.
-* The Flipper Zero Website - https://flipperzero.one.
-
-## Agreement
-
-### 1. Grant of Copyright License.
-Subject to the terms and conditions of this agreement, **You grant** to the Projects’ maintainers, contributors, users and to Flipper Devices Inc. a perpetual, worldwide, non-exclusive, no-charge, royalty-free, **irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your contributions and such derivative works**. Except for this license, **You reserve all rights, title, and interest in your contributions.**
-
-### 2. Grant of Patent License.
-Subject to the terms and conditions of this agreement, You grant to the Projects’ maintainers, contributors, users and to Flipper Devices Inc. a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer your contributions, where such license applies only to those patent claims licensable by you that are necessarily infringed by your contribution or by combination of your contribution with the project to which this contribution was submitted.
-
-If any entity institutes patent litigation - including cross-claim or counterclaim in a lawsuit - against You alleging that your contribution or any project it was submitted to constitutes or is responsible for direct or contributory patent infringement, then any patent licenses granted to that entity under this agreement shall terminate as of the date such litigation is filed.
-
-### 3. Grant of using, copying, modifying and distributing.
-
-Permission is hereby granted to use, copy, modify and/or distribute this Sources, provided that:
-
-* All copyright notices within source files and as generated by the Software as output are retained, unchanged.
-* **Any Distribution of this Sources**, whether as a Modified Sources or not, **includes this license** and is released under the terms of this Agreement. This clause is not dependant upon any measure of changes made to this Sources.
-* **Any Distribution of this Sources, whether as a Modified Sources or not, requires express written consent from Flipper Devices Inc..**
-* You may make Modifications to this Sources or a derivative of it, and distribute your Modifications in a form that is separate from the Sources, such as patches. The following restrictions apply to Modifications:
- * A Modification must not alter or remove any copyright notices in the Sources, generated or otherwise.
- * When a Modification to the Sources is released, a non-exclusive royalty-free right is granted to Flipper Devices Inc. to distribute the Modification in future versions of the Sources provided such versions remain available under the terms of this Agreement in addition to any other license(s) of the initial developer.
- * **Any Distribution of a Modified Sources or derivative requires express written consent from Flipper Devices Inc..**
-
-* Permission is hereby also granted to distribute programs which depend on this Sources, provided that you do not distribute any Modified Sources without express written consent.
-* **Flipper Devices Inc. reserves the right to change the terms of this Agreement at any time**, although those changes are not retroactive to past releases. Changes to this document will be announced via email using the Flipper Devices Inc. email notification list. Failure to receive notification of a change does not make those changes invalid. A current copy of this Agreement can be found in the Flipper Zero Source repository.
-* This Agreement will terminate automatically if you fail to comply with the limitations described herein. Upon termination, you must destroy all copies of this Package, the Software, and any derivatives within 48 hours.