chiark
/
gitweb
/
~mdw
/
jog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f43b774
)
Modify for new transport configuration. Set PowerJog parameters as the
author
mdw
<mdw>
Wed, 30 Jan 2002 09:25:15 +0000
(09:25 +0000)
committer
mdw
<mdw>
Wed, 30 Jan 2002 09:25:15 +0000
(09:25 +0000)
default.
tx-serial-unix.h
patch
|
blob
|
blame
|
history
diff --git
a/tx-serial-unix.h
b/tx-serial-unix.h
index b61e4ae4df9aba1e8e9c781c19b7ddd020a62624..e9abc39ea57a0c552cdfd49e5f66b7b6e5f88ff3 100644
(file)
--- a/
tx-serial-unix.h
+++ b/
tx-serial-unix.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: tx-serial-unix.h,v 1.
1 2002/01/25 19:34:4
5 mdw Exp $
+ * $Id: tx-serial-unix.h,v 1.
2 2002/01/30 09:25:1
5 mdw Exp $
*
* Unix/POSIX serial port transport
*
*
* Unix/POSIX serial port transport
*
@@
-29,6
+29,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: tx-serial-unix.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: tx-serial-unix.h,v $
+ * Revision 1.2 2002/01/30 09:25:15 mdw
+ * Modify for new transport configuration. Set PowerJog parameters as the
+ * default.
+ *
* Revision 1.1 2002/01/25 19:34:45 mdw
* Initial revision
*
* Revision 1.1 2002/01/25 19:34:45 mdw
* Initial revision
*
@@
-64,7
+68,9
@@
extern void txsu_shutdown(void);
extern void txsu_shutdown(void);
-extern txport *txsu_create(const char */*file*/, const char */*config*/);
+extern txport *txsu_create(const char */*file*/);
+extern int txsu_configure(txport */*txg*/,
+ const char */*k*/, const char */*v*/);
extern void *txsu_fetch(void */*txv*/);
extern ssize_t txsu_write(txport */*txg*/,
const void */*p*/, size_t /*sz*/);
extern void *txsu_fetch(void */*txv*/);
extern ssize_t txsu_write(txport */*txg*/,
const void */*p*/, size_t /*sz*/);
@@
-77,8
+83,9
@@
extern void txsu_destroy(txport */*txg*/);
};
static txport_ops txsu_ops = {
};
static txport_ops txsu_ops = {
- TX_LIST, "serial-unix", txsu_fv, "9600:8-none-1",
- txsu_create, txsu_fetch, txsu_write, txsu_destroy
+ TX_LIST, "serial-unix", txsu_fv,
+ "flow=none;baud=9600;format=8-odd-1;newline=cr",
+ txsu_create, txsu_configure, txsu_fetch, txsu_write, txsu_destroy
};
# undef TX_LIST
# define TX_LIST &txsu_ops
};
# undef TX_LIST
# define TX_LIST &txsu_ops