TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
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 
20 typedef struct temu_AnalogIface {
21  void (*setValue)(void *Obj, double Val);
22  double (*getValue)(void *Obj);
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 */
Analog signal interface NOTE THIS IS EXPERIMENTAL.
Definition: Analog.h:20
#define TEMU_IFACE_REFERENCE_TYPE(N)
Definition: Objsys.h:129
void(* setValue)(void *Obj, double Val)
Definition: Analog.h:21
double(* getValue)(void *Obj)
Definition: Analog.h:22
struct temu_AnalogIface temu_AnalogIface
Analog signal interface NOTE THIS IS EXPERIMENTAL.