20 lines
502 B
C
20 lines
502 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 *de;
|
|
} tSerialPortHalfDuplex;
|
|
|
|
tSerialPortHalfDuplex vSerialPortHalfDuplexInit(tSerialPortIO *serialPortIo, tGpioPin *de);
|
|
tSerialPortIO vSerialPortHalfDuplexGetIo(tSerialPortHalfDuplex *serialPortHalfDuplex);
|
|
|
|
#endif //MODULE_SERIALPORTHALFDUPLEXIO_H
|