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.
uwb_link/uwb_link_mbed.h@3:bfc4928cd279, 2016-04-06 (annotated)
- 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?
| User | Revision | Line number | New 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__ |