Public Member Functions | Private Member Functions | Private Attributes
gloveDevice Class Reference

#include <gloveDevice.h>

List of all members.

Public Member Functions

bool cmdGetActuateAll (vector_t values)
bool cmdGetBaudRate (uchar_t *baudDivide)
bool cmdGetBinarySync (bool *enable)
bool cmdGetCalibrateAll (vector_t offset, vector_t gain)
bool cmdGetConnectStatus (statusConnect_t *status)
bool cmdGetControlLight (bool *enable)
bool cmdGetDigitalFilter (bool *enable)
bool cmdGetGloveStatus (bool *enable)
bool cmdGetGloveVersion (gloveVersion_t *version)
bool cmdGetHand (bool *rightHand)
bool cmdGetHwSensorMask (sensorMask_t *mask)
bool cmdGetNbSensorsEnabled (uchar_t *n)
bool cmdGetNbSensorsTotal (uchar_t *n)
bool cmdGetParameterFlags (parameterFlags_t *flags)
bool cmdGetQuantized (bool *enable)
bool cmdGetSamplePeriod (samplePeriod_t *period)
bool cmdGetSensorDummyValues (vector_t values, uchar_t *n, statusQuery_t *query, gloveStatusByte_t *gloveStatusByte)
bool cmdGetSensorValues (vector_t values, uchar_t *n, statusQuery_t *query, gloveStatusByte_t *gloveStatusByte)
bool cmdGetSensorValuesSync (vector_t values, uchar_t *n, bool *errorSync, gloveStatusByte_t *gloveStatusByte)
bool cmdGetSwSensorMask (sensorMask_t *mask)
bool cmdGetTimeStamp (bool *enable)
bool cmdGetWristLight (bool *enable)
bool cmdGetWristToggle (bool *enable)
bool cmdReinitializeCyberGlove ()
bool cmdRestartFirmware ()
bool cmdSetActuate (int n, vector_t index, vector_t values)
bool cmdSetActuateAll (vector_t values)
bool cmdSetBaudRate (uchar_t baudDivide)
bool cmdSetBinarySync (bool enable)
bool cmdSetCalibrateAll (vector_t offset, vector_t gain)
bool cmdSetCalibrateGain (uchar_t index, uchar_t gain)
bool cmdSetCalibrateOffset (uchar_t index, uchar_t offset)
bool cmdSetControlLight (bool enable)
bool cmdSetDigitalFilter (bool enable)
bool cmdSetGloveStatus (bool enable)
bool cmdSetNbSensorsEnabled (uchar_t n)
bool cmdSetParameterFlags (parameterFlags_t flags)
bool cmdSetQuantized (bool enable)
bool cmdSetSamplePeriod (samplePeriod_t period)
bool cmdSetStreamValues (bool enable)
bool cmdSetSwSensorMask (sensorMask_t mask)
bool cmdSetTimeStamp (bool enable)
bool cmdSetWristLight (bool enable)
bool cmdSetWristToggle (bool enable)
 gloveDevice ()
bool init (const char *serialDev)
void showCurrentStatus ()
void stop ()
 ~gloveDevice ()

Private Member Functions

bool cmdGetBool (uchar_t name, bool *val)
bool cmdGetChar (uchar_t name, uchar_t *val)
bool cmdSetChar (uchar_t name, uchar_t val)
uchar_t getChar ()
void getString (vector_t s, int n)
bool internalCmd (uchar_t cmd)
void lock_serial ()
bool readNullChar ()
bool readResponseGet (uchar_t c)
bool readResponseSet (uchar_t c)
bool readResponseSet (uchar_t c1, uchar_t c2)
void sendChar (uchar_t)
void sendString (vector_t s, int n)
void unlock_serial ()

Private Attributes

bool error
SerialDevice serial
pthread_mutex_t serial_lock
int serialId
gloveStatus status

Detailed Description

Copyright (c) 2016, Heller Florian, Meißner Pascal, Nguyen Trung, Yi Xie All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 40 of file gloveDevice.h.


Constructor & Destructor Documentation

Definition at line 28 of file gloveDevice.cc.

Definition at line 32 of file gloveDevice.cc.


Member Function Documentation

Definition at line 250 of file gloveDevice.cc.

bool gloveDevice::cmdGetBaudRate ( uchar_t baudDivide)

Definition at line 271 of file gloveDevice.cc.

bool gloveDevice::cmdGetBinarySync ( bool *  enable)

Definition at line 755 of file gloveDevice.cc.

bool gloveDevice::cmdGetBool ( uchar_t  name,
bool *  val 
) [private]

Definition at line 202 of file gloveDevice.cc.

bool gloveDevice::cmdGetCalibrateAll ( vector_t  offset,
vector_t  gain 
)

Definition at line 333 of file gloveDevice.cc.

bool gloveDevice::cmdGetChar ( uchar_t  name,
uchar_t val 
) [private]

Definition at line 186 of file gloveDevice.cc.

Definition at line 467 of file gloveDevice.cc.

bool gloveDevice::cmdGetControlLight ( bool *  enable)

Definition at line 482 of file gloveDevice.cc.

bool gloveDevice::cmdGetDigitalFilter ( bool *  enable)

Definition at line 385 of file gloveDevice.cc.

bool gloveDevice::cmdGetGloveStatus ( bool *  enable)

Definition at line 701 of file gloveDevice.cc.

Definition at line 711 of file gloveDevice.cc.

bool gloveDevice::cmdGetHand ( bool *  rightHand)

Definition at line 611 of file gloveDevice.cc.

Definition at line 487 of file gloveDevice.cc.

Definition at line 557 of file gloveDevice.cc.

Definition at line 652 of file gloveDevice.cc.

Definition at line 585 of file gloveDevice.cc.

bool gloveDevice::cmdGetQuantized ( bool *  enable)

Definition at line 606 of file gloveDevice.cc.

Definition at line 675 of file gloveDevice.cc.

bool gloveDevice::cmdGetSensorDummyValues ( vector_t  values,
uchar_t n,
statusQuery_t query,
gloveStatusByte_t gloveStatusByte 
)

Definition at line 616 of file gloveDevice.cc.

bool gloveDevice::cmdGetSensorValues ( vector_t  values,
uchar_t n,
statusQuery_t query,
gloveStatusByte_t gloveStatusByte 
)

Definition at line 390 of file gloveDevice.cc.

bool gloveDevice::cmdGetSensorValuesSync ( vector_t  values,
uchar_t n,
bool *  errorSync,
gloveStatusByte_t gloveStatusByte 
)

Definition at line 760 of file gloveDevice.cc.

Definition at line 531 of file gloveDevice.cc.

bool gloveDevice::cmdGetTimeStamp ( bool *  enable)

Steffen

Definition at line 365 of file gloveDevice.cc.

bool gloveDevice::cmdGetWristLight ( bool *  enable)

Definition at line 508 of file gloveDevice.cc.

bool gloveDevice::cmdGetWristToggle ( bool *  enable)

Definition at line 745 of file gloveDevice.cc.

Definition at line 472 of file gloveDevice.cc.

Definition at line 647 of file gloveDevice.cc.

bool gloveDevice::cmdSetActuate ( int  n,
vector_t  index,
vector_t  values 
)

Definition at line 210 of file gloveDevice.cc.

Definition at line 232 of file gloveDevice.cc.

bool gloveDevice::cmdSetBaudRate ( uchar_t  baudDivide)

Definition at line 266 of file gloveDevice.cc.

bool gloveDevice::cmdSetBinarySync ( bool  enable)

Definition at line 750 of file gloveDevice.cc.

bool gloveDevice::cmdSetCalibrateAll ( vector_t  offset,
vector_t  gain 
)

