rs232d.c File Reference

Go to the source code of this file.

Defines

#define BUFFERSIZE   128
#define TCPPORT   23

Functions

void StreamCopy (FILE *istream, FILE *ostream, char *cop)
void Receiver (void *arg)
int main (void)


Define Documentation

#define BUFFERSIZE   128

Examples:
rs232d/rs232d.c.

Definition at line 100 of file rs232d.c.

Referenced by StreamCopy().

#define TCPPORT   23

Examples:
rs232d/rs232d.c.

Definition at line 101 of file rs232d.c.

Referenced by main().


Function Documentation

void StreamCopy ( FILE istream,
FILE ostream,
char *  cop 
)

Examples:
rs232d/rs232d.c.

Definition at line 112 of file rs232d.c.

References BUFFERSIZE, fflush(), fread(), free, fwrite(), and malloc.

Referenced by main(), and Receiver().

void Receiver ( void *  arg  ) 

Examples:
rs232d/rs232d.c.

Definition at line 133 of file rs232d.c.

References NutThreadSetPriority(), NutThreadYield(), and StreamCopy().

Referenced by main().

int main ( void   ) 

Definition at line 156 of file rs232d.c.

References _fdopen(), _fileno(), _ioctl(), DEV_ETHER, DEV_ETHER_NAME, DEV_UART, DEV_UART_NAME, fclose(), fopen(), inet_addr(), NutDhcpIfConfig(), NutNetIfConfig(), NutRegisterDevice(), NutTcpAccept(), NutTcpCloseSocket(), NutTcpCreateSocket(), NutThreadCreate(), Receiver(), StreamCopy(), TCPPORT, and UART_SETSPEED.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/