forked from AxisCommunications/door-controller-test-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.h
More file actions
39 lines (32 loc) · 590 Bytes
/
System.h
File metadata and controls
39 lines (32 loc) · 590 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef System_h
#define System_h
#include <Arduino.h>
/**
* System Class.
*
* @author Matthias Maderer
* @version 1.1.7
*/
class System {
public:
/**
* Returns the uptime of the arduino with a char pointer.
* Format: DAYS:HOURS:MINUTES:SECONDS
* Sample: 1:20:23:50 = 1 day, 20 hours, 23 minutes and 50 seconds
* @return char *: pointer!
*/
char * uptime();
/**
* Returns the free RAM
* @return int: free RAM
*/
int ramFree();
/**
* Returns the size of the RAM
* @return int: RAM size
*/
int ramSize();
private:
char retval[25];
};
#endif