STM32F0 Standard Peripheral bibliotheek
1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
|
This file contains all the functions prototypes for the CEC firmware library. More...
#include "stm32f0xx.h"
Go to the source code of this file.
Data Structures | |
struct | CEC_InitTypeDef |
CEC Init structure definition. More... | |
Macros | |
#define | CEC_SignalFreeTime_Standard ((uint32_t)0x00000000) |
#define | CEC_SignalFreeTime_1T ((uint32_t)0x00000001) |
#define | CEC_SignalFreeTime_2T ((uint32_t)0x00000002) |
#define | CEC_SignalFreeTime_3T ((uint32_t)0x00000003) |
#define | CEC_SignalFreeTime_4T ((uint32_t)0x00000004) |
#define | CEC_SignalFreeTime_5T ((uint32_t)0x00000005) |
#define | CEC_SignalFreeTime_6T ((uint32_t)0x00000006) |
#define | CEC_SignalFreeTime_7T ((uint32_t)0x00000007) |
#define | IS_CEC_SIGNAL_FREE_TIME(TIME) |
#define | CEC_RxTolerance_Standard ((uint32_t)0x00000000) |
#define | CEC_RxTolerance_Extended CEC_CFGR_RXTOL |
#define | IS_CEC_RX_TOLERANCE(TOLERANCE) |
#define | CEC_StopReception_Off ((uint32_t)0x00000000) |
#define | CEC_StopReception_On CEC_CFGR_BRESTP |
#define | IS_CEC_STOP_RECEPTION(RECEPTION) |
#define | CEC_BitRisingError_Off ((uint32_t)0x00000000) |
#define | CEC_BitRisingError_On CEC_CFGR_BREGEN |
#define | IS_CEC_BIT_RISING_ERROR(ERROR) |
#define | CEC_LongBitPeriodError_Off ((uint32_t)0x00000000) |
#define | CEC_LongBitPeriodError_On CEC_CFGR_LREGEN |
#define | IS_CEC_LONG_BIT_PERIOD_ERROR(ERROR) |
#define | CEC_BRDNoGen_Off ((uint32_t)0x00000000) |
#define | CEC_BRDNoGen_On CEC_CFGR_BRDNOGEN |
#define | IS_CEC_BDR_NO_GEN_ERROR(ERROR) |
#define | CEC_SFTOption_Off ((uint32_t)0x00000000) |
#define | CEC_SFTOption_On CEC_CFGR_SFTOPT |
#define | IS_CEC_SFT_OPTION(OPTION) |
#define | IS_CEC_ADDRESS(ADDRESS) ((ADDRESS) < 0x10) |
#define | CEC_IT_TXACKE CEC_IER_TXACKEIE |
#define | CEC_IT_TXERR CEC_IER_TXERRIE |
#define | CEC_IT_TXUDR CEC_IER_TXUDRIE |
#define | CEC_IT_TXEND CEC_IER_TXENDIE |
#define | CEC_IT_TXBR CEC_IER_TXBRIE |
#define | CEC_IT_ARBLST CEC_IER_ARBLSTIE |
#define | CEC_IT_RXACKE CEC_IER_RXACKEIE |
#define | CEC_IT_LBPE CEC_IER_LBPEIE |
#define | CEC_IT_SBPE CEC_IER_SBPEIE |
#define | CEC_IT_BRE CEC_IER_BREIEIE |
#define | CEC_IT_RXOVR CEC_IER_RXOVRIE |
#define | CEC_IT_RXEND CEC_IER_RXENDIE |
#define | CEC_IT_RXBR CEC_IER_RXBRIE |
#define | IS_CEC_IT(IT) ((((IT) & (uint32_t)0xFFFFE000) == 0x00) && ((IT) != 0x00)) |
#define | IS_CEC_GET_IT(IT) |
#define | CEC_FLAG_TXACKE CEC_ISR_TXACKE |
#define | CEC_FLAG_TXERR CEC_ISR_TXERR |
#define | CEC_FLAG_TXUDR CEC_ISR_TXUDR |
#define | CEC_FLAG_TXEND CEC_ISR_TXEND |
#define | CEC_FLAG_TXBR CEC_ISR_TXBR |
#define | CEC_FLAG_ARBLST CEC_ISR_ARBLST |
#define | CEC_FLAG_RXACKE CEC_ISR_RXACKE |
#define | CEC_FLAG_LBPE CEC_ISR_LBPE |
#define | CEC_FLAG_SBPE CEC_ISR_SBPE |
#define | CEC_FLAG_BRE CEC_ISR_BRE |
#define | CEC_FLAG_RXOVR CEC_ISR_RXOVR |
#define | CEC_FLAG_RXEND CEC_ISR_RXEND |
#define | CEC_FLAG_RXBR CEC_ISR_RXBR |
#define | IS_CEC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFE000) == 0x00) && ((FLAG) != 0x00)) |
#define | IS_CEC_GET_FLAG(FLAG) |
Functions | |
void | CEC_DeInit (void) |
Deinitializes the CEC peripheral registers to their default reset values. More... | |
void | CEC_Init (CEC_InitTypeDef *CEC_InitStruct) |
Initializes the CEC peripheral according to the specified parameters in the CEC_InitStruct. More... | |
void | CEC_StructInit (CEC_InitTypeDef *CEC_InitStruct) |
Fills each CEC_InitStruct member with its default value. More... | |
void | CEC_Cmd (FunctionalState NewState) |
Enables or disables the CEC peripheral. More... | |
void | CEC_ListenModeCmd (FunctionalState NewState) |
Enables or disables the CEC Listen Mode. More... | |
void | CEC_OwnAddressConfig (uint8_t CEC_OwnAddress) |
Defines the Own Address of the CEC device. More... | |
void | CEC_OwnAddressClear (void) |
Clears the Own Address of the CEC device. More... | |
void | CEC_SendData (uint8_t Data) |
Transmits single data through the CEC peripheral. More... | |
uint8_t | CEC_ReceiveData (void) |
Returns the most recent received data by the CEC peripheral. More... | |
void | CEC_StartOfMessage (void) |
Starts a new message. More... | |
void | CEC_EndOfMessage (void) |
Transmits message with an EOM bit. More... | |
void | CEC_ITConfig (uint16_t CEC_IT, FunctionalState NewState) |
Enables or disables the selected CEC interrupts. More... | |
FlagStatus | CEC_GetFlagStatus (uint16_t CEC_FLAG) |
Gets the CEC flag status. More... | |
void | CEC_ClearFlag (uint32_t CEC_FLAG) |
Clears the CEC's pending flags. More... | |
ITStatus | CEC_GetITStatus (uint16_t CEC_IT) |
Checks whether the specified CEC interrupt has occurred or not. More... | |
void | CEC_ClearITPendingBit (uint16_t CEC_IT) |
Clears the CEC's interrupt pending bits. More... | |
This file contains all the functions prototypes for the CEC firmware library.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.