// HEL Library \\

 
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_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
Note:
This is a replacement function for ham_StopIntHandler, because it seems ham_StopIntHandler stops all interrupts when you stop the VBL.
Remarks:
If you use hel_IntrStopHandler instead of ham_StopIntHandler, you get more detailed information in case you have an interrupt turned on but not set to a function. HAMlib displays a message that says an interrupt is turned on, HEL says which interrupt is on and caused the error. This only applies to the debug library.


Generated on Fri Jul 8 19:55:50 2005 by DoxyGen 1.4.3