TEMU  4.4
The Terma Emulator
temu_GpioBusIface Struct Reference

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

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.

Note that this interface is deprecated for future models and it is expected that the signal interface is used instead.

Field Documentation

◆ getGpioBits

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.

◆ setGpioBits

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.


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