usart
Default mainpageat91libperipheralsusart
Description Graph
usart
 
Purpose
This module provides several definitions and methods for using an USART peripheral.

Usage
  1. Enable the USART peripheral clock in the PMC.
  2. Enable the required USART PIOs (see pio.h).
  3. Configure the UART by calling USART_Configure.
  4. Enable the transmitter and/or the receiver of the USART using USART_SetTransmitterEnabled and USART_SetReceiverEnabled.
  5. Send data through the USART using the USART_Write and USART_WriteBuffer methods.
  6. Receive data from the USART using the USART_Read and USART_ReadBuffer functions; the availability of data can be polled with USART_IsDataAvailable.
  7. Disable the transmitter and/or the receiver of the USART with USART_SetTransmitterEnabled and USART_SetReceiverEnabled.
 
Source
The documentation for this Directory was generated from the following files:
  • usart.h