![](/media/cache/profiles/c3d4543d921d3fc90cabc2c864c68276.jpg.50x50_q85.jpg)
Creating an array of Classes
Signal.cpp@0:978160d93f83, 2015-08-05 (annotated)
- Committer:
- Jamess
- Date:
- Wed Aug 05 13:41:30 2015 +0000
- Revision:
- 0:978160d93f83
Criando array de classes;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jamess | 0:978160d93f83 | 1 | #include "Signal.h" |
Jamess | 0:978160d93f83 | 2 | |
Jamess | 0:978160d93f83 | 3 | uint32_t Signal::getValue(void){ |
Jamess | 0:978160d93f83 | 4 | |
Jamess | 0:978160d93f83 | 5 | return Value; |
Jamess | 0:978160d93f83 | 6 | |
Jamess | 0:978160d93f83 | 7 | } |
Jamess | 0:978160d93f83 | 8 | |
Jamess | 0:978160d93f83 | 9 | void Signal::setValue(uint32_t a){ |
Jamess | 0:978160d93f83 | 10 | |
Jamess | 0:978160d93f83 | 11 | Value = a; |
Jamess | 0:978160d93f83 | 12 | |
Jamess | 0:978160d93f83 | 13 | } |