aboutsummaryrefslogtreecommitdiff
path: root/smartpen.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2023-08-27 15:44:20 +0200
committerJavier <dev.git@javispedro.com>2023-08-27 15:44:20 +0200
commit6b6886fa47c112ddcd89fc32bfa7fe6949962cc3 (patch)
tree61d034ef21f56e66a877fb1a909da4196751b1e8 /smartpen.h
parentd6f25f86527b74022b9d425d1a126b4f9154e1a0 (diff)
downloadscribiu-6b6886fa47c112ddcd89fc32bfa7fe6949962cc3.tar.gz
scribiu-6b6886fa47c112ddcd89fc32bfa7fe6949962cc3.zip
add support for syncing pens with no name
Diffstat (limited to 'smartpen.h')
-rw-r--r--smartpen.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/smartpen.h b/smartpen.h
index 2ff64e3..e3dadad 100644
--- a/smartpen.h
+++ b/smartpen.h
@@ -45,18 +45,21 @@ public:
bool isConnected() const;
- enum Parameter : quint16 {
- /// The offset between the PenTime (see below) and the user's configured time. This value is static.
- PenUserTime = 0x8003,
+ enum class Parameter : quint16 {
+ Id = 0x0000,
+ /// The offset between the RtcTime (see below) and the user's configured time. This value is fixed at setup time.
+ UserTime = 0x8003,
/// The current time as reported by the pen's rtc
- PenRtcTime = 0x8004,
- PenType = 0x8006,
- PenName = 0x8011
+ RtcTime = 0x8004,
+ Type = 0x8006,
+ Name = 0x8011
};
QByteArray getObject(const QString& name);
QByteArray getParameter(Parameter parameter);
+ PenId getPenId();
+ QString getPenSerial();
QString getPenName();
PenTime getPenTime(Parameter parameter);