From 70d4f7b3c536322f50c04498053a84d40b800546 Mon Sep 17 00:00:00 2001 From: cfif Date: Mon, 2 Jun 2025 13:26:40 +0300 Subject: [PATCH] Init --- Inc/SerialPortFrameTpIO.h | 19 +++++++++++++++++++ modular.json | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 Inc/SerialPortFrameTpIO.h create mode 100644 modular.json diff --git a/Inc/SerialPortFrameTpIO.h b/Inc/SerialPortFrameTpIO.h new file mode 100644 index 0000000..f34948e --- /dev/null +++ b/Inc/SerialPortFrameTpIO.h @@ -0,0 +1,19 @@ +// +// Created by cfif on 28.09.22. +// + +#ifndef MODULE_SERIALPORTFRAMETPIO_H +#define MODULE_SERIALPORTFRAMETPIO_H +#include "stdint.h" + +typedef uint16_t (*SerialPortFrameTpReceivedIOTransaction )(void *env, uint8_t *data, uint16_t size, uint32_t adr, uint32_t timeout); +typedef uint16_t (*SerialPortFrameTpTransmitIOTransaction )(void *env, uint8_t *data, uint16_t size, uint32_t adr, uint32_t timeout); + +typedef struct { + void *env; + SerialPortFrameTpReceivedIOTransaction receive; + SerialPortFrameTpTransmitIOTransaction transmit; +} tSerialPortFrameTpIO; + + +#endif //MODULE_SERIALPORTFRAMETPIO_H diff --git a/modular.json b/modular.json new file mode 100644 index 0000000..9bdd478 --- /dev/null +++ b/modular.json @@ -0,0 +1,7 @@ +{ + "cmake": { + "inc_dirs": [ + "Inc" + ] + } +} \ No newline at end of file