KYMOCORE / API REFERENCEkymo_core_watch.h Source File
API-Verträge im englischen Original. Navigation und Anleitungen sind zweisprachig.
Go to the documentation of this file.
9#ifndef KYMO_CORE_WATCH_H
10#define KYMO_CORE_WATCH_H
12#if KYMO_EFFECTIVE_WATCH || defined(DOXYGEN)
25#define KYMO_WATCH_BUILD_ID_MAX 20u
33#define KYMO_WATCH_MAX_RANGES 4u
42#define KYMO_WATCH_FRAME_MAX_SIZE (11u + KYMO_WATCH_BUILD_ID_MAX + (8u * KYMO_WATCH_MAX_RANGES))
75 typedef uint8_t (*
KymoWatchReadFn)(
void *pContext, uint32_t address, uint8_t sizeBytes,
109#if KYMO_EFFECTIVE_CORE || defined(DOXYGEN)
uint8_t(*) KymoWatchReadFn(void *pContext, uint32_t address, uint8_t sizeBytes, uint8_t *pOutputAv)
Optional memory reader.
KymoStatus KymoCoreWatch_init(const KymoCoreWatchConfig *pConfig)
Initialize watch and activate its processing in Core Main.
Status codes and callback types shared by every KymoCore module.
uint8_t KymoStatus
Result of a KymoCore operation.
Application configuration for watch.
uint8_t lastChannel
Last reserved DATA channel, inclusive.
size_t rangeCount
Number of allowed ranges, 1..KYMO_WATCH_MAX_RANGES.
void * pReadContext
Read callback context.
const KymoWatchRange * pRangesAv
Persistent allowed address ranges.
KymoWatchReadFn readValueCbk
Optional safe reader; NULL uses direct device-address reads.
size_t buildIdSizeBytes
Build identifier size, at most KYMO_WATCH_BUILD_ID_MAX.
uint8_t firstChannel
First reserved DATA channel, inclusive.
const uint8_t * pBuildIdAv
Persistent build identifier bytes.
One memory range the host may read.
uint32_t sizeBytes
Number of readable bytes from start.
uint32_t startAddress
First readable address.