Peripheral Device Slot.
More...
import"PeripheralDeviceSlot.idl";
◆ assign()
int peripheral::DeviceSlot::assign |
( |
in DeviceID |
devid | ) |
|
Associate this slot with a given (old or detected new) peripheral device.
- Parameters
-
devid | peripheral device identification |
- Returns
- 0 if OK
-
ERR_INVALID_PARAMS if devid is unknown or invalid
◆ assignAddress()
int peripheral::DeviceSlot::assignAddress |
( |
in string |
packageClass, |
|
|
in Address |
address |
|
) |
| |
Associate this slot with an addressable (new) peripheral device.
- Parameters
-
address | peripheral device address |
- Returns
- 0 if OK
-
ERR_INVALID_PARAMS if address is invalid
◆ getDevice()
Device peripheral::DeviceSlot::getDevice |
( |
| ) |
|
Returns the actual device reference.
The reference becomes invalid due to assign/unassign method call. This conditions is also flagged by EVT_KEY_DEVICE_CHANGED event
◆ getSettings()
Settings peripheral::DeviceSlot::getSettings |
( |
| ) |
|
Retrieve the user-defined settings.
- Returns
- Slot settings
◆ setSettings()
int peripheral::DeviceSlot::setSettings |
( |
in Settings |
settings | ) |
|
Change the slot settings.
- Parameters
-
settings | New slot settings |
- Returns
- 0 if OK
-
ERR_INVALID_PARAMS if any parameters are invalid
◆ unassign()
int peripheral::DeviceSlot::unassign |
( |
| ) |
|
Break the association for this slot.
- Returns
- 0 if OK
-
ERR_NOT_SUPPORTED if operation is not supported this is the case for sensors with complete position information
The documentation for this interface was generated from the following file: