跳转至

__CFBDApplication

Module: Application Management

Application descriptor. More...

#include <app.h>

Public Attributes

Name
CFBD_BootStrapFunc selfBootFunc
Optional bootstrap function for the application.
CFBD_BootArgs bootargs
Opaque pointer passed to selfBootFunc when invoked.
CFBD_ClockFreqProvider freq_provider
Provider that returns the system clock frequency (Hz).
CFBD_ClockTickProvider tick_provider
Provider that returns a monotonically increasing tick value.

Detailed Description

struct __CFBDApplication;

Application descriptor.

See:

Aggregates the bootstrap function and clock providers for an application. Typical usage is to expose a single application instance via [getApp()](Modules/group__Application__Module.md#function-getapp) that other framework components query to obtain boot actions and timing sources.

The application descriptor serves as a central registry for all application-level services, allowing framework components to access initialization routines and timing information without requiring direct coupling to application code.

Public Attributes Documentation

variable selfBootFunc

CFBD_BootStrapFunc selfBootFunc;

Optional bootstrap function for the application.

Note: If NULL, the application framework will skip this step and rely on explicit boot table instead.

When non-NULL, this function will be called during application startup to perform any app-specific initialization. Must match the CFBD_BootStrapFunc signature.

variable bootargs

CFBD_BootArgs bootargs;

Opaque pointer passed to selfBootFunc when invoked.

Interpretation is defined by the bootstrap function. Common usage includes passing a configuration structure or application-specific context.

variable freq_provider

CFBD_ClockFreqProvider freq_provider;

Provider that returns the system clock frequency (Hz).

See: CFBD_ClockFreqProvider

If NULL, timing calculations will fail. All timing-sensitive operations require this provider to be set.

variable tick_provider

CFBD_ClockTickProvider tick_provider;

Provider that returns a monotonically increasing tick value.

See: CFBD_ClockTickProvider

If NULL, interval measurements will be unavailable. Used in conjunction with freq_provider for time calculations.


Updated on 2026-02-03 at 13:21:55 +0000