Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open_class_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CLASS_API
open_class_api
Commits
b578b432
Commit
b578b432
authored
2 years ago
by
Querejeta Lomas, Leire
Browse files
Options
Downloads
Patches
Plain Diff
Subir nuevo archivo
parent
21e12861
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/class/include/class/class_cb.hpp
+115
-0
115 additions, 0 deletions
src/api/class/include/class/class_cb.hpp
with
115 additions
and
0 deletions
src/api/class/include/class/class_cb.hpp
0 → 100644
+
115
−
0
View file @
b578b432
/**
* @file class_cb.hpp
* @author Alfonso Dominguez <alfonso.dominguez@tecnalia.com> and Leire Querejeta Lomas <leire.querejeta@tecnalia.com>
* @date 2020
*
* Copyright 2020 Tecnalia Research & Innovation.
* Distributed under the GNU GPL v3.
* For full terms see https://www.gnu.org/licenses/gpl.txt
*
* @brief Callbacks for Class
*/
#pragma once
#include
<string>
//! Abstract class (interface) for receiving callbacks from device.
class
ClassCallback
{
public:
/*!
\brief Handle for battery status callbacks
\param battery Received battery percentage
*/
virtual
void
batteryHandle
(
double
battery
)
=
0
;
/*!
\brief Handle for buzzer status callbacks
\param buzzerstatus Received buzzer status message
*/
virtual
void
buzzerHandle
(
std
::
string
buzzerstatus
)
=
0
;
/*!
\brief Handle for device name callbacks
\param device Received device name
*/
virtual
void
deviceNameHandle
(
std
::
string
device
)
=
0
;
/*!
\brief Handle for frequncy callbacks
\param frequencystatus Received frequency
*/
virtual
void
frequencyHandle
(
std
::
string
frequencystatus
)
=
0
;
/*!
\brief Handle for firmware callbacks
\param firmware Received firmware version
*/
virtual
void
firmwareHandle
(
std
::
string
firmware
)
=
0
;
/*!
\brief Handle for hardware callbacks
\param hardware Received hardware version
*/
virtual
void
hardwareHandle
(
std
::
string
hardware
)
=
0
;
/*!
\brief Handle for high voltage callbacks
\param hvstatus Received high voltage status
*/
virtual
void
hvHandle
(
std
::
string
hvstatus
)
=
0
;
/*!
\brief Handle for interval callbacks
\param intervalstatus Received stimulation inter pulses interval
*/
virtual
void
intervalHandle
(
std
::
string
intervalstatus
)
=
0
;
/*!
\brief Handle for logevents callbacks
\param logevents Received logevents message
*/
virtual
void
logeventsHandle
(
std
::
string
logevents
)
=
0
;
/*!
\brief Handle for pattern callbacks
\param patternstatus Received pattern message
*/
virtual
void
patternHandle
(
std
::
string
patternstatus
)
=
0
;
/*!
\brief Handle for rtc callbacks
\param rtcstatus Received rtc values
*/
virtual
void
rtcHandle
(
std
::
string
rtcstatus
)
=
0
;
/*!
\brief Handle for sd function callbacks
\param sdfunctionstatus Received name of the sd card folder where patterns are saved
*/
virtual
void
sdfunctionHandle
(
std
::
string
sdfunctionstatus
)
=
0
;
/*!
\brief Handle for sd user name callbacks
\param sdunamestatus Received name of the sd card folder where the folder containing patterns is saved
*/
virtual
void
sdunameHandle
(
std
::
string
sdunamestatus
)
=
0
;
/*!
\brief Handle for tic callbacks
\param tic Received tic message
*/
virtual
void
ticHandle
(
std
::
string
tic
)
=
0
;
/*!
\brief Handle for turning off callbacks
*/
virtual
void
turnOffHandle
()
=
0
;
/*!
\brief Handle for virtual electrodes callbacks
\param velecstatus Received virtual electrode message
*/
virtual
void
velecstatusHandle
(
std
::
string
velecstatus
)
=
0
;
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment