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 for.
Returns:
On success this function returns one of the following constants. When the function, specified by InterruptProc, does not match with any assigned function, it returns 0xffff.
  • 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

u8 hel_IntrIsEnabled u32  InterruptType  ) 
 

Check if an interrupt is 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.
Use this function to check if the interrupt specified by InterruptType is whether enabled or disabled.

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.

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
Use this function stop the interrupt specified by InterruptType.

Note:
This is a replacement function for ham_StopIntHandler(), because it seems that ham_StopIntHandler() stops all interrupts when you stop the VBL one.


Generated on Sat Jul 17 21:18:09 2004 by DoxyGen 1.3.7-20040704