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.
debugMonitor.h@0:de1f07a7cd82, 2018-08-23 (annotated)
- Committer:
- duchonic
- Date:
- Thu Aug 23 10:32:26 2018 +0000
- Revision:
- 0:de1f07a7cd82
- Child:
- 1:a2fab59c3b98
first
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| duchonic | 0:de1f07a7cd82 | 1 | #include "mbed.h" |
| duchonic | 0:de1f07a7cd82 | 2 | |
| duchonic | 0:de1f07a7cd82 | 3 | class debugMonitor |
| duchonic | 0:de1f07a7cd82 | 4 | { |
| duchonic | 0:de1f07a7cd82 | 5 | public: |
| duchonic | 0:de1f07a7cd82 | 6 | /** |
| duchonic | 0:de1f07a7cd82 | 7 | * constructor of debugMonitor |
| duchonic | 0:de1f07a7cd82 | 8 | * |
| duchonic | 0:de1f07a7cd82 | 9 | * @param sda SDA pin |
| duchonic | 0:de1f07a7cd82 | 10 | * @param sdl SCL pin |
| duchonic | 0:de1f07a7cd82 | 11 | */ |
| duchonic | 0:de1f07a7cd82 | 12 | debugMonitor(PinName tx, PinName rx); |
| duchonic | 0:de1f07a7cd82 | 13 | |
| duchonic | 0:de1f07a7cd82 | 14 | /** deconstructor */ |
| duchonic | 0:de1f07a7cd82 | 15 | ~debugMonitor(); |
| duchonic | 0:de1f07a7cd82 | 16 | |
| duchonic | 0:de1f07a7cd82 | 17 | /** |
| duchonic | 0:de1f07a7cd82 | 18 | * LP55231 Init |
| duchonic | 0:de1f07a7cd82 | 19 | * @returns 0 if ok |
| duchonic | 0:de1f07a7cd82 | 20 | * @returns -1 on error |
| duchonic | 0:de1f07a7cd82 | 21 | */ |
| duchonic | 0:de1f07a7cd82 | 22 | uint8_t debugMonitor_Init(void); |
| duchonic | 0:de1f07a7cd82 | 23 | |
| duchonic | 0:de1f07a7cd82 | 24 | /** |
| duchonic | 0:de1f07a7cd82 | 25 | * @param led led to set |
| duchonic | 0:de1f07a7cd82 | 26 | * @param color color to set |
| duchonic | 0:de1f07a7cd82 | 27 | */ |
| duchonic | 0:de1f07a7cd82 | 28 | void debugMonitor_Job(void); |
| duchonic | 0:de1f07a7cd82 | 29 | |
| duchonic | 0:de1f07a7cd82 | 30 | |
| duchonic | 0:de1f07a7cd82 | 31 | private: |
| duchonic | 0:de1f07a7cd82 | 32 | /** i2c handler */ |
| duchonic | 0:de1f07a7cd82 | 33 | Serial serial; |
| duchonic | 0:de1f07a7cd82 | 34 | |
| duchonic | 0:de1f07a7cd82 | 35 | }; |