Modbus Vault v1.0
Loading...
Searching...
No Matches
telemetry_pipeline.h
Go to the documentation of this file.
1
10#ifndef TELEMETRY_PIPELINE_H
11#define TELEMETRY_PIPELINE_H
12
13#include "modbus_analyzer.h"
14#include "slab_pool.h"
15
16#define TELEMETRY_PIPELINE_TASK_NAME ("TELE_PLN")
17#define TELEMETRY_PIPELINE_TASK_STACK_DEPTH (4096U)
18#define TELEMETRY_PIPELINE_TASK_PRIORITY (10U)
19#define TELEMETRY_PIPELINE_TASK_CPU_AFFINITY (0U)
20#define TELEMETRY_PIPELINE_TASK_NOTIFY_STOP_BIT (1U << 0)
21#define TELEMETRY_PIPELINE_TASK_NOTIFY_FRAME_BIT (1U << 1)
30
41bool telemetry_pipeline_init (modbus_analyzer_config_t *analyzer_config_ptr,
42 void (*record_ready_cb) (const telemetry_pipeline_record_t *));
43
50
55
56#endif
Analyzer for Modbus.
Memory slab provide abstraction layer for memory chunks.
Modbus analyzer configuration structure.
Definition modbus_analyzer.h:42
Modbus analyzer frame structure.
Definition modbus_analyzer.h:33
Slab pool type structure.
Definition slab_pool.h:30
Telemetry pipeline record structure.
Definition telemetry_pipeline.h:26
int64_t timestamp_us
Definition telemetry_pipeline.h:28
slab_pool_t * slab_ptr
Definition telemetry_pipeline.h:27
void telemetry_pipeline_enqueue_raw_frame(const modbus_analyzer_frame_t *raw_frame_ptr)
Enqueue raw frame.
Definition telemetry_pipeline.c:141
void telemetry_pipeline_deinit(void)
Deinitialize telemetry pipeline.
Definition telemetry_pipeline.c:149
bool telemetry_pipeline_init(modbus_analyzer_config_t *analyzer_config_ptr, void(*record_ready_cb)(const telemetry_pipeline_record_t *))
Initiate telemetry pipeline.
Definition telemetry_pipeline.c:114