TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Serial.h
Go to the documentation of this file.
1 //===------------------------------------------------------------*- C++ -*-===//
2 //
3 // T-EMU: The Terma Emulator
4 // (c) Terma 2015
5 // Authors: Mattias Holm <maho (at) terma.com>
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef TEMU_BUS_SERIAL_H
10 #define TEMU_BUS_SERIAL_H
11 
12 #include "temu-c/Support/Objsys.h"
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
20 typedef struct temu_SerialIface {
22  void (*write)(void *Obj, uint8_t Data);
23 
25  void (*cts)(void *Obj);
27 #define TEMU_SERIAL_IFACE_TYPE "SerialIface"
28 TEMU_IFACE_REFERENCE_TYPE(temu_Serial);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif /* ! TEMU_BUS_SERIAL_H */
#define TEMU_IFACE_REFERENCE_TYPE(N)
Definition: Objsys.h:129
void(* cts)(void *Obj)
Clear to send. Experimental.
Definition: Serial.h:25
void(* write)(void *Obj, uint8_t Data)
This function will be called when data is written on the serial bus.
Definition: Serial.h:22
Serial communications interface.
Definition: Serial.h:20
struct temu_SerialIface temu_SerialIface
Serial communications interface.