| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions
BlueNRG1_uart.c File Reference

This file provides all the UART firmware functions. More...

`#include "BlueNRG1_uart.h"`

Go to the source code of this file.

## Macros

#define | UART_CLOCK (16000000)

## Functions

void | UART_Cmd (FunctionalState NewState)
| Enables or disables the UART peripheral. More...
void | UART_DeInit (void)
| Deinitializes the UART peripheral registers to their default reset values. More...
void | UART_Init (UART_InitType *UART_InitStruct)
| Initializes the UART peripheral according to the specified parameters in the UART_InitStruct. More...
void | UART_StructInit (UART_InitType *UART_InitStruct)
| Fills each UART_InitStruct member with its default value. More...
void | UART_ITConfig (uint16_t UART_IT, FunctionalState NewState)
| Enables or disables the specified UART interrupts. More...
void | UART_SendData (uint16_t Data)
| Transmits single data through the UART peripheral. More...
uint16_t | UART_ReceiveData (void)
| Returns the most recent received data by the UART peripheral. More...
void | UART_BreakCmd (FunctionalState NewState)
| Enables or disables the break command. More...
void | UART_RequestToSendCmd (FunctionalState NewState)
| Enables or disables the request to send command. More...
FlagStatus | UART_GetFlagStatus (uint32_t UART_FLAG)
| Checks whether the specified UART flag is set or not. More...
void | UART_ClearFlag (uint32_t UART_FLAG)
| Clears the UART pending flags. More...
ITStatus | UART_GetITStatus (uint16_t UART_IT)
| Checks whether the specified UART interrupt has occurred or not. More...
void | UART_ClearITPendingBit (uint16_t UART_IT)
| Clears the UART interrupt pending bits. More...
void | UART_TxFifoIrqLevelConfig (uint8_t UART_TxFifo_Level)
| Sets the UART interrupt FIFO level. More...
void | UART_RxFifoIrqLevelConfig (uint8_t UART_RxFifo_Level)
| Sets the UART interrupt FIFO level. More...
void | UART_TimeoutConfig (uint32_t UART_Timeout)
| UART timeout value for the interrupt. The receive timeout interrupt is asserted when the RX FIFO is not empty and no further data is received over a programmed timeout period. More...
void | UART_DMACmd (uint8_t UART_DMAReq, FunctionalState NewState)
| Enables or disables the UART DMA interface. More...
void | UART_SwFlowControl (FunctionalState NewState)
| Enables or disables the UART software flow control. More...
void | UART_RxSwFlowControlMode (uint8_t UART_RxSwFlowCtrlMode)
| Sets the UART flow control mode for reception. More...
void | UART_TxSwFlowControlMode (uint8_t UART_TxSwFlowCtrlMode)
| Sets the UART flow control mode for transmission. More...
void | UART_XonAnyBit (FunctionalState NewState)
| Enables or disables the UART XON any bit. More...
void | UART_SpecialCharDetect (FunctionalState NewState)
| Enables or disables the UART special character detection. More...
void | UART_Xon1Char (uint8_t UART_XonChar)
| Sets the UART flow control mode for transmission. More...
void | UART_Xon2Char (uint8_t UART_XonChar)
| Sets the UART flow control mode for transmission. More...
void | UART_Xoff1Char (uint8_t UART_XoffChar)
| Sets the UART flow control mode for transmission. More...
void | UART_Xoff2Char (uint8_t UART_XoffChar)
| Sets the UART flow control mode for transmission. More...

## Detailed Description

This file provides all the UART firmware functions.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2016 STMicroelectronics

Definition in file BlueNRG1_uart.c.