MHAA Interrupt Control Core
v1.0.0
Interrupt gate control and scoped restoration
Toggle main menu visibility
Loading...
Searching...
No Matches
interrupt.hpp
Go to the documentation of this file.
1
#ifndef MHAA_INTERRUPT_HPP
2
#define MHAA_INTERRUPT_HPP
3
4
#include <interrupt/controller.hpp>
5
6
namespace
mhaa
7
{
8
namespace
interrupt
9
{
11
class
Interrupts
12
{
13
public
:
14
explicit
Interrupts
(Controller &controller) : controller_(controller) {}
15
16
void
enable
() { controller_.enable(); }
17
void
disable
() { controller_.disable(); }
18
bool
enabled
()
const
{
return
controller_.enabled(); }
19
20
private
:
21
Controller &controller_;
22
};
23
}
24
}
25
26
#endif
mhaa::interrupt::Interrupts::Interrupts
Interrupts(Controller &controller)
Definition
interrupt.hpp:14
mhaa::interrupt::Interrupts::enable
void enable()
Definition
interrupt.hpp:16
mhaa::interrupt::Interrupts::disable
void disable()
Definition
interrupt.hpp:17
mhaa::interrupt::Interrupts::enabled
bool enabled() const
Definition
interrupt.hpp:18
mhaa::interrupt
Definition
interrupt.hpp:9
mhaa
Definition
interrupt.hpp:7
include
interrupt
interrupt.hpp
Generated by
1.18.0