#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) |
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 18 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.
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.