\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}