Back to project page BTSerialConsole.
The source code is released under:
MIT License
If you think the Android project BTSerialConsole listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.neykov.bluetoothserialconsole.connection.enums; // w w w .j av a2 s . c o m import android.os.Parcel; import android.os.Parcelable; //Enumerate Stopbit constant public enum EStopBits implements Parcelable { S1, S2; @Override public int describeContents() { return 0; } @Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeInt(ordinal()); } public static final Creator<EStopBits> CREATOR = new Creator<EStopBits>() { @Override public EStopBits createFromParcel(final Parcel source) { return EStopBits.values()[source.readInt()]; } @Override public EStopBits[] newArray(final int size) { return new EStopBits[size]; } }; }