##// END OF EJS Templates
First init
First init

File last commit:

r0:7d185b578514 default
r0:7d185b578514 default
Show More
streamdevices.tex
18 lines | 548 B | application/x-tex | TexLexer
\chapter{Stream devices}
\paragraph{Introduction}
This familly is composed of all the devices that threat data as an unaddressed stream. For example SPI and UART are both streams devices, a sofware or hardware FIFO is olso a stream device.
\section{The stream device representation}
The stream device is represented by a standard structure.
\begin{lstlisting}
struct streamDev
{
int writen(void* data,int n);
int write(void* data);
int readn(void* data,int n);
int read(void* data);
int streamPt;
void* dev;
}
\end{lstlisting}