TarzaNN
TarzaNN neural network simulator
Defines | Functions | Variables
C:/Users/albertlr/projects/TarzaNN/TarzaNN/w32seria.cpp File Reference
#include "stdafx.h"
#include <windows.h>
#include "W32SERIA.H"
#include <stdio.h>
#include <time.h>
#include <mmsystem.h>

Defines

#define NO_PARITY   0x00
#define EVEN_PARITY   0x18
#define ODD_PARITY   0x08
#define INT_REVERSED

Functions

portstream_fd SetSerial (char *, int, int, int, int)
portstream_fd openserial (char *portname)
char setbaudrate (int baudrate)
char closeserial (portstream_fd portstream)
char SerialBytesOut (portstream_fd portstream, unsigned char *buffer, int charCnt)
char SerialBytesIn (portstream_fd portstream, unsigned char *buffer, unsigned int charCnt, long timeout)
char PeekByte (portstream_fd portstream, unsigned char *peekedByte)
int numPendingInputChars (portstream_fd portstream)
char FlushInputBuffer (portstream_fd portstream)
char SerialStringOut (portstream_fd portstream, unsigned char *buffer)
char ReadSerialLine (portstream_fd portstream, unsigned char *StringBuffer, long timeout, int *charsRead)
void do_delay (long timeInMsec)
char GetSignedShort (portstream_fd portstream, signed short *SHORTval, long timeout)
char PutSignedShort (portstream_fd portstream, signed short *SHORTval)
char GetUnsignedShort (portstream_fd portstream, unsigned short *USHORTval, long timeout)
char PutUnsignedShort (portstream_fd portstream, unsigned short *USHORTval)
char GetSignedLong (portstream_fd portstream, signed long *LONGval, long timeout)
char PutSignedLong (portstream_fd portstream, signed long *LONGval)

Variables

static unsigned char peeked_char_avail = FALSE

Define Documentation

#define EVEN_PARITY   0x18
#define INT_REVERSED
#define NO_PARITY   0x00
#define ODD_PARITY   0x08

Function Documentation

char closeserial ( portstream_fd  portstream)
void do_delay ( long  timeInMsec)
char FlushInputBuffer ( portstream_fd  portstream)
char GetSignedLong ( portstream_fd  portstream,
signed long *  LONGval,
long  timeout 
)
char GetSignedShort ( portstream_fd  portstream,
signed short *  SHORTval,
long  timeout 
)
char GetUnsignedShort ( portstream_fd  portstream,
unsigned short *  USHORTval,
long  timeout 
)
int numPendingInputChars ( portstream_fd  portstream)
portstream_fd openserial ( char *  portname)
char PeekByte ( portstream_fd  portstream,
unsigned char *  peekedByte 
)
char PutSignedLong ( portstream_fd  portstream,
signed long *  LONGval 
)
char PutSignedShort ( portstream_fd  portstream,
signed short *  SHORTval 
)
char PutUnsignedShort ( portstream_fd  portstream,
unsigned short *  USHORTval 
)
char ReadSerialLine ( portstream_fd  portstream,
unsigned char *  StringBuffer,
long  timeout,
int *  charsRead 
)
char SerialBytesIn ( portstream_fd  portstream,
unsigned char *  buffer,
unsigned int  charCnt,
long  timeout 
)
char SerialBytesOut ( portstream_fd  portstream,
unsigned char *  buffer,
int  charCnt 
)
char SerialStringOut ( portstream_fd  portstream,
unsigned char *  buffer 
)
char setbaudrate ( int  baudrate)
portstream_fd SetSerial ( char *  portname,
int  Speed,
int  Parity,
int  Bits,
int  StopBit 
)

Variable Documentation

unsigned char peeked_char_avail = FALSE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines