In "rec/robotino/api2/c/Info.h" you can find functions for reading Robotino's bumper.
More...
#include "rec/robotino/api2/c/globals.h"
#include "rec/robotino/api2/c/Com.h"
Go to the source code of this file.
In "rec/robotino/api2/c/Info.h" you can find functions for reading Robotino's bumper.
Use Info_construct() to create a new info object. Associate the info object with a com object using Info_setComId(). Use Info_text() to read the info message. Use Info_isPassiveMode() to check for passive mode connection.
#define INVALID_INFOID -1 |
DLLEXPORT InfoId Info_construct |
( |
| ) |
|
Construct an info object
- Returns
- Returns the ID of the newly constructed info object.
DLLEXPORT BOOL Info_destroy |
( |
InfoId |
id | ) |
|
Destroy the info object assigned to id
- Parameters
-
id | The id of the info object to be destroyed |
- Returns
- Returns TRUE (1) on success. Returns FALSE (0) if the given InfoId is invalid.
DLLEXPORT BOOL Info_isPassiveMode |
( |
InfoId |
id | ) |
|
Returns wether this device is in passive mode.
- Parameters
-
id | The id of the info object to be read |
- Returns
- TRUE if in passive mode, FALSE otherwise.
DLLEXPORT BOOL Info_setComId |
( |
InfoId |
id, |
|
|
ComId |
comId |
|
) |
| |
Associates a info object with a communication interface, i.e. binding the info to a specific Robotino
- Returns
- Returns TRUE (1) on success. Returns FALSE (0) if the given InfoId or ComId is invalid.
DLLEXPORT BOOL Info_text |
( |
InfoId |
id, |
|
|
char * |
infoBuffer, |
|
|
unsigned int |
infoBuffersSize |
|
) |
| |
Gets the current text message of this device.
- Parameters
-
id | The id of the info object to be read |
infoBuffer | Will contain the received into message as '\0' terminated string. |
infoBuffersSize | The size of infoBuffer. |
- Returns
- Returns TRUE (1) on success. Returns FALSE (0) if the given InfoId is invalid or if infoBuffer is to small to contain the info message string.