\section{aversive\_\-10-03-12/modules/comm/uart/uart\_\-recv\_\-nowait.c File Reference}
\label{uart__recv__nowait_8c}\index{aversive\_\-10-03-12/modules/comm/uart/uart\_\-recv\_\-nowait.c@{aversive\_\-10-03-12/modules/comm/uart/uart\_\-recv\_\-nowait.c}}
{\tt \#include $<$uart.h$>$}\par
{\tt \#include $<$uart\_\-defs.h$>$}\par
{\tt \#include $<$uart\_\-private.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf uart\_\-recv\_\-nowait} (uint8\_\-t num)
\end{CompactItemize}


\subsection{Function Documentation}
\index{uart\_\-recv\_\-nowait.c@{uart\_\-recv\_\-nowait.c}!uart\_\-recv\_\-nowait@{uart\_\-recv\_\-nowait}}
\index{uart\_\-recv\_\-nowait@{uart\_\-recv\_\-nowait}!uart_recv_nowait.c@{uart\_\-recv\_\-nowait.c}}
\subsubsection[uart\_\-recv\_\-nowait]{\setlength{\rightskip}{0pt plus 5cm}int uart\_\-recv\_\-nowait (uint8\_\-t {\em num})}\label{uart__recv__nowait_8c_11af1765bcbdcd9cb2b0b17ce9cbdc11}


uart\_\-recv returns the next character, taken from the fifo (if any). If there is nothing to read, the function returns -1. 

Definition at line 29 of file uart\_\-recv\_\-nowait.c.

References cirbuf\_\-del\_\-tail(), cirbuf\_\-get\_\-tail(), CIRBUF\_\-IS\_\-EMPTY, parse\_\-doc::elt, g\_\-rx\_\-fifo, IRQ\_\-LOCK, and IRQ\_\-UNLOCK.

Referenced by uart\_\-recv().