TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Gpio.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_GPIO_H
10 #define TEMU_BUS_GPIO_H
11 
12 #include "temu-c/Support/Objsys.h"
13 #include <stdint.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
26 typedef struct temu_GpioBusIface {
33  void (*setGpioBits)(void *Obj, uint64_t Bits, uint64_t Mask);
34 
37  uint64_t (*getGpioBits)(void *Obj, uint64_t Mask);
39 #define TEMU_GPIO_BUS_IFACE_TYPE "GpioBusIface"
40 TEMU_IFACE_REFERENCE_TYPE(temu_GpioBus);
41 
50 typedef struct temu_GpioClientIface {
55  void (*gpioBitsChanged)(void *Obj, uint64_t Bits, uint64_t Mask);
57 #define TEMU_GPIO_CLIENT_IFACE_TYPE "GpioClientIface"
58 TEMU_IFACE_REFERENCE_TYPE(temu_GpioClient);
59 
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* ! TEMU_BUS_GPIO_H */
struct temu_GpioClientIface temu_GpioClientIface
struct temu_GpioBusIface temu_GpioBusIface
#define TEMU_IFACE_REFERENCE_TYPE(N)
Definition: Objsys.h:129
void(* setGpioBits)(void *Obj, uint64_t Bits, uint64_t Mask)
Definition: Gpio.h:33
uint64_t(* getGpioBits)(void *Obj, uint64_t Mask)
Definition: Gpio.h:37
void(* gpioBitsChanged)(void *Obj, uint64_t Bits, uint64_t Mask)
Definition: Gpio.h:55