Welcome to the EyeBot
Version 7 - RPi1
A Controller For Various Hardware IO
|
Defines functions for the system. More...
Functions | |
void | trimline (char *src) |
trims the string by exchanging the first newlin char with the null byte More... | |
void | strcpy_n (char *dest, const char *src, size_t n) |
char * | OSExecute (char *command) |
Executes a system command and obtains the string returned after the command. More... | |
char * | OSVersion (void) |
Returns string containing running RoBIOS version. More... | |
int | OSMachineSpeed (void) |
Inform the user how fast the processor runs. More... | |
int | OSMachineType (void) |
Inform the user in which environment the program runs. More... | |
char * | OSMachineName (void) |
Inform the user with which name the Eyebot is titled. More... | |
unsigned char | OSMachineID (void) |
Inform the user with which ID the Eyebot is titled. More... | |
int | OSError (char *msg, int number, bool deadend) |
Print message and number to display then stop processor (deadend) or wait for key. More... | |
int | OSInfoCPU (INFO_CPU *infoCPU) |
Collects infos about the CPU – name, speed, architecture and bogusMips. More... | |
int | OSInfoMem (INFO_MEM *infoMem) |
Collects infos about the memory. More... | |
int | OSInfoProc (INFO_PROC *infoProc) |
Collects infos about processes. More... | |
int | OSInfoMisc (INFO_MISC *infoMisc) |
Collects system’s miscellaneous infos – uptime, vbatt. More... | |
Defines functions for the system.
int OSError | ( | char * | msg, |
int | number, | ||
bool | deadend | ||
) |
Print message and number to display then stop processor (deadend) or wait for key.
msg | a pointer to message |
number | the error number |
deadend | switch to choose deadend or keywait |
Valid values are:
char* OSExecute | ( | char * | command | ) |
Executes a system command and obtains the string returned after the command.
command | the command to run |
int OSInfoCPU | ( | INFO_CPU * | infoCPU | ) |
Collects infos about the CPU – name, speed, architecture and bogusMips.
infoCPU | a pointer to a structure containing the cpu infos |
int OSInfoMem | ( | INFO_MEM * | infoMem | ) |
Collects infos about the memory.
infoMem | : pointer to a structure which contains the memory infos |
int OSInfoMisc | ( | INFO_MISC * | infoMisc | ) |
Collects system’s miscellaneous infos – uptime, vbatt.
infoMisc | : pointer to a structure which contains the misc infos |
int OSInfoProc | ( | INFO_PROC * | infoProc | ) |
Collects infos about processes.
INFO_PROC | infoProc : pointer to a structure which contains the process infos |
unsigned char OSMachineID | ( | void | ) |
Inform the user with which ID the Eyebot is titled.
char* OSMachineName | ( | void | ) |
Inform the user with which name the Eyebot is titled.
int OSMachineSpeed | ( | void | ) |
Inform the user how fast the processor runs.
int OSMachineType | ( | void | ) |
Inform the user in which environment the program runs.
Valid values are: VEHICLE, PLATFORM, WALKER
char* OSVersion | ( | void | ) |
Returns string containing running RoBIOS version.
Example: "3.1b"
void trimline | ( | char * | src | ) |
trims the string by exchanging the first newlin char with the null byte
src | the string to be trimmed |