| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bicp_priv.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 12 | * $brcm_Date: 2/3/05 11:35a $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/icp/7038/bicp_priv.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/3 2/3/05 11:35a agin |
|---|
| 21 | * PR13212: RC6 support |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/2 9/16/03 7:03p brianlee |
|---|
| 24 | * Added enable/disable interrupt and ISR functions. |
|---|
| 25 | * |
|---|
| 26 | * Hydra_Software_Devel/1 7/31/03 10:39a brianlee |
|---|
| 27 | * Private ICAP functions. |
|---|
| 28 | * |
|---|
| 29 | ***************************************************************************/ |
|---|
| 30 | #ifndef BICP_PRIV_H__ |
|---|
| 31 | #define BICP_PRIV_H__ |
|---|
| 32 | |
|---|
| 33 | #include "bicp.h" |
|---|
| 34 | |
|---|
| 35 | #ifdef __cplusplus |
|---|
| 36 | extern "C" { |
|---|
| 37 | #endif |
|---|
| 38 | |
|---|
| 39 | /*************************************************************************** |
|---|
| 40 | Summary: |
|---|
| 41 | This function sets the glitch rejector count |
|---|
| 42 | |
|---|
| 43 | Description: |
|---|
| 44 | This function is used to set the glitch rejector count for an ICP channel |
|---|
| 45 | |
|---|
| 46 | Returns: |
|---|
| 47 | TODO: |
|---|
| 48 | |
|---|
| 49 | See Also: |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | ****************************************************************************/ |
|---|
| 53 | BERR_Code BICP_P_SetRejectCnt( |
|---|
| 54 | BICP_ChannelHandle hChn, /* Device channel handle */ |
|---|
| 55 | uint8_t clks /* number of clocks to reject */ |
|---|
| 56 | ); |
|---|
| 57 | |
|---|
| 58 | /*************************************************************************** |
|---|
| 59 | Summary: |
|---|
| 60 | This function enables ICAP int |
|---|
| 61 | |
|---|
| 62 | Description: |
|---|
| 63 | This function is used to enable an ICAP pin interrupt |
|---|
| 64 | |
|---|
| 65 | Returns: |
|---|
| 66 | TODO: |
|---|
| 67 | |
|---|
| 68 | See Also: |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | ****************************************************************************/ |
|---|
| 72 | void BICP_P_EnableInt( |
|---|
| 73 | BICP_ChannelHandle hChn /* Device channel handle */ |
|---|
| 74 | ); |
|---|
| 75 | |
|---|
| 76 | /*************************************************************************** |
|---|
| 77 | Summary: |
|---|
| 78 | This function disables ICAP int |
|---|
| 79 | |
|---|
| 80 | Description: |
|---|
| 81 | This function is used to disable an ICAP pin interrupt |
|---|
| 82 | |
|---|
| 83 | Returns: |
|---|
| 84 | TODO: |
|---|
| 85 | |
|---|
| 86 | See Also: |
|---|
| 87 | |
|---|
| 88 | |
|---|
| 89 | ****************************************************************************/ |
|---|
| 90 | void BICP_P_DisableInt( |
|---|
| 91 | BICP_ChannelHandle hChn /* Device channel handle */ |
|---|
| 92 | ); |
|---|
| 93 | |
|---|
| 94 | /*************************************************************************** |
|---|
| 95 | Summary: |
|---|
| 96 | This function is the ICAP ISR |
|---|
| 97 | |
|---|
| 98 | Description: |
|---|
| 99 | This function is the interrupt service routine for ICAP interrupt. |
|---|
| 100 | |
|---|
| 101 | Returns: |
|---|
| 102 | TODO: |
|---|
| 103 | |
|---|
| 104 | See Also: |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | ****************************************************************************/ |
|---|
| 108 | static void BICP_P_HandleInterrupt_Isr |
|---|
| 109 | ( |
|---|
| 110 | void *pParam1, /* Device channel handle */ |
|---|
| 111 | int parm2 /* not used */ |
|---|
| 112 | ); |
|---|
| 113 | |
|---|
| 114 | /*************************************************************************** |
|---|
| 115 | Summary: |
|---|
| 116 | This function is the RC6 protocol handler |
|---|
| 117 | |
|---|
| 118 | Description: |
|---|
| 119 | This function is will interpret the manchester encoding of the RC6 |
|---|
| 120 | protocol. |
|---|
| 121 | |
|---|
| 122 | Returns: |
|---|
| 123 | TODO: |
|---|
| 124 | |
|---|
| 125 | See Also: |
|---|
| 126 | |
|---|
| 127 | |
|---|
| 128 | ****************************************************************************/ |
|---|
| 129 | static void BICP_P_RC6Handle |
|---|
| 130 | ( |
|---|
| 131 | BICP_ChannelHandle hIcpChan, /* Device channel handle */ |
|---|
| 132 | unsigned char reg /* Value of icap status */ |
|---|
| 133 | ); |
|---|
| 134 | |
|---|
| 135 | #ifdef __cplusplus |
|---|
| 136 | } |
|---|
| 137 | #endif |
|---|
| 138 | |
|---|
| 139 | #endif |
|---|
| 140 | |
|---|
| 141 | |
|---|
| 142 | |
|---|