All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.serialbus.QtCanBus Maven / Gradle / Ivy

Go to download

Provides access to serial industrial bus interface. Currently the module supports the CAN bus and Modbus protocols.

There is a newer version: 6.7.2
Show newest version
package io.qt.serialbus;

import io.qt.*;


/**
 * 

Some commons enums that are used in the CAN bus handling part of the QtSerialPort module

*

Java wrapper for Qt header file QtCanBus

*

This class was introduced in Qt 6.5.

*/ public final class QtCanBus { static { QtJambi_LibraryUtilities.initialize(); } private QtCanBus() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QtCanBus."); } /** *

Java wrapper for Qt enum QtCanBus::DataFormat

*/ public enum DataFormat implements QtByteEnumerator { /** *

Representing QtCanBus::DataFormat::SignedInteger

*/ SignedInteger((byte)0), /** *

Representing QtCanBus::DataFormat::UnsignedInteger

*/ UnsignedInteger((byte)1), /** *

Representing QtCanBus::DataFormat::Float

*/ Float((byte)2), /** *

Representing QtCanBus::DataFormat::Double

*/ Double((byte)3), /** *

Representing QtCanBus::DataFormat::AsciiString

*/ AsciiString((byte)4); static { QtJambi_LibraryUtilities.initialize(); } private DataFormat(byte value) { this.value = value; } /** * {@inheritDoc} */ @Override public byte value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull DataFormat resolve(byte value) { switch (value) { case 0: return SignedInteger; case 1: return UnsignedInteger; case 2: return Float; case 3: return Double; case 4: return AsciiString; default: throw new QNoSuchEnumValueException(value); } } private final byte value; } /** *

Java wrapper for Qt enum QtCanBus::DataSource

*/ public enum DataSource implements QtByteEnumerator { /** *

Representing QtCanBus::DataSource::Payload

*/ Payload((byte)0), /** *

Representing QtCanBus::DataSource::FrameId

*/ FrameId((byte)1); static { QtJambi_LibraryUtilities.initialize(); } private DataSource(byte value) { this.value = value; } /** * {@inheritDoc} */ @Override public byte value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull DataSource resolve(byte value) { switch (value) { case 0: return Payload; case 1: return FrameId; default: throw new QNoSuchEnumValueException(value); } } private final byte value; } /** *

Java wrapper for Qt enum QtCanBus::MultiplexState

*/ public enum MultiplexState implements QtByteEnumerator { /** *

Representing QtCanBus::MultiplexState::None

*/ None((byte)0), /** *

Representing QtCanBus::MultiplexState::MultiplexorSwitch

*/ MultiplexorSwitch((byte)1), /** *

Representing QtCanBus::MultiplexState::MultiplexedSignal

*/ MultiplexedSignal((byte)2), /** *

Representing QtCanBus::MultiplexState::SwitchAndSignal

*/ SwitchAndSignal((byte)3); static { QtJambi_LibraryUtilities.initialize(); } private MultiplexState(byte value) { this.value = value; } /** * {@inheritDoc} */ @Override public byte value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull MultiplexState resolve(byte value) { switch (value) { case 0: return None; case 1: return MultiplexorSwitch; case 2: return MultiplexedSignal; case 3: return SwitchAndSignal; default: throw new QNoSuchEnumValueException(value); } } private final byte value; } /** *

Java wrapper for Qt enum QtCanBus::UniqueId

*/ public enum UniqueId implements QtEnumerator { ; static { QtJambi_LibraryUtilities.initialize(); } private UniqueId(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull UniqueId resolve(int value) { switch (value) { default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QtCanBus::qbswap(QtCanBus::UniqueId)

*/ public static io.qt.serialbus.QtCanBus.@NonNull UniqueId qbswap(io.qt.serialbus.QtCanBus.@NonNull UniqueId src){ return io.qt.serialbus.QtCanBus.UniqueId.resolve(qbswap_native_QtCanBus_UniqueId(src.value())); } private native static int qbswap_native_QtCanBus_UniqueId(int src); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy