A QEMU input GPIO exposed as a TargetSignalSocket<bool>
More...
#include <qemu-target-signal-socket.h>
A QEMU input GPIO exposed as a TargetSignalSocket<bool>
This class exposes an input GPIO of a QEMU device as a TargetSignalSocket<bool>. It can be connected to an sc_core::sc_port<bool> or a TargetInitiatorSocket<bool>. Modifications to this socket will be reported to the wrapped GPIO.
◆ get_gpio()
Returns the GPIO wrapped by this socket.
- Returns
- the GPIO wrapped by this socket
◆ init()
Initialize this socket with a device and a GPIO index.
This method initializes the socket using the given QEMU device and the corresponding GPIO index in this device. See the QEMU API and the device you want to wrap to know what index to use here.
- Parameters
-
[in] | dev | The QEMU device |
[in] | gpio_idx | The GPIO index within the device |
◆ init_named()
Initialize this socket with a device, a GPIO namespace, and a GPIO index.
This method initializes the socket using the given QEMU device and the corresponding GPIO (namespace, index) pair in this device. See the QEMU API and the device you want to wrap to know what namespace/index to use here.
- Parameters
-
[in] | dev | The QEMU device |
[in] | gpio_name | The GPIO namespace within the device |
[in] | gpio_idx | The GPIO index within the device |
The documentation for this class was generated from the following file: