#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