Definition at line 276 of file gloveDevice.cc.

bool gloveDevice::cmdSetCalibrateGain ( uchar_t  index,
uchar_t  gain 
)

Definition at line 314 of file gloveDevice.cc.

bool gloveDevice::cmdSetCalibrateOffset ( uchar_t  index,
uchar_t  offset 
)

Definition at line 295 of file gloveDevice.cc.

bool gloveDevice::cmdSetChar ( uchar_t  name,
uchar_t  val 
) [private]

Definition at line 169 of file gloveDevice.cc.

bool gloveDevice::cmdSetControlLight ( bool  enable)

Definition at line 477 of file gloveDevice.cc.

bool gloveDevice::cmdSetDigitalFilter ( bool  enable)

Definition at line 380 of file gloveDevice.cc.

bool gloveDevice::cmdSetGloveStatus ( bool  enable)

Definition at line 691 of file gloveDevice.cc.

Definition at line 547 of file gloveDevice.cc.

Definition at line 567 of file gloveDevice.cc.

bool gloveDevice::cmdSetQuantized ( bool  enable)

Definition at line 601 of file gloveDevice.cc.

Definition at line 657 of file gloveDevice.cc.

bool gloveDevice::cmdSetStreamValues ( bool  enable)

Definition at line 451 of file gloveDevice.cc.

Definition at line 513 of file gloveDevice.cc.

bool gloveDevice::cmdSetTimeStamp ( bool  enable)

Steffen

Definition at line 350 of file gloveDevice.cc.

bool gloveDevice::cmdSetWristLight ( bool  enable)

Definition at line 503 of file gloveDevice.cc.

bool gloveDevice::cmdSetWristToggle ( bool  enable)

Definition at line 740 of file gloveDevice.cc.

Definition at line 122 of file gloveDevice.cc.

void gloveDevice::getString ( vector_t  s,
int  n 
) [private]

Definition at line 129 of file gloveDevice.cc.

bool gloveDevice::init ( const char *  serialDev)

Definition at line 37 of file gloveDevice.cc.

bool gloveDevice::internalCmd ( uchar_t  cmd) [private]

Definition at line 627 of file gloveDevice.cc.

void gloveDevice::lock_serial ( ) [private]

Definition at line 110 of file gloveDevice.cc.

bool gloveDevice::readNullChar ( ) [private]

Definition at line 154 of file gloveDevice.cc.

bool gloveDevice::readResponseGet ( uchar_t  c) [private]

Definition at line 159 of file gloveDevice.cc.

bool gloveDevice::readResponseSet ( uchar_t  c) [private]

Definition at line 144 of file gloveDevice.cc.

bool gloveDevice::readResponseSet ( uchar_t  c1,
uchar_t  c2 
) [private]

Definition at line 149 of file gloveDevice.cc.

void gloveDevice::sendChar ( uchar_t  c) [private]

Definition at line 134 of file gloveDevice.cc.

void gloveDevice::sendString ( vector_t  s,
int  n 
) [private]

Definition at line 139 of file gloveDevice.cc.

Definition at line 788 of file gloveDevice.cc.

Definition at line 105 of file gloveDevice.cc.

void gloveDevice::unlock_serial ( ) [private]

Definition at line 116 of file gloveDevice.cc.


Member Data Documentation

bool gloveDevice::error [private]

Definition at line 149 of file gloveDevice.h.

Definition at line 148 of file gloveDevice.h.

pthread_mutex_t gloveDevice::serial_lock [private]

Definition at line 150 of file gloveDevice.h.

int gloveDevice::serialId [private]

Definition at line 148 of file gloveDevice.h.

Definition at line 147 of file gloveDevice.h.


The documentation for this class was generated from the following files:


asr_cyberglove_lib
Author(s): Heller Florian, Meißner Pascal, Nguyen Trung, Yi Xie
autogenerated on Thu Jun 6 2019 22:02:33