![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Projectlab Elektronica-ICT KULeuven
Dependencies: EthernetInterface TMP102 TextLCD mbed-rtos mbed
Frame.h@0:ae3af7d18c4a, 2014-03-14 (annotated)
- Committer:
- seppeduwe
- Date:
- Fri Mar 14 19:41:14 2014 +0000
- Revision:
- 0:ae3af7d18c4a
- Child:
- 1:635e76c52151
Nog voor klasse
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
seppeduwe | 0:ae3af7d18c4a | 1 | #ifndef Frame_H |
seppeduwe | 0:ae3af7d18c4a | 2 | #define Frame_H |
seppeduwe | 0:ae3af7d18c4a | 3 | class Frame |
seppeduwe | 0:ae3af7d18c4a | 4 | { |
seppeduwe | 0:ae3af7d18c4a | 5 | private: |
seppeduwe | 0:ae3af7d18c4a | 6 | int IdDestinationMbed; |
seppeduwe | 0:ae3af7d18c4a | 7 | int temperature; |
seppeduwe | 0:ae3af7d18c4a | 8 | int pWMDutycycle; |
seppeduwe | 0:ae3af7d18c4a | 9 | int tune; |
seppeduwe | 0:ae3af7d18c4a | 10 | int lengthIDs; |
seppeduwe | 0:ae3af7d18c4a | 11 | char* IDs; |
seppeduwe | 0:ae3af7d18c4a | 12 | char* encode; |
seppeduwe | 0:ae3af7d18c4a | 13 | public: |
seppeduwe | 0:ae3af7d18c4a | 14 | Frame(int IdDestinationMbed, |
seppeduwe | 0:ae3af7d18c4a | 15 | int temperature, |
seppeduwe | 0:ae3af7d18c4a | 16 | int pWMDutycycle, |
seppeduwe | 0:ae3af7d18c4a | 17 | int tune, |
seppeduwe | 0:ae3af7d18c4a | 18 | int lengthIDs, |
seppeduwe | 0:ae3af7d18c4a | 19 | char* IDs, |
seppeduwe | 0:ae3af7d18c4a | 20 | char* encode); |
seppeduwe | 0:ae3af7d18c4a | 21 | int encode(char* encode); |
seppeduwe | 0:ae3af7d18c4a | 22 | int decode(char* frame); |
seppeduwe | 0:ae3af7d18c4a | 23 | int MakeCRC(char LEN, char IDD, char TMP0, char TMP1, char PWM, char* data, int lenghtData); |
seppeduwe | 0:ae3af7d18c4a | 24 | }; |
seppeduwe | 0:ae3af7d18c4a | 25 | #endif |