cacomantis / arch / at90usb128 / lib_mcu / usart / usart.h

Andrew Cooper 7cbc410 












Andrew Cooper a4ed77d 
Andrew Cooper 7cbc410 
Andrew Cooper a4ed77d 
Andrew Cooper 7cbc410 
Andrew Cooper a4ed77d 
Andrew Cooper 7cbc410 
Andrew Cooper a4ed77d 




Andrew Cooper 7cbc410 

Andrew Cooper a4ed77d 







Andrew Cooper 7cbc410 
Andrew Cooper a4ed77d 






/**
 * @file
 *
 * @brief API for AT90USB128x USART module
 *
 * @author               Andrew Cooper
 *
 */

/* Copyright (c) 2009 Andrew Cooper. All rights reserved.
 *
 */

//_____ I N C L U D E S ________________________________________________________

//_____ M A C R O S ____________________________________________________________

//_____ D E C L A R A T I O N __________________________________________________

/**
 * Initialize USART0 hardware, buffers and interrupt handlers.
 *
 * @param baudrate target bit clock for USART, already in proper format for UBRR
 */
void USART0_Init( unsigned int baudrate );

/**
 * Copy any received frames into data.
 *
 * @param data buffer for received frames
 * @param size of data buffer
 * @return number of frames copied
 */
int USART0_Receive( unsigned char * data, int size );

/**
 * Copy frames to transmit queue.
 *
 * @param data buffer for outgoing data
 * @param size of data buffer
 * @return number of frames copied; may be less than size if queue becomes full
 */
int USART0_Transmit( unsigned char const * data, int size );
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.