diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-05-21 19:50:15 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-05-21 19:50:15 +0200 |
commit | 3a2edc19f4e9475b09594dcb6642ae230d75ae7f (patch) | |
tree | 7bf63bda42ffe1fa9b29d681d7f8fccb2133521e /src/main/java | |
parent | 15b42451d124564b9ccf4a6365d2f50f7f3896c9 (diff) | |
download | akka-serial-3a2edc19f4e9475b09594dcb6642ae230d75ae7f.tar.gz akka-serial-3a2edc19f4e9475b09594dcb6642ae230d75ae7f.tar.bz2 akka-serial-3a2edc19f4e9475b09594dcb6642ae230d75ae7f.zip |
move to subproject main
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/github/jodersky/flow/NativeSerial.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/main/java/com/github/jodersky/flow/NativeSerial.java b/src/main/java/com/github/jodersky/flow/NativeSerial.java deleted file mode 100644 index f5d708e..0000000 --- a/src/main/java/com/github/jodersky/flow/NativeSerial.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.github.jodersky.flow; - -public class NativeSerial { - - static { - NativeLoader.load(); - } - - final static int E_PERMISSION = -1; - final static int E_OPEN = -2; - final static int E_BUSY = -3; - final static int E_BAUD = -4; - final static int E_PIPE = -5; - final static int E_MALLOC = -6; - final static int E_POINTER = -7; - final static int E_POLL = -8; - final static int E_IO = -9; - final static int E_CLOSE = -10; - - - /* return values: - * 0 ok - * E_PERMISSION don't have permission to open - * E_OPEN can't get file descriptor - * E_BUSY device busy - * E_BAUD invalid baudrate - * E_PIPE can't open pipe for graceful closing - * E_MALLOC malloc error */ - native static int open(String device, int baud, long[] serial); - - /* return - * >0 number of bytes read - * E_POINTER invalid serial pointer - * E_POLL poll error - * E_IO read error - * E_CLOSE close request */ - native static int read(long serial, byte[] buffer); - - /*return - * >0 number of bytes written - * E_POINTER invalid serial config (null pointer) - * E_IO write error */ - native static int write(long serial, byte[] buffer); - - native static void close(long serial); - - native static void debug(boolean value); - -} |