MCPcopy Create free account

hub / github.com/corneliusmunz/legoino / functions

Functions127 in github.com/corneliusmunz/legoino

↓ 4 callersMethodwriteValue
src/Lpf2HubEmulation.cpp:298
↓ 2 callersMethodgetDeviceTypeForPort
* @brief Get the device type of a specific connected device on a defined port in the connectedDevices array * @param [in] port number * @return devi
src/Lpf2HubEmulation.cpp:282
↓ 2 callersMethodgetHubName
src/Lpf2HubEmulation.cpp:368
↓ 1 callersMethodgetBatteryType
src/Lpf2HubEmulation.cpp:373
↓ 1 callersMethodgetPortInformationPayload
src/Lpf2HubEmulation.cpp:466
↓ 1 callersMethodgetPortModeInformationRequestPayload
src/Lpf2HubEmulation.cpp:503
↓ 1 callersMethodisConnected
* @brief Retrieve the connection state. The BLE client (ESP32) is connected to the server (HUB) */
src/Lpf2Hub.cpp:1180
↓ 1 callersMethodsetHubName
src/Lpf2HubEmulation.cpp:349
↓ 1 callersMethodstart
src/Lpf2HubEmulation.cpp:388
MethodBoost
src/Boost.cpp:15
MethodColorStringFromColor
* @brief return string value of color enum * @param [in] Color enum */
src/LegoinoCommon.cpp:39
MethodInt16ToByteArray
src/LegoinoCommon.cpp:59
MethodInt32ToByteArray
src/LegoinoCommon.cpp:67
MethodLpf2Hub
* @brief Constructor */
src/Lpf2Hub.cpp:802
MethodLpf2HubAdvertisedDeviceCallbacks
src/Lpf2Hub.cpp:62
MethodLpf2HubCharacteristicCallbacks
src/Lpf2HubEmulation.cpp:58
MethodLpf2HubClientCallback
src/Lpf2Hub.cpp:37
MethodLpf2HubEmulation
src/Lpf2HubEmulation.cpp:225
MethodLpf2HubServerCallbacks
src/Lpf2HubEmulation.cpp:25
MethodMapSpeed
* @brief Map speed from -100..100 to the 8bit internal value * @param [in] speed -100..100 */
src/LegoinoCommon.cpp:17
MethodPowerFunctions
* @brief Constructor to define the pin of the IR LED and power function channel * @param [in] pin Pin of the IR LED which should be used to send out
src/PowerFunctions.cpp:44
MethodReadInt16LE
src/LegoinoCommon.cpp:95
MethodReadInt32LE
src/LegoinoCommon.cpp:107
MethodReadInt8
src/LegoinoCommon.cpp:83
MethodReadUInt16LE
src/LegoinoCommon.cpp:89
MethodReadUInt32LE
src/LegoinoCommon.cpp:101
MethodReadUInt8
src/LegoinoCommon.cpp:77
MethodWriteValue
* @brief Write value to the remote characteristic * @param [in] command byte array which contains the ble command * @param [in] size length of the c
src/Lpf2Hub.cpp:122
MethodactivateHubPropertyUpdate
* @brief Activate the update/notification of hub specific property changes (battery level, rssi, ...) * @param [in] hubProperty for which updates sho
src/Lpf2Hub.cpp:1040
MethodactivatePortDevice
* @brief Activate device for receiving updates. E.g. activate a color/distance sensor to * write updates on the characteristic if a value has changed
src/Lpf2Hub.cpp:181
MethodattachDevice
src/Lpf2HubEmulation.cpp:238
Methodcombo_pwm
* @brief Set the pwm signal on a defined port (red/blue) * @param [in] port The output port to which the pwm signal is transmitted (Red=0x0, Blue=0x0
src/PowerFunctions.cpp:142
MethodconnectHub
* @brief Connect to the HUB, get a reference to the characteristic and register for notifications */
src/Lpf2Hub.cpp:1084
MethoddeactivateHubPropertyUpdate
* @brief Deactivate the update/notification of hub specific property changes (battery level, rssi, ...) * @param [in] hubProperty for which updates s
src/Lpf2Hub.cpp:1073
MethoddeactivatePortDevice
* @brief Deactivate device for receiving updates. * * @param [in] port number where the device is connected */
src/Lpf2Hub.cpp:216
MethodderegisterPortDevice
* @brief Remove a device from the connectedDevices array. This method * will be called if a port disconnection event is triggered by the hub * * @
src/Lpf2Hub.cpp:151
MethoddetachDevice
src/Lpf2HubEmulation.cpp:253
MethodgetDeviceIndexForPortNumber
* @brief Get the array index of a specific connected device on a defined port in the connectedDevices array * @param [in] port number * @return arra
src/Lpf2Hub.cpp:873
MethodgetDeviceTypeForPortNumber
* @brief Get the device type of a specific connected device on a defined port in the connectedDevices array * @param [in] port number * @return devi
src/Lpf2Hub.cpp:894
MethodgetHubAddress
* @brief Get the address of the HUB (server address) * @return HUB Address */
src/Lpf2Hub.cpp:862
MethodgetHubName
* @brief Retrieve the hub name * @return hub name */
src/Lpf2Hub.cpp:1198
MethodgetHubType
* @brief Retrieve the hub type * @return hub type */
src/Lpf2Hub.cpp:1189
MethodgetModeForDeviceType
* @brief Get the update mode dependent on the device type * @param [in] pData The pointer to the received data * @return Update mode */
src/Lpf2Hub.cpp:627
MethodgetPortForDeviceType
* @brief Get the port where a specific device is connected * @param [in] device type * @return port number if device type is found or 255 */
src/Lpf2Hub.cpp:915
Methodinit
* @brief Init function set the UUIDs and scan for the Hub */
src/Lpf2Hub.cpp:807
MethodisConnecting
* @brief Retrieve the connection state. The BLE client (ESP32) has found a service with the desired UUID (HUB) * If this state is available, you can
src/Lpf2Hub.cpp:1172
MethodmoveArc
* @brief move an arc (Port AB) with the default speed and stop after degrees * @param [in] degrees (negative: left, positive: right) */
src/Boost.cpp:82
MethodmoveArcLeft
* @brief move an arc left (Port AB) with the default speed and stop after degrees (default 90) * @param [in] degrees (default 90) */
src/Boost.cpp:100
MethodmoveArcRight
src/Boost.cpp:105
MethodmoveBack
* @brief Move back (Port AB) with the default speed and stop after the number of steps * @param [in] steps Number of steps (Boost grid) */
src/Boost.cpp:36
MethodmoveForward
* @brief Move forward (Port AB) with the default speed and stop after the number of steps * @param [in] steps Number of steps (Boost grid) */
src/Boost.cpp:21
MethodnotifyCallback
* @brief Callback function for notifications of a specific characteristic * @param [in] pBLERemoteCharacteristic The pointer to the characteristic *
src/Lpf2Hub.cpp:766
MethodonConnect
src/Lpf2HubEmulation.cpp:30
MethodonConnect
src/Lpf2Hub.cpp:42
MethodonDisconnect
src/Lpf2HubEmulation.cpp:36
MethodonDisconnect
src/Lpf2Hub.cpp:46
MethodonRead
src/Lpf2HubEmulation.cpp:219
MethodonResult
src/Lpf2Hub.cpp:67
MethodonWrite
src/Lpf2HubEmulation.cpp:63
MethodparseBatteryLevel
* @brief Parse battery level of hub * @param [in] pData The pointer to the received data * @return battery level in [%] */
src/Lpf2Hub.cpp:592
MethodparseBatteryType
* @brief Parse battery type of hub * @param [in] pData The pointer to the received data * @return battery type (0=normal, 1=recharchable) */
src/Lpf2Hub.cpp:604
MethodparseBoostTiltSensorX
* @brief Parse boost hub tilt sensor message (x axis) * @param [in] pData The pointer to the received data * @return Degrees of rotation/tilt around
src/Lpf2Hub.cpp:364
MethodparseBoostTiltSensorY
* @brief Parse boost hub tilt sensor message (y axis) * @param [in] pData The pointer to the received data * @return Degrees of rotation/tilt around
src/Lpf2Hub.cpp:376
MethodparseColor
* @brief Parse detected color value of a color sensor * @param [in] pData The pointer to the received data * @return detected color (Encoded in Colo
src/Lpf2Hub.cpp:492
MethodparseControlPlusHubTiltSensorX
* @brief Parse control plus hub tilt sensor message (x axis) * @param [in] pData The pointer to the received data * @return Degrees of rotation/tilt
src/Lpf2Hub.cpp:388
MethodparseControlPlusHubTiltSensorY
* @brief Parse control plus hub tilt sensor message (y axis) * @param [in] pData The pointer to the received data * @return Degrees of rotation/tilt
src/Lpf2Hub.cpp:400
MethodparseControlPlusHubTiltSensorZ
* @brief Parse control plus hub tilt sensor message (z axis) * @param [in] pData The pointer to the received data * @return Degrees of rotation/tilt
src/Lpf2Hub.cpp:412
MethodparseCurrentSensor
* @brief Parse current value [mA] of a current sensor message * @param [in] pData The pointer to the received data * @return current value in unit m
src/Lpf2Hub.cpp:424
MethodparseDeviceInfo
* @brief Parse the incoming characteristic notification for a Device Info Message * @param [in] pData The pointer to the received data */
src/Lpf2Hub.cpp:239
MethodparseDistance
* @brief Parse distance value [millimeters] of a distance sensor * @param [in] pData The pointer to the received data * @return distance in unit mil
src/Lpf2Hub.cpp:474
MethodparseHubAdvertisingName
* @brief Parse advertising name of hub * @param [in] pData The pointer to the received data * @return advertising name */
src/Lpf2Hub.cpp:534
MethodparseHubButton
* @brief Parse button state of hub button * @param [in] pData The pointer to the received data * @return button state */
src/Lpf2Hub.cpp:552
MethodparseMarioBarcode
* @brief Parse Mario barcode sensor * @param [in] pData The pointer to the received data * @return MarioBarcode */
src/Lpf2Hub.cpp:340
MethodparseMarioColor
* @brief Parse Mario color sensor * @param [in] pData The pointer to the received data * @return MarioColor */
src/Lpf2Hub.cpp:352
MethodparseMarioGesture
* @brief Parse Mario gesture sensor * @param [in] pData The pointer to the received data * @return Gesture */
src/Lpf2Hub.cpp:328
MethodparseMarioPant
* @brief Parse Mario pant sensor * @param [in] pData The pointer to the received data * @return Pant type */
src/Lpf2Hub.cpp:316
MethodparsePortAction
* @brief Parse the incoming characteristic notification for a Port Action Message * @param [in] pData The pointer to the received data */
src/Lpf2Hub.cpp:754
MethodparsePortMessage
* @brief Parse the incoming characteristic notification for a Port Message * @param [in] pData The pointer to the received data */
src/Lpf2Hub.cpp:295
MethodparseReflectivity
* @brief Parse detected reflectivity value of a duplo train hub color sensor * @param [in] pData The pointer to the received data * @return reflecti
src/Lpf2Hub.cpp:510
MethodparseRemoteButton
* @brief Parse button state value of a button sensor * @param [in] pData The pointer to the received data * @return button state */
src/Lpf2Hub.cpp:522
MethodparseRssi
* @brief Parse RSSI value * @param [in] pData The pointer to the received data * @return RSSI value in dB */
src/Lpf2Hub.cpp:580
MethodparseSensorMessage
* @brief Parse the incoming characteristic notification for a Sensor Message if a callback * is registered, the callback of that connected device is
src/Lpf2Hub.cpp:663
MethodparseSpeedometer
* @brief Parse speed value of a duplo train hub * @param [in] pData The pointer to the received data * @return speed value */
src/Lpf2Hub.cpp:462
MethodparseSystemTypeId
* @brief Parse system type id of hub * @param [in] pData The pointer to the received data * @return system type id */
src/Lpf2Hub.cpp:616
MethodparseTachoMotor
* @brief Parse rotation value [degrees] of a tacho motor * @param [in] pData The pointer to the received data * @return rotaton in unit degrees (+/-
src/Lpf2Hub.cpp:450
MethodparseVersion
* @brief Parse sw or hw version * @param [in] pData The pointer to the received data * @return version structure (Major-Minor-Bugfix, Build) */
src/Lpf2Hub.cpp:564
MethodparseVoltageSensor
* @brief Parse Voltage value [V] of a voltage sensor message * @param [in] pData The pointer to the received data * @return voltage in unit volt */
src/Lpf2Hub.cpp:437
Methodpause
Pause function see "Transmitting Messages" in Power Functions PDF
src/PowerFunctions.cpp:166
MethodplaySound
* @brief Play a predefined sound on the Duplo train hub * @param [in] sound value. Could be set via the DuploTrainBaseSound enum */
src/Lpf2Hub.cpp:1351
MethodplayTone
* @brief Play a predefined tone on the Duplo train hub * @param [in] tone value. Different bieps on different number 0..10 Which number is which * b
src/Lpf2Hub.cpp:1364
MethodregisterPortDevice
* @brief Register a device on a defined port. This will store the device * in the connectedDevices array. This method will be called if a port connec
src/Lpf2Hub.cpp:137
MethodrequestHubPropertyUpdate
* @brief Request a hub specific property value (battery level, rssi, ...) * @param [in] hubProperty for which the value should be requested * @param
src/Lpf2Hub.cpp:1057
Methodrotate
* @brief rotate (Port AB) with the default speed and stop after the degrees * @param [in] degrees (negative: left, positive: right) */
src/Boost.cpp:46
MethodrotateLeft
* @brief rotate left (Port AB) with the default speed and stop after degrees (default 90) * @param [in] degrees (default 90) */
src/Boost.cpp:64
MethodrotateRight
* @brief rotate right (Port AB) with the default speed and stop after degrees (default 90) * @param [in] degrees (default 90) */
src/Boost.cpp:73
FunctionscanEndedCallback
* Callback if a scan has ended with the results of found devices * only needed to enforce the non blocking scan start */
src/Lpf2Hub.cpp:17
Methodsend
src/PowerFunctions.cpp:204
Methodsend_bit
Send a bit
src/PowerFunctions.cpp:193
MethodsetAbsoluteMotorEncoderPosition
* @brief Set the motor encoded position on a defined port. * @param [in] port Port of the Hub on which the speed of the motor will set (A, B, AB) *
src/Lpf2Hub.cpp:1321
MethodsetAbsoluteMotorPosition
* @brief Set the motor absolute position on a defined port. * @param [in] port Port of the Hub on which the speed of the motor will set (A, B, AB) *
src/Lpf2Hub.cpp:1308
next →1–100 of 127, ranked by callers