#include "rec/robotino/com/c/globals.h"
#include "rec/robotino/com/c/Com.h"
Go to the source code of this file.
Defines | |
| #define | INVALID_POWERMANAGEMENTID -1 |
Typedefs | |
| typedef int | PowerManagementId |
Functions | |
| DLLEXPORT PowerManagementId | PowerManagement_construct () |
| DLLEXPORT BOOL | PowerManagement_destroy (PowerManagementId id) |
| DLLEXPORT BOOL | PowerManagement_setComId (PowerManagementId id, ComId comId) |
| DLLEXPORT float | PowerManagement_current (PowerManagementId id) |
| DLLEXPORT float | PowerManagement_voltage (PowerManagementId id) |
Use PowerManagement_construct() to create a new power management object. Associate the power management object with a com object using PowerManagement_setComId(). Use PowerManagement_open() to open the power management. Use PowerManagement_close() to open the power management. Use PowerManagement_isOpened() to check if the power management is opened. Use PowerManagement_isClosed() to check if the power management is closed.
| DLLEXPORT PowerManagementId PowerManagement_construct | ( | ) |
Construct an power management object
| DLLEXPORT float PowerManagement_current | ( | PowerManagementId | id | ) |
Retrieves the current power drain.
| id | The id of the power management object. |
| DLLEXPORT BOOL PowerManagement_destroy | ( | PowerManagementId | id | ) |
Destroy the power management object assigned to id
| id | The id of the power management object to be destroyed |
| DLLEXPORT BOOL PowerManagement_setComId | ( | PowerManagementId | id, | |
| ComId | comId | |||
| ) |
Associated a power management object with a communication interface, i.e. binding the power management to a specific Robotino
| DLLEXPORT float PowerManagement_voltage | ( | PowerManagementId | id | ) |
Retrieves the battery voltage.
| id | The id of the power management object. |
1.5.5