Main Page | Modules | Related Pages

Interrupt Functions

Functions


Function Documentation

u32 hel_IntrGetType void *  InterruptProc  ) 
 

Get type of a started interrupt function.

Parameters:
InterruptProc Pointer to the interrupt function to get the type from.
Returns:
On success, the hel_IntrGetType returns one of these constants:
  • INT_TYPE_VBL
  • INT_TYPE_HBL
  • INT_TYPE_VCNT
  • INT_TYPE_TIM0
  • INT_TYPE_TIM1
  • INT_TYPE_TIM2
  • INT_TYPE_TIM3
  • INT_TYPE_SIO
  • INT_TYPE_DMA0
  • INT_TYPE_DMA1
  • INT_TYPE_DMA2
  • INT_TYPE_DMA3
  • INT_TYPE_KEY
  • INT_TYPE_CART


When the function fails it returns 0xffff.

u8 hel_IntrIsEnabled u32  InterruptType  ) 
 

Check if an interrupt is enabled or disabled.

Use this function to check if the interrupt specified by InterruptType is whether enabled or disabled.

Parameters:
InterruptType Interrupt-Type you want to check. This can be one of the following:
  • INT_TYPE_VBL
  • INT_TYPE_HBL
  • INT_TYPE_VCNT
  • INT_TYPE_TIM0
  • INT_TYPE_TIM1
  • INT_TYPE_TIM2
  • INT_TYPE_TIM3
  • INT_TYPE_SIO
  • INT_TYPE_DMA0
  • INT_TYPE_DMA1
  • INT_TYPE_DMA2
  • INT_TYPE_DMA3
  • INT_TYPE_KEY
  • INT_TYPE_CART
Returns:
This function returns TRUE when the interrupt specified by InterruptType is enabled, otherwise it returns FALSE.

void hel_IntrStartHandler u32  InterruptType,
void *  pInterruptHandler
 

Start an interrupt.

The hel_IntrStartHandler function starts the interrupt specified by InterruptType.

Parameters:
InterruptType The Interrupt-Type you want to start. This can be one of the following:
  • INT_TYPE_VBL
  • INT_TYPE_HBL
  • INT_TYPE_VCNT
  • INT_TYPE_TIM0
  • INT_TYPE_TIM1
  • INT_TYPE_TIM2
  • INT_TYPE_TIM3
  • INT_TYPE_SIO
  • INT_TYPE_DMA0
  • INT_TYPE_DMA1
  • INT_TYPE_DMA2
  • INT_TYPE_DMA3
  • INT_TYPE_KEY
  • INT_TYPE_CART
pInterruptHandler An Interrupt-Handler function, it is triggered when an interrupt with InterruptType occurs.
See also:
hel_IntrStopHandler

void hel_IntrStopAll void   ) 
 

Stop all interrupts.

This function stops all enabled/started interrupts.

See also:
hel_IntrStopHandler

void hel_IntrStopHandler u32  InterruptType  ) 
 

Stop an interrupt.

The hel_IntrStopHandler function stops the interrupt specified by InterruptType.

Parameters:
InterruptType The Interrupt-Type you want to stop. This can be one of the following:
  • INT_TYPE_VBL
  • INT_TYPE_HBL
  • INT_TYPE_VCNT
  • INT_TYPE_TIM0
  • INT_TYPE_TIM1
  • INT_TYPE_TIM2
  • INT_TYPE_TIM3
  • INT_TYPE_SIO
  • INT_TYPE_DMA0
  • INT_TYPE_DMA1
  • INT_TYPE_DMA2
  • INT_TYPE_DMA3
  • INT_TYPE_KEY
  • INT_TYPE_CART
See also:
hel_IntrStartHandler


Generated on Mon Aug 22 20:43:41 2005 by DoxyGen 1.4.4