TEMU
4.4
The Terma Emulator
Serial.h
Go to the documentation of this file.
1
//===------------------------------------------------------------*- C++ -*-===//
2
//
3
// TEMU: 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
19
//! Serial communications interface
20
typedef
struct
temu_SerialIface
{
21
//! This function will be called when data is written on the serial bus
22
void
(*
write
)(
void
*Obj, uint8_t Data);
23
24
//! Clear to send. Experimental.
25
void
(*
cts
)(
void
*Obj);
26
} temu_SerialIface;
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 */
temu_SerialIface::write
void(* write)(void *Obj, uint8_t Data)
This function will be called when data is written on the serial bus.
Definition:
Serial.h:22
temu_SerialIface::cts
void(* cts)(void *Obj)
Clear to send. Experimental.
Definition:
Serial.h:25
temu_SerialIface
Serial communications interface.
Definition:
Serial.h:20
temu-c
Bus
Serial.h
Generated by
1.8.17