irq.h File Reference

Go to the source code of this file.

Functions

static unsigned char irq_enable (void)
 This function servers to enable IRQ. More...
 
static unsigned char irq_disable (void)
 This function servers to disable IRQ. More...
 
static void irq_restore (unsigned char en)
 This function servers to restore IRQ. More...
 
static void irq_enable_type (unsigned long msk)
 This function servers to set IRQ mask. More...
 
static void irq_set_mask (unsigned long msk)
 This function servers to set IRQ mask. More...
 
static unsigned long irq_get_mask (void)
 This function servers to enable one interrupt. More...
 
static void irq_disable_type (unsigned long msk)
 This function servers to clear IRQ mask. More...
 
static unsigned long irq_get_src ()
 This function servers to get an IRQ source. More...
 
static void irq_clr_src2 (unsigned long msk)
 This function servers to clear the specified IRQ source. More...
 
static void irq_clr_src (void)
 This function servers to clear all IRQ source. More...
 
static void rf_irq_enable (unsigned int msk)
 This function servers to set the mask of RF IRQ. More...
 
static void rf_irq_disable (unsigned int msk)
 This function servers to clear the mask of RF IRQ. More...
 
static unsigned short rf_irq_src_get (void)
 This function servers to get the RF IRQ source. More...
 
static void rf_irq_clr_src (unsigned short msk)
 This function servers to clear the RF IRQ source. More...
 

Function Documentation

◆ irq_enable()

static unsigned char irq_enable ( void  )
inlinestatic

This function servers to enable IRQ.

Parameters
[in]none
Returns
if return 1 is enable.else disable.

◆ irq_disable()

static unsigned char irq_disable ( void  )
inlinestatic

This function servers to disable IRQ.

Parameters
[in]none
Returns
if return 0 is disable.else enable.

◆ irq_restore()

static void irq_restore ( unsigned char  en)
inlinestatic

This function servers to restore IRQ.

Parameters
[in]none
Returns
if return 1 is irg restore.

◆ irq_enable_type()

static void irq_enable_type ( unsigned long  msk)
inlinestatic

This function servers to set IRQ mask.

Parameters
[in]variableof msk.
Returns
none.

◆ irq_set_mask()

static void irq_set_mask ( unsigned long  msk)
inlinestatic

This function servers to set IRQ mask.

Parameters
[in]variableof msk.
Returns
none.

◆ irq_get_mask()

static unsigned long irq_get_mask ( void  )
inlinestatic

This function servers to enable one interrupt.

Parameters
[in]none
Returns
the value of IRQ register.

◆ irq_disable_type()

static void irq_disable_type ( unsigned long  msk)
inlinestatic

This function servers to clear IRQ mask.

Parameters
[in]msk- variable of msk.
Returns
none.

◆ irq_get_src()

static unsigned long irq_get_src ( )
inlinestatic

This function servers to get an IRQ source.

Parameters
[in]none.
Returns
IRQ source.

◆ irq_clr_src2()

static void irq_clr_src2 ( unsigned long  msk)
inlinestatic

This function servers to clear the specified IRQ source.

Parameters
[in]msk- variable of msk.
Returns
none.

◆ irq_clr_src()

static void irq_clr_src ( void  )
inlinestatic

This function servers to clear all IRQ source.

Parameters
[in]none.
Returns
none.

◆ rf_irq_enable()

static void rf_irq_enable ( unsigned int  msk)
inlinestatic

This function servers to set the mask of RF IRQ.

Parameters
[in]msk- variable of msk.
Returns
none.

◆ rf_irq_disable()

static void rf_irq_disable ( unsigned int  msk)
inlinestatic

This function servers to clear the mask of RF IRQ.

Parameters
[in]msk- variable of msk.
Returns
none.

◆ rf_irq_src_get()

static unsigned short rf_irq_src_get ( void  )
inlinestatic

This function servers to get the RF IRQ source.

Parameters
[in]none.
Returns
the state of RF IRQ register.

◆ rf_irq_clr_src()

static void rf_irq_clr_src ( unsigned short  msk)
inlinestatic

This function servers to clear the RF IRQ source.

Parameters
[in]msk- variable of msk.
Returns
none.