KymoCore/Dokumentation
v8.0.0 Stabil⌄
Versionen8.0.0 Aktuell
GitHub ↗
KYMOCORE / API REFERENCE

kymo_core.h File Reference

API-Verträge im englischen Original. Navigation und Anleitungen sind zweisprachig.

Public Init/Main interface for the library-owned default connection. More...

#include "kymo_types.h"

Go to the source code of this file.

Classes

struct  KymoCoreConfig
 Shared transport resources, without feature state. More...

Functions

KymoStatus KymoCore_init (const KymoCoreConfig *pConfig)
 Initialize the default core once, without activating any feature.
KymoStatus KymoCore_main (void)
 Run one bounded turn for initialized features.

Detailed Description

Public Init/Main interface for the library-owned default connection.

Enable KYMO_ENABLE_CORE. Include selected features separately and initialize them before Main. Serialized calls, no heap or implicit task. Explicit-instance module interfaces remain available via kymo_modules.h.

Usage KymoCore_init(NULL); then KymoCore_main() for an empty core.

Definition in file kymo_core.h.

Function Documentation

◆ KymoCore_init()

KymoStatus KymoCore_init ( const KymoCoreConfig * pConfig)

Initialize the default core once, without activating any feature.

NULL starts a transport-free empty core. Features needing transport then cannot initialize. Invalid transport config can be corrected and retried. Successful Init cannot be repeated; no reset or reconnect is provided.

Parameters
[in]pConfigResource configuration, or NULL for an empty core.
Returns
KYMO_OK, KYMO_BAD_CONFIG or KYMO_REJECTED for repeated Init.
Usage Core Init, selected feature Inits, then Main. Not ISR-safe.

◆ KymoCore_main()

KymoStatus KymoCore_main ( void )

Run one bounded turn for initialized features.

First Main freezes registration, even for an empty core. An empty core returns IDLE without transport calls. Configuration faults stay latched.

Returns
BAD_CONFIG before Init; otherwise processing/error status.
Usage Call from one main loop/task. BUSY and IDLE are normal. Not ISR-safe.