TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
temu_GpioBusIface Struct Reference

#include <temu-c/Bus/Gpio.h>

Collaboration diagram for temu_GpioBusIface:

Data Fields

void(* setGpioBits )(void *Obj, uint64_t Bits, uint64_t Mask)
 
uint64_t(* getGpioBits )(void *Obj, uint64_t Mask)
 

Detailed Description

Interface implemented by the GPIO bus class.

Normally this does not have to be implemented yourself. It exist for the bus model only. In-case you need a separate bus model, you can implement this interface.

Definition at line 26 of file Gpio.h.

Field Documentation

uint64_t(* temu_GpioBusIface::getGpioBits)(void *Obj, uint64_t Mask)

Get the gpio-bits currently on the bus. The bits in mask will be extracted from the bus and returned in the result.

Definition at line 37 of file Gpio.h.

void(* temu_GpioBusIface::setGpioBits)(void *Obj, uint64_t Bits, uint64_t Mask)

setGpioBits should set or clear the bits in Bits if they are set in Mask. Upon a set, the GPIO bus model should notify any connected GPIO clients about the changed bits. This is done using the temu_GpioClientIface. In the built in bus model, notifications are only delivered if any of the bits actually changed.

Definition at line 33 of file Gpio.h.


The documentation for this struct was generated from the following file: