28#ifndef __DEV_INTPIN_HH__
29#define __DEV_INTPIN_HH__
45 template <
class Device>
50 onChange([dev, num](
const bool &new_val) {
52 dev->raiseInterruptPin(num);
54 dev->lowerInterruptPin(num);
58 template <
class Device>
74template <
class Compat>
80 template <
class Device>
93template <
class Compat>
IntSinkPinBase(const std::string &_name, PortID _id)
IntSinkPinBase(const std::string &_name, PortID _id, Device *dev)
IntSinkPinBase(const std::string &_name, PortID _id, Device *dev, int num)
IntSinkPinBase(const std::string &_name, PortID _id, int num)
IntSourcePinBase(const std::string &_name, PortID _id, Device *owner)
IntSourcePinBase(const std::string &_name, PortID _id)
void onChange(OnChangeFunc func)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.