Back to project page Visu.
The source code is released under:
Apache License
If you think the Android project Visu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/***************************************************************************************** * BluetoothMessage.java * * Enum que posee los distintos tipos de mensaje que puede enviar la clase * * BluetoothService a BluetoothHelper * ****************************************************************************************/ /*w ww . j a va 2 s . c o m*/ package com.ufavaloro.android.visu.bluetooth; public enum BluetoothProtocolMessage { NEW_SAMPLES_BATCH(1), ADC_DATA(2), TOTAL_ADC_CHANNELS(3); private final int value; private BluetoothProtocolMessage(int value){ this.value=value; } public static BluetoothProtocolMessage values(int what) { switch(what){ case 1: return NEW_SAMPLES_BATCH; case 2: return ADC_DATA; case 3: return TOTAL_ADC_CHANNELS; default: return NEW_SAMPLES_BATCH; } } public int getValue(){return value;} }//BluetoothHelperMessage