Benjamin Hepp / ait_link
Committer:
bhepp
Date:
Wed Apr 06 08:27:25 2016 +0000
Revision:
3:bfc4928cd279
Parent:
2:502d1a5f79a0
Updated license

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bhepp 3:bfc4928cd279 1 //
bhepp 3:bfc4928cd279 2 // Simple message protocol for UWB.
bhepp 3:bfc4928cd279 3 //
bhepp 3:bfc4928cd279 4 // Created by Benjamin Hepp on 02.04.16.
bhepp 3:bfc4928cd279 5 // Copyright (c) 2016 Benjamin Hepp. All rights reserved.
bhepp 3:bfc4928cd279 6 //
bhepp 3:bfc4928cd279 7
bhepp 2:502d1a5f79a0 8 #pragma once
bhepp 2:502d1a5f79a0 9
bhepp 2:502d1a5f79a0 10 #include <ait_link/ait_link_mbed.h>
bhepp 2:502d1a5f79a0 11 #include "uwb_link.h"
bhepp 2:502d1a5f79a0 12
bhepp 2:502d1a5f79a0 13 #ifdef __MBED__
bhepp 2:502d1a5f79a0 14 namespace ait {
bhepp 1:9f8c0dbb0fc7 15
bhepp 2:502d1a5f79a0 16 class UWBLinkMbed : public UWBLink {
bhepp 2:502d1a5f79a0 17 AITLinkMbed ait_link_;
bhepp 2:502d1a5f79a0 18
bhepp 2:502d1a5f79a0 19 public:
bhepp 2:502d1a5f79a0 20 UWBLinkMbed(BufferedSerial* serial, int buffer_size = 1024)
bhepp 2:502d1a5f79a0 21 : UWBLink(&ait_link_, buffer_size), ait_link_(serial) {
bhepp 2:502d1a5f79a0 22 }
bhepp 2:502d1a5f79a0 23 };
bhepp 2:502d1a5f79a0 24
bhepp 2:502d1a5f79a0 25 }
bhepp 2:502d1a5f79a0 26
bhepp 2:502d1a5f79a0 27 #endif // __MBED__