1 #ifndef _SERIALCONTROL_H_
2 #define _SERIALCONTROL_H_
11 #include <sys/signal.h>
12 #include <sys/types.h>
14 #include <sys/ioctl.h>
16 #include "libutil/Log.h"
18 #include "motecontrol/localconstants.h"
20 namespace remote
{ namespace diku_mch
{
22 using namespace protocols
;
23 using namespace protocols::motecontrol
;
31 bool runChild(char * const args
[], char * const envp
[]);
32 result_t
getChildResult();
33 result_t
cancelProgramming();
37 ssize_t
readBuf(char *buf
, size_t len
);
38 ssize_t
writeBuf(const char *buf
, size_t len
);
41 const std::string
& getTty();
47 bool endChild(bool killChild
);
48 bool controlDTR(bool enable
);
50 bool isRunning
, portIsOpen
;
53 struct termios oldsertio
;