MEGA-1284P Xplained Example Application
Functions

USART driver

Functions

uint8_t usart1_getchar (void)
 Function to get a char from the USART if it is ready.
int usart1_putchar (int c)
 Function to transmit a char using USART1 if it is ready.

Detailed Description

The USART driver is used to send or receive characters using USART1.


Function Documentation

uint8_t usart1_getchar ( void  )

Function to get a char from the USART if it is ready.

Return values:
UDR1Returns USART1 data register
int usart1_putchar ( int  c)

Function to transmit a char using USART1 if it is ready.

Parameters:
cVariable used to transmit a character using USART1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines