KymoCore/Documentation
v8.0.0 Stable⌄
Versions8.0.0 Current
GitHub ↗
KYMOCORE / API REFERENCE

KymoCoreConfig Struct Reference

API contracts in their original English. Navigation and guides are bilingual.

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

#include <kymo_core.h>

Public Attributes

KymoReadBytesFn readBytesCbk
 Required for receiving features.
KymoWriteBytesFn writeBytesCbk
 Required with transport config.
KymoIsBusyFn isBusyCbk
 Required when write borrows TX storage.
KymoServiceFn serviceCbk
 Optional bounded port maintenance.
KymoClockMsFn clockMsCbk
 Optional monotonic millisecond clock.
void * pTransportContext
 Context for read/write/busy/service callbacks.
void * pClockContext
 Context passed to clockMsCbk.
uint8_t * pTxBufferAv
 Persistent TX array; required with a config.
size_t txBufferSizeBytes
 TX array capacity; must fit selected frames.
uint8_t * pRxBufferAv
 Persistent RX array; required with readBytesCbk.
size_t rxBufferSizeBytes
 RX array capacity and byte budget per Main.

Detailed Description

Shared transport resources, without feature state.

Copied on Init. Buffers and callback contexts must outlive all processing. RX and TX must not overlap. Init performs no I/O.

Usage Zero-initialize and assign named fields before Core Init.

Definition at line 25 of file kymo_core.h.

Member Data Documentation

◆ clockMsCbk

KymoClockMsFn KymoCoreConfig::clockMsCbk

Optional monotonic millisecond clock.

Definition at line 41 of file kymo_core.h.

◆ isBusyCbk

KymoIsBusyFn KymoCoreConfig::isBusyCbk

Required when write borrows TX storage.

Definition at line 35 of file kymo_core.h.

◆ pClockContext

void* KymoCoreConfig::pClockContext

Context passed to clockMsCbk.

Definition at line 48 of file kymo_core.h.

◆ pRxBufferAv

uint8_t* KymoCoreConfig::pRxBufferAv

Persistent RX array; required with readBytesCbk.

Definition at line 57 of file kymo_core.h.

◆ pTransportContext

void* KymoCoreConfig::pTransportContext

Context for read/write/busy/service callbacks.

Definition at line 45 of file kymo_core.h.

◆ pTxBufferAv

uint8_t* KymoCoreConfig::pTxBufferAv

Persistent TX array; required with a config.

Definition at line 51 of file kymo_core.h.

◆ readBytesCbk

KymoReadBytesFn KymoCoreConfig::readBytesCbk

Required for receiving features.

Definition at line 29 of file kymo_core.h.

◆ rxBufferSizeBytes

size_t KymoCoreConfig::rxBufferSizeBytes

RX array capacity and byte budget per Main.

Definition at line 60 of file kymo_core.h.

◆ serviceCbk

KymoServiceFn KymoCoreConfig::serviceCbk

Optional bounded port maintenance.

Definition at line 38 of file kymo_core.h.

◆ txBufferSizeBytes

size_t KymoCoreConfig::txBufferSizeBytes

TX array capacity; must fit selected frames.

Definition at line 54 of file kymo_core.h.

◆ writeBytesCbk

KymoWriteBytesFn KymoCoreConfig::writeBytesCbk

Required with transport config.

Definition at line 32 of file kymo_core.h.


The documentation for this struct was generated from the following file: