62 lines
758 B
C++
62 lines
758 B
C++
/*
|
|
#include "const.h"
|
|
#include "AbstractPort.h"
|
|
#include "SerialPortWin.h"
|
|
#include "Settings.h"
|
|
|
|
extern "C"{
|
|
#include <time.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
}
|
|
|
|
SerialPortWin::SerialPortWin()
|
|
:AbstractPort()
|
|
|
|
{
|
|
//hCommDev=NULL;
|
|
}
|
|
|
|
|
|
bool SerialPortWin::open_port(QString port_name)
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
|
|
}
|
|
|
|
bool SerialPortWin::close_port ()
|
|
{
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
int SerialPortWin::send_packet (unsigned char packet[PACKETSIZE])
|
|
{
|
|
return 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
bool SerialPortWin::send_char (unsigned char character)
|
|
{
|
|
return FALSE;
|
|
|
|
|
|
}
|
|
|
|
int SerialPortWin::receive_char (void)
|
|
{
|
|
return 0;
|
|
|
|
}
|
|
|
|
int SerialPortWin::receive_packet (unsigned char *packet)
|
|
{
|
|
return 0;
|
|
|
|
}
|
|
*/
|