# async::Irq

## Summary

### Inheritance

Inherits from: [async::IrqBase](https://fuchsia.dev/reference/cpp/class/async/irq-base)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq_1af8dc19c14e723892a3f4943d4017fde3(zx_handle_t object, zx_signals_t trigger, https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` ||
| `https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq_1a0a82ef7e3fba82af36e314eea3751890(zx_handle_t object, zx_signals_t trigger, uint32_t options, https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` ||
| `https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq_1a113b113e0e547db7eb0d9794ed95b0a8()` ||

| ### Public types ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq_1a5f3337b62566bc71799a62f3a432ed34` | using `https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl< void(async_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq *irq, zx_status_t status, const https://fuchsia.dev/reference/cpp/struct/zx-packet-interrupt#structzx__packet__interrupt *interrupt)>` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq_1adcbc446562879246280e17f814e96506() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/async/irq#classasync_1_1_irq_1ae6de7efc7bfa95b2b0cccb231d4fad12(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` | `void` |

## Public types

### Handler

```c++
fit::function< void(async_dispatcher_t *dispatcher, async::Irq *irq, zx_status_t status, const zx_packet_interrupt_t *interrupt)> Handler
```

## Public functions

### Irq

```c++
 Irq(
  zx_handle_t object,
  zx_signals_t trigger,
  Handler handler
)
```

### Irq

```c++
 Irq(
  zx_handle_t object,
  zx_signals_t trigger,
  uint32_t options,
  Handler handler
)
```

### has_handler

```c++
bool has_handler() const 
```

### set_handler

```c++
void set_handler(
  Handler handler
)
```

### \~Irq

```c++
 ~Irq()
```