Initial Commit:

- Create single library for all Core RedA functions/classes
- Working version
This commit is contained in:
Charl Wentzel
2016-05-17 07:38:33 +02:00
commit 264169e525
11 changed files with 1033 additions and 0 deletions

40
PortCore.h Normal file
View File

@@ -0,0 +1,40 @@
/*
* PortCore.h
*
* Created on: 13 May 2016
* Author: wentzelc
*/
#ifndef PORTCORE_H_
#define PORTCORE_H_
// redA Libraries
/* none */
// Standard C/C++ Libraries
/* none */
//---------------------------------------------------------------------------
// Defines required to configure port
#define NO_PARITY 0
#define ODD_PARITY 1
#define EVEN_PARITY 2
#define MARK_PARITY 3
#define SPACE_PARITY 4
#define NO_FLOWCTRL 0
#define HW_FLOWCTRL 1
#define SW_FLOWCTRL 2
//---------------------------------------------------------------------------
// Port Functions
int OpenPort( const char * PortName );
bool ClosePort();
bool ConfigSerialPort( int Baud, short DataBits, short StopBits, short Parity, short FlowCtrl, int Wait );
bool ReadPort();
bool MaintainPort( int SocketHandle );
//---------------------------------------------------------------------------
#endif /* PORTCORE_H_ */