A QEMU input GPIO exposed as a TargetSignalSocket<bool>.
More...
#include <qemu-target-signal-socket.h>
|
|
| QemuTargetSignalSocket (const char *name) |
| void | init (qemu::Device dev, int gpio_idx) |
| | Initialize this socket with a device and a GPIO index.
|
| void | init_named (qemu::Device dev, const char *gpio_name, int gpio_idx) |
| | Initialize this socket with a device, a GPIO namespace, and a GPIO index.
|
| qemu::Gpio | get_gpio () |
| | Returns the GPIO wrapped by this socket.
|
|
void | notify () |
| | Force a notification on the default event.
|
|
| TargetSignalSocket (const char *name) |
|
void | register_value_changed_cb (const ValueChangedCallback &cb) |
|
const bool & | read () const |
|
|
void | value_changed_cb (const bool &val) |
|
void | init_with_gpio (qemu::Gpio gpio) |
|
|
using | Iface |
|
using | Parent |
|
using | ValueChangedCallback |
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()
| void QemuTargetSignalSocket::init |
( |
qemu::Device | dev, |
|
|
int | gpio_idx ) |
|
inline |
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()
| void QemuTargetSignalSocket::init_named |
( |
qemu::Device | dev, |
|
|
const char * | gpio_name, |
|
|
int | gpio_idx ) |
|
inline |
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: