wut  v1.5.0
Wii U Toolchain
interrupts.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <coreinit/context.h>
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef enum OSInterruptType
16 {
31 
32 typedef void(*OSUserInterruptHandler)(OSInterruptType type, OSContext* interruptedContext);
33 
34 BOOL
36 
37 BOOL
39 
40 BOOL
42 
43 BOOL
45 
48  OSUserInterruptHandler handler);
49 
50 void
52 
53 void
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
BOOL OSIsInterruptEnabled()
void __OSDisableInterrupt(OSInterruptType type)
void(* OSUserInterruptHandler)(OSInterruptType type, OSContext *interruptedContext)
Definition: interrupts.h:32
BOOL OSDisableInterrupts()
BOOL OSRestoreInterrupts(BOOL enable)
OSInterruptType
Definition: interrupts.h:16
BOOL OSEnableInterrupts()
void __OSClearAndEnableInterrupt(OSInterruptType type)
OSUserInterruptHandler __OSSetInterruptHandler(OSInterruptType type, OSUserInterruptHandler handler)
@ OS_INTERRUPT_TYPE_DSPAI
Definition: interrupts.h:22
@ OS_INTERRUPT_TYPE_DSPACC
Definition: interrupts.h:24
@ OS_INTERRUPT_TYPE_PRIMARYI2C
Definition: interrupts.h:21
@ OS_INTERRUPT_TYPE_IPCPPC2
Definition: interrupts.h:28
@ OS_INTERRUPT_TYPE_DSP
Definition: interrupts.h:18
@ OS_INTERRUPT_TYPE_DSPDSP
Definition: interrupts.h:25
@ OS_INTERRUPT_TYPE_DSPAI2
Definition: interrupts.h:23
@ OS_INTERRUPT_TYPE_GPIPPC
Definition: interrupts.h:20
@ OS_INTERRUPT_TYPE_IPCPPC0
Definition: interrupts.h:26
@ OS_INTERRUPT_TYPE_IPCPPC1
Definition: interrupts.h:27
@ OS_INTERRUPT_TYPE_ERROR
Definition: interrupts.h:17
@ OS_INTERRUPT_TYPE_GPU7
Definition: interrupts.h:19
@ OS_INTERRUPT_TYPE_AHB
Definition: interrupts.h:29
int32_t BOOL
Definition: wut_types.h:7