Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corneliusmunz/legoino
/ functions
Functions
127 in github.com/corneliusmunz/legoino
⨍
Functions
127
◇
Types & classes
40
↓ 4 callers
Method
writeValue
src/Lpf2HubEmulation.cpp:298
↓ 2 callers
Method
getDeviceTypeForPort
* @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 callers
Method
getHubName
src/Lpf2HubEmulation.cpp:368
↓ 1 callers
Method
getBatteryType
src/Lpf2HubEmulation.cpp:373
↓ 1 callers
Method
getPortInformationPayload
src/Lpf2HubEmulation.cpp:466
↓ 1 callers
Method
getPortModeInformationRequestPayload
src/Lpf2HubEmulation.cpp:503
↓ 1 callers
Method
isConnected
* @brief Retrieve the connection state. The BLE client (ESP32) is connected to the server (HUB) */
src/Lpf2Hub.cpp:1180
↓ 1 callers
Method
setHubName
src/Lpf2HubEmulation.cpp:349
↓ 1 callers
Method
start
src/Lpf2HubEmulation.cpp:388
Method
Boost
src/Boost.cpp:15
Method
ColorStringFromColor
* @brief return string value of color enum * @param [in] Color enum */
src/LegoinoCommon.cpp:39
Method
Int16ToByteArray
src/LegoinoCommon.cpp:59
Method
Int32ToByteArray
src/LegoinoCommon.cpp:67
Method
Lpf2Hub
* @brief Constructor */
src/Lpf2Hub.cpp:802
Method
Lpf2HubAdvertisedDeviceCallbacks
src/Lpf2Hub.cpp:62
Method
Lpf2HubCharacteristicCallbacks
src/Lpf2HubEmulation.cpp:58
Method
Lpf2HubClientCallback
src/Lpf2Hub.cpp:37
Method
Lpf2HubEmulation
src/Lpf2HubEmulation.cpp:225
Method
Lpf2HubServerCallbacks
src/Lpf2HubEmulation.cpp:25
Method
MapSpeed
* @brief Map speed from -100..100 to the 8bit internal value * @param [in] speed -100..100 */
src/LegoinoCommon.cpp:17
Method
PowerFunctions
* @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
Method
ReadInt16LE
src/LegoinoCommon.cpp:95
Method
ReadInt32LE
src/LegoinoCommon.cpp:107
Method
ReadInt8
src/LegoinoCommon.cpp:83
Method
ReadUInt16LE
src/LegoinoCommon.cpp:89
Method
ReadUInt32LE
src/LegoinoCommon.cpp:101
Method
ReadUInt8
src/LegoinoCommon.cpp:77
Method
WriteValue
* @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
Method
activateHubPropertyUpdate
* @brief Activate the update/notification of hub specific property changes (battery level, rssi, ...) * @param [in] hubProperty for which updates sho
src/Lpf2Hub.cpp:1040
Method
activatePortDevice
* @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
Method
attachDevice
src/Lpf2HubEmulation.cpp:238
Method
combo_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
Method
connectHub
* @brief Connect to the HUB, get a reference to the characteristic and register for notifications */
src/Lpf2Hub.cpp:1084
Method
deactivateHubPropertyUpdate
* @brief Deactivate the update/notification of hub specific property changes (battery level, rssi, ...) * @param [in] hubProperty for which updates s
src/Lpf2Hub.cpp:1073
Method
deactivatePortDevice
* @brief Deactivate device for receiving updates. * * @param [in] port number where the device is connected */
src/Lpf2Hub.cpp:216
Method
deregisterPortDevice
* @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
Method
detachDevice
src/Lpf2HubEmulation.cpp:253
Method
getDeviceIndexForPortNumber
* @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
Method
getDeviceTypeForPortNumber
* @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
Method
getHubAddress
* @brief Get the address of the HUB (server address) * @return HUB Address */
src/Lpf2Hub.cpp:862
Method
getHubName
* @brief Retrieve the hub name * @return hub name */
src/Lpf2Hub.cpp:1198
Method
getHubType
* @brief Retrieve the hub type * @return hub type */
src/Lpf2Hub.cpp:1189
Method
getModeForDeviceType
* @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
Method
getPortForDeviceType
* @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
Method
init
* @brief Init function set the UUIDs and scan for the Hub */
src/Lpf2Hub.cpp:807
Method
isConnecting
* @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
Method
moveArc
* @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
Method
moveArcLeft
* @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
Method
moveArcRight
src/Boost.cpp:105
Method
moveBack
* @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
Method
moveForward
* @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
Method
notifyCallback
* @brief Callback function for notifications of a specific characteristic * @param [in] pBLERemoteCharacteristic The pointer to the characteristic *
src/Lpf2Hub.cpp:766
Method
onConnect
src/Lpf2HubEmulation.cpp:30
Method
onConnect
src/Lpf2Hub.cpp:42
Method
onDisconnect
src/Lpf2HubEmulation.cpp:36
Method
onDisconnect
src/Lpf2Hub.cpp:46
Method
onRead
src/Lpf2HubEmulation.cpp:219
Method
onResult
src/Lpf2Hub.cpp:67
Method
onWrite
src/Lpf2HubEmulation.cpp:63
Method
parseBatteryLevel
* @brief Parse battery level of hub * @param [in] pData The pointer to the received data * @return battery level in [%] */
src/Lpf2Hub.cpp:592
Method
parseBatteryType
* @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
Method
parseBoostTiltSensorX
* @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
Method
parseBoostTiltSensorY
* @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
Method
parseColor
* @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
Method
parseControlPlusHubTiltSensorX
* @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
Method
parseControlPlusHubTiltSensorY
* @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
Method
parseControlPlusHubTiltSensorZ
* @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
Method
parseCurrentSensor
* @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
Method
parseDeviceInfo
* @brief Parse the incoming characteristic notification for a Device Info Message * @param [in] pData The pointer to the received data */
src/Lpf2Hub.cpp:239
Method
parseDistance
* @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
Method
parseHubAdvertisingName
* @brief Parse advertising name of hub * @param [in] pData The pointer to the received data * @return advertising name */
src/Lpf2Hub.cpp:534
Method
parseHubButton
* @brief Parse button state of hub button * @param [in] pData The pointer to the received data * @return button state */
src/Lpf2Hub.cpp:552
Method
parseMarioBarcode
* @brief Parse Mario barcode sensor * @param [in] pData The pointer to the received data * @return MarioBarcode */
src/Lpf2Hub.cpp:340
Method
parseMarioColor
* @brief Parse Mario color sensor * @param [in] pData The pointer to the received data * @return MarioColor */
src/Lpf2Hub.cpp:352
Method
parseMarioGesture
* @brief Parse Mario gesture sensor * @param [in] pData The pointer to the received data * @return Gesture */
src/Lpf2Hub.cpp:328
Method
parseMarioPant
* @brief Parse Mario pant sensor * @param [in] pData The pointer to the received data * @return Pant type */
src/Lpf2Hub.cpp:316
Method
parsePortAction
* @brief Parse the incoming characteristic notification for a Port Action Message * @param [in] pData The pointer to the received data */
src/Lpf2Hub.cpp:754
Method
parsePortMessage
* @brief Parse the incoming characteristic notification for a Port Message * @param [in] pData The pointer to the received data */
src/Lpf2Hub.cpp:295
Method
parseReflectivity
* @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
Method
parseRemoteButton
* @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
Method
parseRssi
* @brief Parse RSSI value * @param [in] pData The pointer to the received data * @return RSSI value in dB */
src/Lpf2Hub.cpp:580
Method
parseSensorMessage
* @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
Method
parseSpeedometer
* @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
Method
parseSystemTypeId
* @brief Parse system type id of hub * @param [in] pData The pointer to the received data * @return system type id */
src/Lpf2Hub.cpp:616
Method
parseTachoMotor
* @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
Method
parseVersion
* @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
Method
parseVoltageSensor
* @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
Method
pause
Pause function see "Transmitting Messages" in Power Functions PDF
src/PowerFunctions.cpp:166
Method
playSound
* @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
Method
playTone
* @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
Method
registerPortDevice
* @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
Method
requestHubPropertyUpdate
* @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
Method
rotate
* @brief rotate (Port AB) with the default speed and stop after the degrees * @param [in] degrees (negative: left, positive: right) */
src/Boost.cpp:46
Method
rotateLeft
* @brief rotate left (Port AB) with the default speed and stop after degrees (default 90) * @param [in] degrees (default 90) */
src/Boost.cpp:64
Method
rotateRight
* @brief rotate right (Port AB) with the default speed and stop after degrees (default 90) * @param [in] degrees (default 90) */
src/Boost.cpp:73
Function
scanEndedCallback
* 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
Method
send
src/PowerFunctions.cpp:204
Method
send_bit
Send a bit
src/PowerFunctions.cpp:193
Method
setAbsoluteMotorEncoderPosition
* @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
Method
setAbsoluteMotorPosition
* @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