TEMU
4.4
The Terma Emulator
Analog.h
Go to the documentation of this file.
1
//===------------------------------------------------------------*- C++ -*-===//
2
//
3
// TEMU: The Terma Emulator
4
// (c) Terma 2019
5
// Authors: Mattias Holm <maho (at) terma.com>
6
//
7
//===----------------------------------------------------------------------===//
8
9
#
ifndef
TEMU_BUS_ANALOG_H
10
#
define
TEMU_BUS_ANALOG_H
11
12
#
include
"temu-c/Support/Objsys.h"
13
#
include
<
stdint
.
h
>
14
15
#
ifdef
__cplusplus
16
extern
"C"
{
17
#
endif
18
19
//! Analog signal interface NOTE THIS IS EXPERIMENTAL
20
typedef
struct
temu_AnalogIface
{
21
void
(*
setValue
)(
void
*Obj,
double
Val);
22
double
(*
getValue
)(
void
*Obj);
23
} temu_AnalogIface;
24
#
define
TEMU_ANALOG_IFACE_TYPE
"AnalogIface"
25
TEMU_IFACE_REFERENCE_TYPE(temu_Analog);
26
27
#
ifdef
__cplusplus
28
}
29
#
endif
30
31
#
endif
/* ! TEMU_BUS_ANALOG_H */
temu_AnalogIface::getValue
double(* getValue)(void *Obj)
Definition:
Analog.h:22
temu_AnalogIface::setValue
void(* setValue)(void *Obj, double Val)
Definition:
Analog.h:21
temu_AnalogIface
Analog signal interface NOTE THIS IS EXPERIMENTAL.
Definition:
Analog.h:20
temu-c
Bus
Analog.h
Generated by
1.8.17