|
gForceSDK
|
The abstract of the device setting handler of a gForce device. More...
#include <DeviceSetting.h>
Public Member Functions | |
| virtual GF_RET_CODE | getProtocolVer (std::function< void(ResponseResult res, tstring version)> cb)=0 |
| virtual GF_RET_CODE | getFeatureMap (std::function< void(ResponseResult res, GF_UINT32 featureMap)> cb)=0 |
| virtual GF_RET_CODE | getDeviceName (std::function< void(ResponseResult res, tstring name)> cb)=0 |
| virtual GF_RET_CODE | getModelNumber (std::function< void(ResponseResult res, tstring modelNumber)> cb)=0 |
| virtual GF_RET_CODE | getSerialNumber (std::function< void(ResponseResult res, tstring serialNumber)> cb)=0 |
| virtual GF_RET_CODE | getHWRevision (std::function< void(ResponseResult res, tstring version)> cb)=0 |
| virtual GF_RET_CODE | getFWRevision (std::function< void(ResponseResult res, tstring version)> cb)=0 |
| virtual GF_RET_CODE | getManufacturerName (std::function< void(ResponseResult res, tstring name)> cb)=0 |
| virtual GF_RET_CODE | getBootloaderVer (std::function< void(ResponseResult res, tstring version)> cb)=0 |
| virtual GF_RET_CODE | powerOff ()=0 |
| virtual GF_RET_CODE | swithToOAD ()=0 |
| virtual GF_RET_CODE | systemReset ()=0 |
| virtual GF_RET_CODE | switchService (DeviceService service)=0 |
| virtual GF_RET_CODE | oadUpgrade (FILE *file, std::function< void(ResponseResult res, GF_UINT32 percentage)> progress)=0 |
| virtual GF_RET_CODE | sendTrainingModelData (GF_UINT32 length, GF_UINT8 data[], std::function< void(ResponseResult res, GF_UINT32 percentage)> progress)=0 |
| virtual GF_RET_CODE | setDataNotifSwitch (DataNotifFlags flags, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getBatteryLevel (std::function< void(ResponseResult res, GF_UINT32 percentage)> cb)=0 |
| virtual GF_RET_CODE | getTemperature (std::function< void(ResponseResult res, GF_UINT32 temperature)> cb)=0 |
| virtual GF_RET_CODE | setLogLevel (SWOLogLevel level, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | setLogModuleEnabled (SWOModule modules, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | printKernelMsg (KernelMsgType type, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | vibrateControl (VibrateControlType type, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | ledControlTest (LedControlTestType type, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | packageIdControl (PackageControlType type, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getAccelerateCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz, GF_UINT8 maxScaleRange_g, GF_UINT8 maxPackageDataLength)> cb)=0 |
| virtual GF_RET_CODE | setAccelerateConfig (GF_UINT16 sampleRateHz, GF_UINT8 fullScaleRange_g, GF_UINT8 packageDataLength, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getGyroscopeCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz, GF_UINT16 maxScaleRange_dps, GF_UINT8 maxPackageDataLength)> cb)=0 |
| virtual GF_RET_CODE | setGyroscopeConfig (GF_UINT16 sampleRateHz, GF_UINT16 fullScaleRange_dps, GF_UINT8 packageDataLength, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getMagnetometerCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz, GF_UINT16 maxScaleRange_uT, GF_UINT8 maxPackageDataLength)> cb)=0 |
| virtual GF_RET_CODE | setMagnetometerConfig (GF_UINT16 sampleRateHz, GF_UINT16 fullScaleRange_uT, GF_UINT8 packageDataLength, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getEulerangleCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz)> cb)=0 |
| virtual GF_RET_CODE | setEulerangleConfig (GF_UINT16 sampleRateHz, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getQuaternionCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz)> cb)=0 |
| virtual GF_RET_CODE | setQuaternionConfig (GF_UINT16 sampleRateHz, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getRotationMatrixCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz)> cb)=0 |
| virtual GF_RET_CODE | setRotationMatrixConfig (GF_UINT16 sampleRateHz, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getGestureCap (std::function< void(ResponseResult res, GF_SIZE number, const Gesture supportedGestures[])> cb)=0 |
| virtual GF_RET_CODE | setGestureConfig (GF_UINT32 number, Gesture interestingGesture[], std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getEMGRawDataCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz, EMGRowDataChannels supportedChannels, GF_UINT8 maxPackageDataLength)> cb)=0 |
| virtual GF_RET_CODE | setEMGRawDataConfig (GF_UINT16 sampleRateHz, EMGRowDataChannels interestingChannels, GF_UINT8 packageDataLength, GF_UINT8 adcResolution, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getMouseDataCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz)> cb)=0 |
| virtual GF_RET_CODE | setMouseDataConfig (GF_UINT16 sampleRateHz, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getJoystickDataCap (std::function< void(ResponseResult res, GF_UINT16 maxSampleRateHz)> cb)=0 |
| virtual GF_RET_CODE | setJoystickDataConfig (GF_UINT16 sampleRateHz, std::function< void(ResponseResult res)> cb)=0 |
| virtual GF_RET_CODE | getDeviceStatusCap (std::function< void(ResponseResult res, DeviceStatusFlags flags)> cb)=0 |
| virtual GF_RET_CODE | setDeviceStatusConfig (DeviceStatusFlags flags, std::function< void(ResponseResult res)> cb)=0 |
Protected Member Functions | |
| virtual | ~DeviceSetting () |
| Virtual deconstructor. | |
The abstract of the device setting handler of a gForce device.
According to 4.x definition.
| Enumerator | |
|---|---|
| DNF_OFF | Data Notify All Off. |
| DNF_ACCELERATE | Accelerate On(C.7) |
| DNF_GYROSCOPE | Gyroscope On(C.8) |
| DNF_MAGNETOMETER | Magnetometer On(C.9) |
| DNF_EULERANGLE | Euler Angle On(C.10) |
| DNF_QUATERNION | Quaternion On(C.11) |
| DNF_ROTATIONMATRIX | Rotation Matrix On(C.12) |
| DNF_EMG_GESTURE | EMG Gesture On(C.13) |
| DNF_EMG_RAW | EMG Raw Data On(C.14) |
| DNF_HID_MOUSE | HID Mouse On(C.15) |
| DNF_HID_JOYSTICK | HID Joystick On(C.16) |
| DNF_DEVICE_STATUS | Device Status On(C.17) |
| DNF_ALL | Data Notify All On. |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |