Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: uwb_link/uwb_link.h
- Revision:
- 3:bfc4928cd279
- Parent:
- 2:502d1a5f79a0
--- a/uwb_link/uwb_link.h Wed Apr 06 08:11:43 2016 +0000
+++ b/uwb_link/uwb_link.h Wed Apr 06 08:27:25 2016 +0000
@@ -1,3 +1,10 @@
+//
+// Simple message protocol for UWB.
+//
+// Created by Benjamin Hepp on 02.04.16.
+// Copyright (c) 2016 Benjamin Hepp. All rights reserved.
+//
+
#pragma once
#include <string.h>
@@ -194,24 +201,24 @@
}
uint8_t getType() const {
- return type_;
+ return type_;
}
const UWBMessageBody* getMessageBody() const {
- return body_;
+ return body_;
}
void setMessageBody(const UWBMessageBody* body) {
- clearMessageBody();
- body_ = body;
+ clearMessageBody();
+ body_ = body;
}
int getSize() const {
- int size = sizeof(type_);
- if (body_ != NULL) {
- size += body_->getSize();
- }
- return size;
+ int size = sizeof(type_);
+ if (body_ != NULL) {
+ size += body_->getSize();
+ }
+ return size;
}
void buildMessage(uint8_t* buffer) const {
@@ -338,4 +345,3 @@
};
}
-