mirror of
https://github.com/plappermaul/realtek-doc.git
synced 2025-12-10 07:44:41 +01:00
118 lines
No EOL
2.5 KiB
C
Executable file
118 lines
No EOL
2.5 KiB
C
Executable file
/*
|
|
* Copyright (C) 2015 Realtek Semiconductor Corp.
|
|
* All Rights Reserved.
|
|
*
|
|
* This program is the proprietary software of Realtek Semiconductor
|
|
* Corporation and/or its licensors, and only be used, duplicated,
|
|
* modified or distributed under the authorized license from Realtek.
|
|
*
|
|
* ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER
|
|
* THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
|
*
|
|
* $Revision:
|
|
* $Date: $
|
|
*
|
|
* Purpose : Definition those public Interrupt APIs and its data type in the SDK.
|
|
*
|
|
* Feature : The file have include the following module and sub-modules
|
|
* (1) Interrupt parameter settings
|
|
*/
|
|
|
|
#ifndef __DAL_CA8277B_INTR_H__
|
|
#define __DAL_CA8277B_INTR_H__
|
|
|
|
|
|
/*
|
|
* Include Files
|
|
*/
|
|
|
|
/*
|
|
* Symbol Definition
|
|
*/
|
|
|
|
/*
|
|
* Data Declaration
|
|
*/
|
|
|
|
/*
|
|
* Function Declaration
|
|
*/
|
|
|
|
/* Function Name:
|
|
* dal_ca8277b_intr_init
|
|
* Description:
|
|
* Initialize interrupt module.
|
|
* Input:
|
|
* None
|
|
* Output:
|
|
* None
|
|
* Return:
|
|
* RT_ERR_OK
|
|
* RT_ERR_FAILED
|
|
* Note:
|
|
* Must initialize interrupt module before calling any interrupt APIs.
|
|
*/
|
|
extern int32
|
|
dal_ca8277b_intr_init(void);
|
|
|
|
/* Function Name:
|
|
* dal_ca8277b_intr_imr_get
|
|
* Description:
|
|
* Get interrupt mask.
|
|
* Input:
|
|
* intr - interrupt type
|
|
* pEnable - pointer of return status
|
|
*
|
|
* Output:
|
|
* None
|
|
* Return:
|
|
* RT_ERR_OK
|
|
* RT_ERR_FAILED
|
|
* RT_ERR_NULL_POINTER
|
|
* RT_ERR_INPUT
|
|
* RT_ERR_OUT_OF_RANGE
|
|
* Note:
|
|
* None.
|
|
*/
|
|
extern int32
|
|
dal_ca8277b_intr_imr_get(rtk_intr_type_t intr, rtk_enable_t *pEnable);
|
|
|
|
/* Function Name:
|
|
* dal_ca8277b_intr_imr_set
|
|
* Description:
|
|
* Set interrupt mask.
|
|
* Input:
|
|
* intr - interrupt type
|
|
* enable - interrupt state
|
|
*
|
|
* Output:
|
|
* None
|
|
* Return:
|
|
* RT_ERR_OK
|
|
* RT_ERR_FAILED
|
|
* RT_ERR_INPUT
|
|
* RT_ERR_OUT_OF_RANGE
|
|
* Note:
|
|
* None.
|
|
*/
|
|
extern int32
|
|
dal_ca8277b_intr_imr_set(rtk_intr_type_t intr, rtk_enable_t enable);
|
|
|
|
/* Function Name:
|
|
* dal_rt_ca8277b_intr_isr_rx_callback_register
|
|
* Description:
|
|
* Register isr callback function.
|
|
* Input:
|
|
* isrRx - pointer to the callback function for interrupt
|
|
* Output:
|
|
* None
|
|
* Return:
|
|
* RT_ERR_OK
|
|
* RT_ERR_FAILED
|
|
* RT_ERR_NULL_POINTER - input parameter may be null pointer
|
|
* Note:
|
|
*/
|
|
extern int32
|
|
dal_rt_ca8277b_intr_isr_rx_callback_register(rt_intr_type_t intr,rt_intr_isr_rx_callback isrRx);
|
|
|
|
#endif /* __DAL_CA8277B_INTR_H__ */ |