Atmel Software Framework

host/example/uart_uc3.c File Reference

UART functions.

Copyright (C) 2012 Atmel Corporation. All rights reserved.

#include <asf.h>
#include "conf_usb_host.h"
#include "main.h"
#include "ui.h"

Functions

 ISR (usart_interrupt, USART_IRQ_GROUP, 3)
 
void uart_close (void)
 Closes communication line. More...
 
void uart_config (usb_cdc_line_coding_t *cfg)
 Configures communication line. More...
 
void uart_open (void)
 Opens communication line. More...
 
void uart_rx_notify (void)
 Callback called by CDC interface when the CDC device has received data. More...
 

Variables

static usart_options_t usart_options
 

void uart_close ( void  )

Closes communication line.

void uart_open ( void  )
void uart_rx_notify ( void  )

Callback called by CDC interface when the CDC device has received data.

usart_options_t usart_options
static
Initial value:
= {
.baudrate = 115200,
.charlength = 8,
.paritytype = USART_NO_PARITY,
.stopbits = USART_1_STOPBIT,
.channelmode = USART_NORMAL_CHMODE,
}
#define USART_NO_PARITY
Don&#39;t use a parity bit.
Definition: usart.h:88
#define USART_NORMAL_CHMODE
Normal communication.
Definition: usart.h:103
#define USART_1_STOPBIT
Use 1 stop bit.
Definition: usart.h:95