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.
Dependencies: USBDevice mbed-rtos mbed
Fork of JoyStick by
AnalogFilterInterface.cpp@5:a0bb17c379ce, 2016-06-22 (annotated)
- Committer:
- rvt
- Date:
- Wed Jun 22 12:50:16 2016 +0000
- Revision:
- 5:a0bb17c379ce
- Parent:
- 1:5b2ab44eb31f
Latest
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rvt | 0:33bc88c4ab31 | 1 | #include "AnalogFilterInterface.h" |
| rvt | 0:33bc88c4ab31 | 2 | |
| rvt | 1:5b2ab44eb31f | 3 | AnalogFilterInterface::AnalogFilterInterface(AnalogFilterInterface *chain) |
| rvt | 1:5b2ab44eb31f | 4 | { |
| rvt | 0:33bc88c4ab31 | 5 | _chain = chain; |
| rvt | 0:33bc88c4ab31 | 6 | } |
| rvt | 5:a0bb17c379ce | 7 | |
| rvt | 1:5b2ab44eb31f | 8 | AnalogFilterInterface::AnalogFilterInterface() |
| rvt | 1:5b2ab44eb31f | 9 | { |
| rvt | 0:33bc88c4ab31 | 10 | } |
| rvt | 0:33bc88c4ab31 | 11 | |
| rvt | 1:5b2ab44eb31f | 12 | void AnalogFilterInterface::setData(long data) |
| rvt | 1:5b2ab44eb31f | 13 | { |
| rvt | 1:5b2ab44eb31f | 14 | _data = data; |
| rvt | 1:5b2ab44eb31f | 15 | }; |
| rvt | 5:a0bb17c379ce | 16 | |
| rvt | 5:a0bb17c379ce | 17 | long AnalogFilterInterface::getData() const |
| rvt | 1:5b2ab44eb31f | 18 | { |
| rvt | 1:5b2ab44eb31f | 19 | return _data; |
| rvt | 1:5b2ab44eb31f | 20 | }; |
