SerialPortHalfDuplexInterface/Inc/SerialPortHalfDuplexIO.h

21 lines
568 B
C

//
// Created by cfif on 03.10.22.
//
#ifndef MODULE_SERIALPORTHALFDUPLEXIO_H
#define MODULE_SERIALPORTHALFDUPLEXIO_H
#include "stdint.h"
#include "SerialPortIO.h"
#include "GpioPin.h"
typedef struct {
tSerialPortIO *serialPortIo;
tGpioPin *transmitePin;
tGpioPin *recivePin;
} tSerialPortHalfDuplex;
tSerialPortHalfDuplex vSerialPortHalfDuplexInit(tSerialPortIO *serialPortIo, tGpioPin *transmitePin, tGpioPin *recivePin);
tSerialPortIO vSerialPortHalfDuplexGetIo(tSerialPortHalfDuplex *serialPortHalfDuplex);
#endif //MODULE_SERIALPORTHALFDUPLEXIO_H