- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.posix.Termios.StructTermios
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Termios
public static final class Termios.StructTermios extends Struct32
POSIX:structure termios.- Author:
- aploese
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Constructor Description StructTermios()StructTermios(OpaqueMemory32 owner, OpaqueMemory32 prev)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()bytec_cc(int index)POSIX:structure termios.voidc_cc(int index, byte value)POSIX:structure termios.static voidc_cc2String(Appendable sb, int index, byte c_cc)intc_cflag()POSIX:structure termios.voidc_cflag(int value)POSIX:structure termios.intc_iflag()POSIX:structure termios.voidc_iflag(int value)POSIX:structure termios.intc_ispeed()POSIX:structure termios.voidc_ispeed(int value)POSIX:structure termios.intc_lflag()POSIX:structure termios.voidc_lflag(int value)POSIX:structure termios.bytec_line()Linux:structure termios.voidc_line(byte value)Linux:structure termios.intc_oflag()POSIX:structure termios.voidc_oflag(int value)POSIX:structure termios.intc_ospeed()POSIX:structure termios.voidc_ospeed(int value)POSIX:structure termios.voidnativeToString(Appendable sb, String indentPrefix, String indent)static intsizeof()static StringtoCcName(int value)-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Constructor Detail
-
StructTermios
public StructTermios()
-
StructTermios
public StructTermios(OpaqueMemory32 owner, OpaqueMemory32 prev)
-
-
Method Detail
-
sizeof
@SizeOf public static final int sizeof()
-
alignof
@AlignOf public static final int alignof()
-
c_iflag
public int c_iflag()
POSIX:structure termios.- Returns:
- the native value of c_iflag.
-
c_iflag
public void c_iflag(int value)
POSIX:structure termios.- Parameters:
value- the value of c_iflag to be set natively.
-
c_oflag
public int c_oflag()
POSIX:structure termios.- Returns:
- native value of c_oflag.
-
c_oflag
public void c_oflag(int value)
POSIX:structure termios.- Parameters:
value- the value of c_oflag to be set natively.
-
c_cflag
public int c_cflag()
POSIX:structure termios.- Returns:
- native value of c_cflag.
-
c_cflag
public void c_cflag(int value)
POSIX:structure termios.- Parameters:
value- the value of c_cflag to be set natively.
-
c_lflag
public int c_lflag()
POSIX:structure termios.- Returns:
- native value of c_lflag.
-
c_lflag
public void c_lflag(int value)
POSIX:structure termios.- Parameters:
value- the value of c_lflag to be set natively.
-
c_cc
public byte c_cc(int index)
POSIX:structure termios.- Parameters:
index- the index.- Returns:
- native value of c_cx[index].
-
c_cc
public void c_cc(int index, byte value)POSIX:structure termios.- Parameters:
index- the index.value- the value of c_cx[index] to be set natively.
-
c_line
public byte c_line() throws NoSuchNativeTypeMemberExceptionLinux:structure termios.- Returns:
- native value of c_line.
- Throws:
NoSuchNativeTypeMemberException- if c_line does not exists
-
c_line
public void c_line(byte value) throws NoSuchNativeTypeMemberExceptionLinux:structure termios.- Parameters:
value- the value of c_line to be set natively.- Throws:
NoSuchNativeTypeMemberException- if c_line does not * exists.
-
c_ispeed
public int c_ispeed() throws NoSuchNativeTypeMemberExceptionPOSIX:structure termios.- Returns:
- native value of c_ispeed.
- Throws:
NoSuchNativeTypeMemberException- if c_ispeed does not * exists.
-
c_ispeed
public void c_ispeed(int value) throws NoSuchNativeTypeMemberExceptionPOSIX:structure termios.- Parameters:
value- the value of c_ispeed to be set natively.- Throws:
NoSuchNativeTypeMemberException- if c_ispeed does not * exists.
-
c_ospeed
public int c_ospeed() throws NoSuchNativeTypeMemberExceptionPOSIX:structure termios.- Returns:
- native value of c_ospeed.
- Throws:
NoSuchNativeTypeMemberException- if c_ospeed does not * exists.
-
c_ospeed
public void c_ospeed(int value) throws NoSuchNativeTypeMemberExceptionPOSIX:structure termios.- Parameters:
value- the value of c_ospeed to be set natively.- Throws:
NoSuchNativeTypeMemberException- if c_ospeed does not * exists.
-
toCcName
public static String toCcName(int value)
-
c_cc2String
public static void c_cc2String(Appendable sb, int index, byte c_cc) throws IOException
- Throws:
IOException
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-