Functions/Module interaction
From the API standpoint, the modules and their functions are strongly uncorrelated by design.
Nevertheless, the API provides the possibility to go from one to the other. Thus, the
get_module()
method, available for each function class, allows you to find the object corresponding to the module
hosting this function. Inversely, the
YModule
class provides several methods allowing you to
enumerate the functions available on a module.
6.2. The Yocto-RangeFinder module
The Yocto-RangeFinder module provides one instance of the RangeFinder function, corresponding
to the range finder sensor, one instance of the LightSensor function, measuring the ambiant infrared
level and one instance of the Temperature function, corresponding to the temperature sensor
integrated into the device.
module : Module
attribute
type
modifiable ?
productName
String
read-only
serialNumber
String
read-only
logicalName
String
modifiable
productId
Hexadecimal number read-only
productRelease
Hexadecimal number read-only
firmwareRelease
String
read-only
persistentSettings
Enumerated
modifiable
luminosity
0..100%
modifiable
beacon
On/Off
modifiable
upTime
Time
read-only
usbCurrent
Used current (mA)
read-only
rebootCountdown
Integer
modifiable
userVar
Integer
modifiable
rangeFinder1 : RangeFinder
attribute
type
modifiable ?
logicalName
String
modifiable
advertisedValue
String
modifiable
unit
String
modifiable
currentValue
Fixed-point number
read-only
lowestValue
Fixed-point number
modifiable
highestValue
Fixed-point number
modifiable
currentRawValue
Fixed-point number
read-only
logFrequency
Frequency
modifiable
reportFrequency
Frequency
modifiable
calibrationParam
Calibration parameters
modifiable
resolution
Fixed-point number
modifiable
sensorState
Integer
read-only
rangeFinderMode
Enumerated
modifiable
hardwareCalibration
Range finder internal calibration parameters modifiable
currentTemperature
Fixed-point number
read-only
command
String
modifiable
lightSensor1 : LightSensor
attribute
type
modifiable ?
logicalName
String
modifiable
advertisedValue
String
modifiable
unit
String
read-only
currentValue
Fixed-point number
modifiable
lowestValue
Fixed-point number
modifiable
highestValue
Fixed-point number
modifiable
currentRawValue
Fixed-point number
read-only
6. Programming, general concepts
www.yoctopuce.com
23
Содержание Yocto-RangeFinder
Страница 1: ...Yocto RangeFinder User s guide...
Страница 2: ......
Страница 18: ...12 www yoctopuce com...
Страница 26: ...20 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Страница 90: ...84 www yoctopuce com...
Страница 120: ...114 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...21 High level API Reference On failure throws an exception or returns a negative error code 152 www yoctopuce com...
Страница 484: ...478 www yoctopuce com...
Страница 488: ...482 www yoctopuce com...
Страница 490: ...23 Characteristics 484 www yoctopuce com...
Страница 491: ......
Страница 492: ......