Atmel Software Framework

stdio_usb.h File Reference

USB Standard I/O Serial Management.

This file defines a useful set of functions for the Stdio Serial interface on AVR devices.

Copyright (c) 2011-2015 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <stdio.h>
#include <udc.h>
#include <udi_cdc.h>

Functions

int _read (int *f)
 
int _write (char c, int *f)
 
void stdio_usb_disable (void)
 Disables the stdio in USB Serial Mode. More...
 
bool stdio_usb_enable (void)
 Enables the stdio in USB Serial Mode. More...
 
void stdio_usb_getchar (void volatile *usart, char *data)
 Waits until a character is received, and returns it. More...
 
void stdio_usb_init (void)
 Initializes the stdio in USB Serial Mode. More...
 
int stdio_usb_putchar (volatile void *usart, char data)
 Sends a character with the USART. More...
 

Variables

void(* ptr_get )(void volatile *, char *)
 Pointer to the external low level read function. More...
 
int(* ptr_put )(void volatile *, char)
 Pointer to the external low level write function. More...
 
volatile void *volatile stdio_base
 Pointer to the base of the USART module instance to use for stdio. More...