Support PM67 voltage fields in UMP logger v3

This commit is contained in:
2026-10-01 16:00:25 +03:00
parent 3457657979
commit c0ee7c46ea
6 changed files with 222 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
#ifndef UMP_TMS28335_H
#define UMP_TMS28335_H
#include "../../include/ump_protocol.h"
/* Application provides ump_log_read/write; caller holds the snapshot IRQ lock.
* No peripheral registers, ISR installation or transport waits in this port. */
unsigned ump_tms28335_prepare(unsigned function, uint16_t address, uint16_t value,
uint16_t *reply, unsigned *error);
size_t ump_tms28335_rtu(unsigned device, unsigned function, uint16_t address,
uint16_t value, ump_octet *reply, size_t capacity);
unsigned ump_tms28335_capture(unsigned function, uint16_t address, uint16_t value,
uint16_t *words, unsigned *error);
/* Convert one pair to TI eCAN MDL/MDH register values; returns 8 or 0. */
unsigned ump_tms28335_fragment(const uint16_t *words, unsigned count, unsigned index,
unsigned token, unsigned error, uint32_t *mdl, uint32_t *mdh);
#endif