|
Modbus Vault v1.0
|
Provide pipeline for telemetry. More...
Go to the source code of this file.
Data Structures | |
| struct | telemetry_pipeline_record_t |
| Telemetry pipeline record structure. More... | |
Macros | |
| #define | TELEMETRY_PIPELINE_TASK_NAME ("TELE_PLN") |
| #define | TELEMETRY_PIPELINE_TASK_STACK_DEPTH (4096U) |
| #define | TELEMETRY_PIPELINE_TASK_PRIORITY (10U) |
| #define | TELEMETRY_PIPELINE_TASK_CPU_AFFINITY (0U) |
| #define | TELEMETRY_PIPELINE_TASK_NOTIFY_STOP_BIT (1U << 0) |
| #define | TELEMETRY_PIPELINE_TASK_NOTIFY_FRAME_BIT (1U << 1) |
Functions | |
| bool | telemetry_pipeline_init (modbus_analyzer_config_t *analyzer_config_ptr, void(*record_ready_cb)(const telemetry_pipeline_record_t *)) |
| Initiate telemetry pipeline. | |
| void | telemetry_pipeline_enqueue_raw_frame (const modbus_analyzer_frame_t *raw_frame_ptr) |
| Enqueue raw frame. | |
| void | telemetry_pipeline_deinit (void) |
| Deinitialize telemetry pipeline. | |
Provide pipeline for telemetry.
Serialize raw frames
| #define TELEMETRY_PIPELINE_TASK_CPU_AFFINITY (0U) |
CPU affinity
| #define TELEMETRY_PIPELINE_TASK_NAME ("TELE_PLN") |
Task name
| #define TELEMETRY_PIPELINE_TASK_NOTIFY_FRAME_BIT (1U << 1) |
Task notify for frame bit
| #define TELEMETRY_PIPELINE_TASK_NOTIFY_STOP_BIT (1U << 0) |
Task stop bit
| #define TELEMETRY_PIPELINE_TASK_PRIORITY (10U) |
Priority
| #define TELEMETRY_PIPELINE_TASK_STACK_DEPTH (4096U) |
Stack depth
| void telemetry_pipeline_enqueue_raw_frame | ( | const modbus_analyzer_frame_t * | raw_frame_ptr | ) |
Enqueue raw frame.
| raw_frame_ptr | Pointer to raw frame |
| bool telemetry_pipeline_init | ( | modbus_analyzer_config_t * | analyzer_config_ptr, |
| void(*)(const telemetry_pipeline_record_t *) | record_ready_cb | ||
| ) |
Initiate telemetry pipeline.
Initiate a modbus analyzer instance and create serialized queue
| analyzer_config_ptr | Pointer to Modbus analyzer configuration structure |
| record_ready_cb | Callback on record ready |