Initial Commit:
- Create single library for all Core RedA functions/classes - Working version
This commit is contained in:
40
PortCore.h
Normal file
40
PortCore.h
Normal 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_ */
|
||||
Reference in New Issue
Block a user