public class Physilog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
STATE_CONFIGURE_PHYSILOG |
static byte |
STATE_DISABLE_BLE |
static byte |
STATE_ENABLE_BLE |
static byte |
STATE_PHYSILOG_ON_FILE |
static byte |
STATE_PHYSILOG_ON_STREAM |
static byte |
STATE_PHYSILOG_PAUSED |
static byte |
STATE_SET_PHYSILOG_HW |
static byte |
STATE_STANDBY_OFF |
static byte |
STATE_USB_MASSE_STORAGE |
static byte |
STATE_WORKING_LAST_FILE |
Constructor and Description |
---|
Physilog(android.bluetooth.BluetoothDevice device,
com.gaitup.lib.physilog.BluetoothLEService bluetoothLEService,
PhysilogManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
boradcastConfigUploadStatus(byte status) |
void |
broadcastStoredConfig() |
void |
clearLoadedConfig() |
void |
configNextPacket(byte packetIdx) |
void |
configRestart() |
int |
getBatteryLevel() |
byte[] |
getConfigToSend() |
ConnectionState |
getConnectionState() |
android.bluetooth.BluetoothDevice |
getDevice() |
java.lang.String |
getFilePath() |
boolean |
getIsRecording() |
android.bluetooth.BluetoothGatt |
getmBluetoothGatt() |
java.lang.String |
getName() |
byte |
getState() |
java.lang.String |
getStateText() |
void |
init() |
void |
initFile() |
void |
initSettings() |
boolean |
isSyncFirst() |
boolean |
isSynched() |
boolean |
isSyncLast() |
void |
loadConfig() |
void |
loadSensorSettings() |
void |
physilogSyncDone() |
void |
processNewSector(byte[] rawData) |
void |
readRequestedSector() |
void |
readSectorFailed() |
void |
sendNewConfig(int new_acc_freq,
int new_acc_g,
int new_gyro_freq,
int new_gyro_g,
int new_baro_freq,
byte new_body_location) |
void |
setBatteryLevel(int batteryLevel) |
void |
setConnectionState(ConnectionState connectionState) |
void |
setDisconnectRequested(boolean value) |
void |
setIsRecording(boolean isRecording) |
void |
setmBluetoothGatt(android.bluetooth.BluetoothGatt mBluetoothGatt) |
void |
setReadConfig(byte[] rawData) |
void |
setSensorSettingsRead(byte[] rawData) |
void |
setState(byte state) |
void |
setSyncFirst(boolean syncFirst) |
void |
setSynched(boolean synched) |
void |
setSyncLast(boolean syncLast) |
void |
setTimerConfigured(boolean value) |
void |
startConfig() |
void |
startOfflineRecording() |
void |
startRecording()
send command to start recording via BLE
|
void |
startStreaming() |
void |
stopConfigure() |
void |
stopFile() |
void |
stopRecording() |
void |
stopStreaming() |
public static final byte STATE_SET_PHYSILOG_HW
public static final byte STATE_STANDBY_OFF
public static final byte STATE_PHYSILOG_ON_FILE
public static final byte STATE_PHYSILOG_PAUSED
public static final byte STATE_USB_MASSE_STORAGE
public static final byte STATE_CONFIGURE_PHYSILOG
public static final byte STATE_ENABLE_BLE
public static final byte STATE_DISABLE_BLE
public static final byte STATE_WORKING_LAST_FILE
public static final byte STATE_PHYSILOG_ON_STREAM
public Physilog(android.bluetooth.BluetoothDevice device, com.gaitup.lib.physilog.BluetoothLEService bluetoothLEService, PhysilogManager manager)
public boolean isSyncFirst()
public void setSyncFirst(boolean syncFirst)
public boolean isSyncLast()
public void setSyncLast(boolean syncLast)
public boolean isSynched()
public void setSynched(boolean synched)
public void initSettings()
public void init()
public android.bluetooth.BluetoothGatt getmBluetoothGatt()
public void setmBluetoothGatt(android.bluetooth.BluetoothGatt mBluetoothGatt)
public void setDisconnectRequested(boolean value)
public byte getState()
public void setState(byte state)
public void setIsRecording(boolean isRecording)
public void boradcastConfigUploadStatus(byte status)
public void configRestart()
public void configNextPacket(byte packetIdx)
public boolean getIsRecording()
public java.lang.String getStateText()
public ConnectionState getConnectionState()
public void setConnectionState(ConnectionState connectionState)
public android.bluetooth.BluetoothDevice getDevice()
public java.lang.String getName()
public void setTimerConfigured(boolean value)
public int getBatteryLevel()
public void setBatteryLevel(int batteryLevel)
public void readRequestedSector()
public void readSectorFailed()
public void processNewSector(byte[] rawData)
public void stopRecording()
public void startRecording()
public void startOfflineRecording()
public void startStreaming()
public void startConfig()
public void setReadConfig(byte[] rawData)
public void setSensorSettingsRead(byte[] rawData)
public byte[] getConfigToSend()
public void sendNewConfig(int new_acc_freq, int new_acc_g, int new_gyro_freq, int new_gyro_g, int new_baro_freq, byte new_body_location)
public void clearLoadedConfig()
public void loadConfig()
public void loadSensorSettings()
public void broadcastStoredConfig()
public void stopStreaming()
public java.lang.String getFilePath()
public void stopFile()
public void stopConfigure()
public void physilogSyncDone()
public void initFile()