version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
TARGET_NUCLEO_F030R8/stm32f0xx_cec.h@77:869cf507173a, 2014-02-14 (annotated)
- Committer:
- emilmont
- Date:
- Fri Feb 14 14:36:43 2014 +0000
- Revision:
- 77:869cf507173a
- Child:
- 81:7d30d6019079
Release 77 of the mbed library
Main changes:
* Add target NUCLEO_F030R8
* Add target NUCLEO_F401RE
* Add target NUCLEO_F103RB
* Add target NUCLEO_L152RE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 77:869cf507173a | 1 | /** |
emilmont | 77:869cf507173a | 2 | ****************************************************************************** |
emilmont | 77:869cf507173a | 3 | * @file stm32f0xx_cec.h |
emilmont | 77:869cf507173a | 4 | * @author MCD Application Team |
emilmont | 77:869cf507173a | 5 | * @version V1.3.0 |
emilmont | 77:869cf507173a | 6 | * @date 16-January-2014 |
emilmont | 77:869cf507173a | 7 | * @brief This file contains all the functions prototypes for the CEC firmware |
emilmont | 77:869cf507173a | 8 | * library, applicable only for STM32F051, STM32F042 and STM32F072 devices. |
emilmont | 77:869cf507173a | 9 | ****************************************************************************** |
emilmont | 77:869cf507173a | 10 | * @attention |
emilmont | 77:869cf507173a | 11 | * |
emilmont | 77:869cf507173a | 12 | * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> |
emilmont | 77:869cf507173a | 13 | * |
emilmont | 77:869cf507173a | 14 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); |
emilmont | 77:869cf507173a | 15 | * You may not use this file except in compliance with the License. |
emilmont | 77:869cf507173a | 16 | * You may obtain a copy of the License at: |
emilmont | 77:869cf507173a | 17 | * |
emilmont | 77:869cf507173a | 18 | * http://www.st.com/software_license_agreement_liberty_v2 |
emilmont | 77:869cf507173a | 19 | * |
emilmont | 77:869cf507173a | 20 | * Unless required by applicable law or agreed to in writing, software |
emilmont | 77:869cf507173a | 21 | * distributed under the License is distributed on an "AS IS" BASIS, |
emilmont | 77:869cf507173a | 22 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
emilmont | 77:869cf507173a | 23 | * See the License for the specific language governing permissions and |
emilmont | 77:869cf507173a | 24 | * limitations under the License. |
emilmont | 77:869cf507173a | 25 | * |
emilmont | 77:869cf507173a | 26 | ****************************************************************************** |
emilmont | 77:869cf507173a | 27 | */ |
emilmont | 77:869cf507173a | 28 | |
emilmont | 77:869cf507173a | 29 | /* Define to prevent recursive inclusion -------------------------------------*/ |
emilmont | 77:869cf507173a | 30 | #ifndef __STM32F0XX_CEC_H |
emilmont | 77:869cf507173a | 31 | #define __STM32F0XX_CEC_H |
emilmont | 77:869cf507173a | 32 | |
emilmont | 77:869cf507173a | 33 | #ifdef __cplusplus |
emilmont | 77:869cf507173a | 34 | extern "C" { |
emilmont | 77:869cf507173a | 35 | #endif |
emilmont | 77:869cf507173a | 36 | |
emilmont | 77:869cf507173a | 37 | /* Includes ------------------------------------------------------------------*/ |
emilmont | 77:869cf507173a | 38 | #include "stm32f0xx.h" |
emilmont | 77:869cf507173a | 39 | |
emilmont | 77:869cf507173a | 40 | /** @addtogroup STM32F0xx_StdPeriph_Driver |
emilmont | 77:869cf507173a | 41 | * @{ |
emilmont | 77:869cf507173a | 42 | */ |
emilmont | 77:869cf507173a | 43 | |
emilmont | 77:869cf507173a | 44 | /** @addtogroup CEC |
emilmont | 77:869cf507173a | 45 | * @{ |
emilmont | 77:869cf507173a | 46 | */ |
emilmont | 77:869cf507173a | 47 | /* Exported types ------------------------------------------------------------*/ |
emilmont | 77:869cf507173a | 48 | |
emilmont | 77:869cf507173a | 49 | /** |
emilmont | 77:869cf507173a | 50 | * @brief CEC Init structure definition |
emilmont | 77:869cf507173a | 51 | */ |
emilmont | 77:869cf507173a | 52 | typedef struct |
emilmont | 77:869cf507173a | 53 | { |
emilmont | 77:869cf507173a | 54 | uint32_t CEC_SignalFreeTime; /*!< Specifies the CEC Signal Free Time configuration. |
emilmont | 77:869cf507173a | 55 | This parameter can be a value of @ref CEC_Signal_Free_Time */ |
emilmont | 77:869cf507173a | 56 | uint32_t CEC_RxTolerance; /*!< Specifies the CEC Reception Tolerance. |
emilmont | 77:869cf507173a | 57 | This parameter can be a value of @ref CEC_RxTolerance */ |
emilmont | 77:869cf507173a | 58 | uint32_t CEC_StopReception; /*!< Specifies the CEC Stop Reception. |
emilmont | 77:869cf507173a | 59 | This parameter can be a value of @ref CEC_Stop_Reception */ |
emilmont | 77:869cf507173a | 60 | uint32_t CEC_BitRisingError; /*!< Specifies the CEC Bit Rising Error generation. |
emilmont | 77:869cf507173a | 61 | This parameter can be a value of @ref CEC_Bit_Rising_Error_Generation */ |
emilmont | 77:869cf507173a | 62 | uint32_t CEC_LongBitPeriodError; /*!< Specifies the CEC Long Bit Error generation. |
emilmont | 77:869cf507173a | 63 | This parameter can be a value of @ref CEC_Long_Bit_Error_Generation */ |
emilmont | 77:869cf507173a | 64 | uint32_t CEC_BRDNoGen; /*!< Specifies the CEC Broadcast Error generation. |
emilmont | 77:869cf507173a | 65 | This parameter can be a value of @ref CEC_BDR_No_Gen */ |
emilmont | 77:869cf507173a | 66 | uint32_t CEC_SFTOption; /*!< Specifies the CEC Signal Free Time option. |
emilmont | 77:869cf507173a | 67 | This parameter can be a value of @ref CEC_SFT_Option */ |
emilmont | 77:869cf507173a | 68 | |
emilmont | 77:869cf507173a | 69 | }CEC_InitTypeDef; |
emilmont | 77:869cf507173a | 70 | |
emilmont | 77:869cf507173a | 71 | /* Exported constants --------------------------------------------------------*/ |
emilmont | 77:869cf507173a | 72 | |
emilmont | 77:869cf507173a | 73 | /** @defgroup CEC_Exported_Constants |
emilmont | 77:869cf507173a | 74 | * @{ |
emilmont | 77:869cf507173a | 75 | */ |
emilmont | 77:869cf507173a | 76 | |
emilmont | 77:869cf507173a | 77 | /** @defgroup CEC_Signal_Free_Time |
emilmont | 77:869cf507173a | 78 | * @{ |
emilmont | 77:869cf507173a | 79 | */ |
emilmont | 77:869cf507173a | 80 | #define CEC_SignalFreeTime_Standard ((uint32_t)0x00000000) /*!< CEC Signal Free Time Standard */ |
emilmont | 77:869cf507173a | 81 | #define CEC_SignalFreeTime_1T ((uint32_t)0x00000001) /*!< CEC 1.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 82 | #define CEC_SignalFreeTime_2T ((uint32_t)0x00000002) /*!< CEC 2.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 83 | #define CEC_SignalFreeTime_3T ((uint32_t)0x00000003) /*!< CEC 3.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 84 | #define CEC_SignalFreeTime_4T ((uint32_t)0x00000004) /*!< CEC 4.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 85 | #define CEC_SignalFreeTime_5T ((uint32_t)0x00000005) /*!< CEC 5.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 86 | #define CEC_SignalFreeTime_6T ((uint32_t)0x00000006) /*!< CEC 6.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 87 | #define CEC_SignalFreeTime_7T ((uint32_t)0x00000007) /*!< CEC 7.5 nominal data bit periods */ |
emilmont | 77:869cf507173a | 88 | |
emilmont | 77:869cf507173a | 89 | #define IS_CEC_SIGNAL_FREE_TIME(TIME) (((TIME) == CEC_SignalFreeTime_Standard) || \ |
emilmont | 77:869cf507173a | 90 | ((TIME) == CEC_SignalFreeTime_1T)|| \ |
emilmont | 77:869cf507173a | 91 | ((TIME) == CEC_SignalFreeTime_2T)|| \ |
emilmont | 77:869cf507173a | 92 | ((TIME) == CEC_SignalFreeTime_3T)|| \ |
emilmont | 77:869cf507173a | 93 | ((TIME) == CEC_SignalFreeTime_4T)|| \ |
emilmont | 77:869cf507173a | 94 | ((TIME) == CEC_SignalFreeTime_5T)|| \ |
emilmont | 77:869cf507173a | 95 | ((TIME) == CEC_SignalFreeTime_6T)|| \ |
emilmont | 77:869cf507173a | 96 | ((TIME) == CEC_SignalFreeTime_7T)) |
emilmont | 77:869cf507173a | 97 | /** |
emilmont | 77:869cf507173a | 98 | * @} |
emilmont | 77:869cf507173a | 99 | */ |
emilmont | 77:869cf507173a | 100 | |
emilmont | 77:869cf507173a | 101 | /** @defgroup CEC_RxTolerance |
emilmont | 77:869cf507173a | 102 | * @{ |
emilmont | 77:869cf507173a | 103 | */ |
emilmont | 77:869cf507173a | 104 | #define CEC_RxTolerance_Standard ((uint32_t)0x00000000) /*!< Standard Tolerance Margin */ |
emilmont | 77:869cf507173a | 105 | #define CEC_RxTolerance_Extended CEC_CFGR_RXTOL /*!< Extended Tolerance Margin */ |
emilmont | 77:869cf507173a | 106 | |
emilmont | 77:869cf507173a | 107 | #define IS_CEC_RX_TOLERANCE(TOLERANCE) (((TOLERANCE) == CEC_RxTolerance_Standard) || \ |
emilmont | 77:869cf507173a | 108 | ((TOLERANCE) == CEC_RxTolerance_Extended)) |
emilmont | 77:869cf507173a | 109 | /** |
emilmont | 77:869cf507173a | 110 | * @} |
emilmont | 77:869cf507173a | 111 | */ |
emilmont | 77:869cf507173a | 112 | |
emilmont | 77:869cf507173a | 113 | /** @defgroup CEC_Stop_Reception |
emilmont | 77:869cf507173a | 114 | * @{ |
emilmont | 77:869cf507173a | 115 | */ |
emilmont | 77:869cf507173a | 116 | #define CEC_StopReception_Off ((uint32_t)0x00000000) /*!< No RX Stop on bit Rising Error (BRE) */ |
emilmont | 77:869cf507173a | 117 | #define CEC_StopReception_On CEC_CFGR_BRESTP /*!< RX Stop on bit Rising Error (BRE) */ |
emilmont | 77:869cf507173a | 118 | |
emilmont | 77:869cf507173a | 119 | #define IS_CEC_STOP_RECEPTION(RECEPTION) (((RECEPTION) == CEC_StopReception_On) || \ |
emilmont | 77:869cf507173a | 120 | ((RECEPTION) == CEC_StopReception_Off)) |
emilmont | 77:869cf507173a | 121 | /** |
emilmont | 77:869cf507173a | 122 | * @} |
emilmont | 77:869cf507173a | 123 | */ |
emilmont | 77:869cf507173a | 124 | |
emilmont | 77:869cf507173a | 125 | /** @defgroup CEC_Bit_Rising_Error_Generation |
emilmont | 77:869cf507173a | 126 | * @{ |
emilmont | 77:869cf507173a | 127 | */ |
emilmont | 77:869cf507173a | 128 | #define CEC_BitRisingError_Off ((uint32_t)0x00000000) /*!< Bit Rising Error generation turned Off */ |
emilmont | 77:869cf507173a | 129 | #define CEC_BitRisingError_On CEC_CFGR_BREGEN /*!< Bit Rising Error generation turned On */ |
emilmont | 77:869cf507173a | 130 | |
emilmont | 77:869cf507173a | 131 | #define IS_CEC_BIT_RISING_ERROR(ERROR) (((ERROR) == CEC_BitRisingError_Off) || \ |
emilmont | 77:869cf507173a | 132 | ((ERROR) == CEC_BitRisingError_On)) |
emilmont | 77:869cf507173a | 133 | /** |
emilmont | 77:869cf507173a | 134 | * @} |
emilmont | 77:869cf507173a | 135 | */ |
emilmont | 77:869cf507173a | 136 | |
emilmont | 77:869cf507173a | 137 | /** @defgroup CEC_Long_Bit_Error_Generation |
emilmont | 77:869cf507173a | 138 | * @{ |
emilmont | 77:869cf507173a | 139 | */ |
emilmont | 77:869cf507173a | 140 | #define CEC_LongBitPeriodError_Off ((uint32_t)0x00000000) /*!< Long Bit Period Error generation turned Off */ |
emilmont | 77:869cf507173a | 141 | #define CEC_LongBitPeriodError_On CEC_CFGR_LREGEN /*!< Long Bit Period Error generation turned On */ |
emilmont | 77:869cf507173a | 142 | |
emilmont | 77:869cf507173a | 143 | #define IS_CEC_LONG_BIT_PERIOD_ERROR(ERROR) (((ERROR) == CEC_LongBitPeriodError_Off) || \ |
emilmont | 77:869cf507173a | 144 | ((ERROR) == CEC_LongBitPeriodError_On)) |
emilmont | 77:869cf507173a | 145 | /** |
emilmont | 77:869cf507173a | 146 | * @} |
emilmont | 77:869cf507173a | 147 | */ |
emilmont | 77:869cf507173a | 148 | |
emilmont | 77:869cf507173a | 149 | /** @defgroup CEC_BDR_No_Gen |
emilmont | 77:869cf507173a | 150 | * @{ |
emilmont | 77:869cf507173a | 151 | */ |
emilmont | 77:869cf507173a | 152 | |
emilmont | 77:869cf507173a | 153 | #define CEC_BRDNoGen_Off ((uint32_t)0x00000000) /*!< Broadcast Bit Rising Error generation turned Off */ |
emilmont | 77:869cf507173a | 154 | #define CEC_BRDNoGen_On CEC_CFGR_BRDNOGEN /*!< Broadcast Bit Rising Error generation turned On */ |
emilmont | 77:869cf507173a | 155 | |
emilmont | 77:869cf507173a | 156 | #define IS_CEC_BDR_NO_GEN_ERROR(ERROR) (((ERROR) == CEC_BRDNoGen_Off) || \ |
emilmont | 77:869cf507173a | 157 | ((ERROR) == CEC_BRDNoGen_On)) |
emilmont | 77:869cf507173a | 158 | /** |
emilmont | 77:869cf507173a | 159 | * @} |
emilmont | 77:869cf507173a | 160 | */ |
emilmont | 77:869cf507173a | 161 | |
emilmont | 77:869cf507173a | 162 | /** @defgroup CEC_SFT_Option |
emilmont | 77:869cf507173a | 163 | * @{ |
emilmont | 77:869cf507173a | 164 | */ |
emilmont | 77:869cf507173a | 165 | #define CEC_SFTOption_Off ((uint32_t)0x00000000) /*!< SFT option turned Off */ |
emilmont | 77:869cf507173a | 166 | #define CEC_SFTOption_On CEC_CFGR_SFTOPT /*!< SFT option turned On */ |
emilmont | 77:869cf507173a | 167 | |
emilmont | 77:869cf507173a | 168 | #define IS_CEC_SFT_OPTION(OPTION) (((OPTION) == CEC_SFTOption_Off) || \ |
emilmont | 77:869cf507173a | 169 | ((OPTION) == CEC_SFTOption_On)) |
emilmont | 77:869cf507173a | 170 | /** |
emilmont | 77:869cf507173a | 171 | * @} |
emilmont | 77:869cf507173a | 172 | */ |
emilmont | 77:869cf507173a | 173 | |
emilmont | 77:869cf507173a | 174 | /** @defgroup CEC_Own_Address |
emilmont | 77:869cf507173a | 175 | * @{ |
emilmont | 77:869cf507173a | 176 | */ |
emilmont | 77:869cf507173a | 177 | #define IS_CEC_ADDRESS(ADDRESS) ((ADDRESS) < 0x10) |
emilmont | 77:869cf507173a | 178 | |
emilmont | 77:869cf507173a | 179 | /** |
emilmont | 77:869cf507173a | 180 | * @} |
emilmont | 77:869cf507173a | 181 | */ |
emilmont | 77:869cf507173a | 182 | |
emilmont | 77:869cf507173a | 183 | /** @defgroup CEC_Interrupt_Configuration_definition |
emilmont | 77:869cf507173a | 184 | * @{ |
emilmont | 77:869cf507173a | 185 | */ |
emilmont | 77:869cf507173a | 186 | #define CEC_IT_TXACKE CEC_IER_TXACKEIE |
emilmont | 77:869cf507173a | 187 | #define CEC_IT_TXERR CEC_IER_TXERRIE |
emilmont | 77:869cf507173a | 188 | #define CEC_IT_TXUDR CEC_IER_TXUDRIE |
emilmont | 77:869cf507173a | 189 | #define CEC_IT_TXEND CEC_IER_TXENDIE |
emilmont | 77:869cf507173a | 190 | #define CEC_IT_TXBR CEC_IER_TXBRIE |
emilmont | 77:869cf507173a | 191 | #define CEC_IT_ARBLST CEC_IER_ARBLSTIE |
emilmont | 77:869cf507173a | 192 | #define CEC_IT_RXACKE CEC_IER_RXACKEIE |
emilmont | 77:869cf507173a | 193 | #define CEC_IT_LBPE CEC_IER_LBPEIE |
emilmont | 77:869cf507173a | 194 | #define CEC_IT_SBPE CEC_IER_SBPEIE |
emilmont | 77:869cf507173a | 195 | #define CEC_IT_BRE CEC_IER_BREIEIE |
emilmont | 77:869cf507173a | 196 | #define CEC_IT_RXOVR CEC_IER_RXOVRIE |
emilmont | 77:869cf507173a | 197 | #define CEC_IT_RXEND CEC_IER_RXENDIE |
emilmont | 77:869cf507173a | 198 | #define CEC_IT_RXBR CEC_IER_RXBRIE |
emilmont | 77:869cf507173a | 199 | |
emilmont | 77:869cf507173a | 200 | #define IS_CEC_IT(IT) ((((IT) & (uint32_t)0xFFFFE000) == 0x00) && ((IT) != 0x00)) |
emilmont | 77:869cf507173a | 201 | |
emilmont | 77:869cf507173a | 202 | #define IS_CEC_GET_IT(IT) (((IT) == CEC_IT_TXACKE) || \ |
emilmont | 77:869cf507173a | 203 | ((IT) == CEC_IT_TXERR)|| \ |
emilmont | 77:869cf507173a | 204 | ((IT) == CEC_IT_TXUDR)|| \ |
emilmont | 77:869cf507173a | 205 | ((IT) == CEC_IT_TXEND)|| \ |
emilmont | 77:869cf507173a | 206 | ((IT) == CEC_IT_TXBR)|| \ |
emilmont | 77:869cf507173a | 207 | ((IT) == CEC_IT_ARBLST)|| \ |
emilmont | 77:869cf507173a | 208 | ((IT) == CEC_IT_RXACKE)|| \ |
emilmont | 77:869cf507173a | 209 | ((IT) == CEC_IT_LBPE)|| \ |
emilmont | 77:869cf507173a | 210 | ((IT) == CEC_IT_SBPE)|| \ |
emilmont | 77:869cf507173a | 211 | ((IT) == CEC_IT_BRE)|| \ |
emilmont | 77:869cf507173a | 212 | ((IT) == CEC_IT_RXOVR)|| \ |
emilmont | 77:869cf507173a | 213 | ((IT) == CEC_IT_RXEND)|| \ |
emilmont | 77:869cf507173a | 214 | ((IT) == CEC_IT_RXBR)) |
emilmont | 77:869cf507173a | 215 | /** |
emilmont | 77:869cf507173a | 216 | * @} |
emilmont | 77:869cf507173a | 217 | */ |
emilmont | 77:869cf507173a | 218 | |
emilmont | 77:869cf507173a | 219 | /** @defgroup CEC_ISR_register_flags_definition |
emilmont | 77:869cf507173a | 220 | * @{ |
emilmont | 77:869cf507173a | 221 | */ |
emilmont | 77:869cf507173a | 222 | #define CEC_FLAG_TXACKE CEC_ISR_TXACKE |
emilmont | 77:869cf507173a | 223 | #define CEC_FLAG_TXERR CEC_ISR_TXERR |
emilmont | 77:869cf507173a | 224 | #define CEC_FLAG_TXUDR CEC_ISR_TXUDR |
emilmont | 77:869cf507173a | 225 | #define CEC_FLAG_TXEND CEC_ISR_TXEND |
emilmont | 77:869cf507173a | 226 | #define CEC_FLAG_TXBR CEC_ISR_TXBR |
emilmont | 77:869cf507173a | 227 | #define CEC_FLAG_ARBLST CEC_ISR_ARBLST |
emilmont | 77:869cf507173a | 228 | #define CEC_FLAG_RXACKE CEC_ISR_RXACKE |
emilmont | 77:869cf507173a | 229 | #define CEC_FLAG_LBPE CEC_ISR_LBPE |
emilmont | 77:869cf507173a | 230 | #define CEC_FLAG_SBPE CEC_ISR_SBPE |
emilmont | 77:869cf507173a | 231 | #define CEC_FLAG_BRE CEC_ISR_BRE |
emilmont | 77:869cf507173a | 232 | #define CEC_FLAG_RXOVR CEC_ISR_RXOVR |
emilmont | 77:869cf507173a | 233 | #define CEC_FLAG_RXEND CEC_ISR_RXEND |
emilmont | 77:869cf507173a | 234 | #define CEC_FLAG_RXBR CEC_ISR_RXBR |
emilmont | 77:869cf507173a | 235 | |
emilmont | 77:869cf507173a | 236 | #define IS_CEC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFE000) == 0x00) && ((FLAG) != 0x00)) |
emilmont | 77:869cf507173a | 237 | |
emilmont | 77:869cf507173a | 238 | #define IS_CEC_GET_FLAG(FLAG) (((FLAG) == CEC_FLAG_TXACKE) || \ |
emilmont | 77:869cf507173a | 239 | ((FLAG) == CEC_FLAG_TXERR)|| \ |
emilmont | 77:869cf507173a | 240 | ((FLAG) == CEC_FLAG_TXUDR)|| \ |
emilmont | 77:869cf507173a | 241 | ((FLAG) == CEC_FLAG_TXEND)|| \ |
emilmont | 77:869cf507173a | 242 | ((FLAG) == CEC_FLAG_TXBR)|| \ |
emilmont | 77:869cf507173a | 243 | ((FLAG) == CEC_FLAG_ARBLST)|| \ |
emilmont | 77:869cf507173a | 244 | ((FLAG) == CEC_FLAG_RXACKE)|| \ |
emilmont | 77:869cf507173a | 245 | ((FLAG) == CEC_FLAG_LBPE)|| \ |
emilmont | 77:869cf507173a | 246 | ((FLAG) == CEC_FLAG_SBPE)|| \ |
emilmont | 77:869cf507173a | 247 | ((FLAG) == CEC_FLAG_BRE)|| \ |
emilmont | 77:869cf507173a | 248 | ((FLAG) == CEC_FLAG_RXOVR)|| \ |
emilmont | 77:869cf507173a | 249 | ((FLAG) == CEC_FLAG_RXEND)|| \ |
emilmont | 77:869cf507173a | 250 | ((FLAG) == CEC_FLAG_RXBR)) |
emilmont | 77:869cf507173a | 251 | /** |
emilmont | 77:869cf507173a | 252 | * @} |
emilmont | 77:869cf507173a | 253 | */ |
emilmont | 77:869cf507173a | 254 | |
emilmont | 77:869cf507173a | 255 | /** |
emilmont | 77:869cf507173a | 256 | * @} |
emilmont | 77:869cf507173a | 257 | */ |
emilmont | 77:869cf507173a | 258 | |
emilmont | 77:869cf507173a | 259 | /* Exported macro ------------------------------------------------------------*/ |
emilmont | 77:869cf507173a | 260 | /* Exported functions ------------------------------------------------------- */ |
emilmont | 77:869cf507173a | 261 | |
emilmont | 77:869cf507173a | 262 | /* Function used to set the CEC configuration to the default reset state *****/ |
emilmont | 77:869cf507173a | 263 | void CEC_DeInit(void); |
emilmont | 77:869cf507173a | 264 | |
emilmont | 77:869cf507173a | 265 | /* CEC_Initialization and Configuration functions *****************************/ |
emilmont | 77:869cf507173a | 266 | void CEC_Init(CEC_InitTypeDef* CEC_InitStruct); |
emilmont | 77:869cf507173a | 267 | void CEC_StructInit(CEC_InitTypeDef* CEC_InitStruct); |
emilmont | 77:869cf507173a | 268 | void CEC_Cmd(FunctionalState NewState); |
emilmont | 77:869cf507173a | 269 | void CEC_ListenModeCmd(FunctionalState NewState); |
emilmont | 77:869cf507173a | 270 | void CEC_OwnAddressConfig(uint8_t CEC_OwnAddress); |
emilmont | 77:869cf507173a | 271 | void CEC_OwnAddressClear(void); |
emilmont | 77:869cf507173a | 272 | |
emilmont | 77:869cf507173a | 273 | /* CEC_Data transfers functions ***********************************************/ |
emilmont | 77:869cf507173a | 274 | void CEC_SendData(uint8_t Data); |
emilmont | 77:869cf507173a | 275 | uint8_t CEC_ReceiveData(void); |
emilmont | 77:869cf507173a | 276 | void CEC_StartOfMessage(void); |
emilmont | 77:869cf507173a | 277 | void CEC_EndOfMessage(void); |
emilmont | 77:869cf507173a | 278 | |
emilmont | 77:869cf507173a | 279 | /* CEC_Interrupts and flags management functions ******************************/ |
emilmont | 77:869cf507173a | 280 | void CEC_ITConfig(uint16_t CEC_IT, FunctionalState NewState); |
emilmont | 77:869cf507173a | 281 | FlagStatus CEC_GetFlagStatus(uint16_t CEC_FLAG); |
emilmont | 77:869cf507173a | 282 | void CEC_ClearFlag(uint32_t CEC_FLAG); |
emilmont | 77:869cf507173a | 283 | ITStatus CEC_GetITStatus(uint16_t CEC_IT); |
emilmont | 77:869cf507173a | 284 | void CEC_ClearITPendingBit(uint16_t CEC_IT); |
emilmont | 77:869cf507173a | 285 | |
emilmont | 77:869cf507173a | 286 | #ifdef __cplusplus |
emilmont | 77:869cf507173a | 287 | } |
emilmont | 77:869cf507173a | 288 | #endif |
emilmont | 77:869cf507173a | 289 | |
emilmont | 77:869cf507173a | 290 | #endif /* __STM32F0XX_CEC_H */ |
emilmont | 77:869cf507173a | 291 | |
emilmont | 77:869cf507173a | 292 | /** |
emilmont | 77:869cf507173a | 293 | * @} |
emilmont | 77:869cf507173a | 294 | */ |
emilmont | 77:869cf507173a | 295 | |
emilmont | 77:869cf507173a | 296 | /** |
emilmont | 77:869cf507173a | 297 | * @} |
emilmont | 77:869cf507173a | 298 | */ |
emilmont | 77:869cf507173a | 299 | |
emilmont | 77:869cf507173a | 300 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |