Welcome to the EyeBot  Version 7 - RPi1
A Controller For Various Hardware IO
system.h
Go to the documentation of this file.
1 
7 #ifndef SYSTEM_H_
8 #define SYSTEM_H_
9 
10 #include "types.h"
11 #include "string.h"
12 #include <sys/sysinfo.h>
13 #include <stdio.h>
14 
15 void strcpy_n(char* __dest, const char* __src, size_t __n);
16 char* OSExecute(char* command);
17 
18 char *OSVersion(void);
19 int OSMachineSpeed(void);
20 int OSMachineType(void);
21 char* OSMachineName(void);
22 unsigned char OSMachineID(void);
23 
24 int OSError(char *msg, int number, bool deadend);
25 int OSInfoCPU (INFO_CPU* infoCPU);
26 int OSInfoMem (INFO_MEM* infoMem);
27 int OSInfoProc (INFO_PROC* infoProc);
28 int OSInfoMisc (INFO_MISC* infoMisc);
29 
30 #endif /* SYSTEM_H_ */
Defines types used for the EyeBot 7.
Structure defining battery info.
Definition: types.h:176
unsigned char OSMachineID(void)
Inform the user with which ID the Eyebot is titled.
Definition: system.c:118
Structure defining the CPU info.
Definition: types.h:147
int OSInfoProc(INFO_PROC *infoProc)
Collects infos about processes.
Definition: system.c:200
char * OSVersion(void)
Returns string containing running RoBIOS version.
Definition: system.c:78
int OSError(char *msg, int number, bool deadend)
Print message and number to display then stop processor (deadend) or wait for key.
Definition: system.c:133
int OSMachineType(void)
Inform the user in which environment the program runs.
Definition: system.c:98
int OSInfoMisc(INFO_MISC *infoMisc)
Collects system’s miscellaneous infos – uptime, vbatt.
Definition: system.c:211
Structure defining the processor info.
Definition: types.h:168
int OSInfoMem(INFO_MEM *infoMem)
Collects infos about the memory.
Definition: system.c:182
int OSInfoCPU(INFO_CPU *infoCPU)
Collects infos about the CPU – name, speed, architecture and bogusMips.
Definition: system.c:144
int OSMachineSpeed(void)
Inform the user how fast the processor runs.
Definition: system.c:88
char * OSMachineName(void)
Inform the user with which name the Eyebot is titled.
Definition: system.c:107
Structure defining the memory info.
Definition: types.h:158
char * OSExecute(char *command)
Executes a system command and obtains the string returned after the command.
Definition: system.c:51