MCPcopy Create free account

hub / github.com/aster94/Keyword-Protocol-2000 / functions

Functions43 in github.com/aster94/Keyword-Protocol-2000

↓ 8 callersFunctioncompare
(received,correct)
extras/ECU_Emulator/ECU_Emulator.py:91
↓ 7 callersFunctionsend
(to_send)
extras/ECU_Emulator/ECU_Emulator.py:81
↓ 2 callersFunctioncalc_cs
(arr)
extras/ECU_Emulator/ECU_Emulator.py:114
↓ 1 callersFunctionlisten
()
extras/ECU_Emulator/ECU_Emulator.py:119
MethodKWP2000
* @brief Constructor for the KWP2000 class * * @param kline_serial The Serial port you will use to communicate with the ECU * @param k_out_pin The
src/KWP2000.cpp:72
Methodcalc_checksum
* @brief The checksum is the sum of all data bytes modulo (&) 0xFF (same as being truncated to one byte) * * @param data All the bytes received * @
src/KWP2000.cpp:2020
MethodcheckResponse
* @brief Compare the given response to the correct one which should be received * * @param request_sent The request sent to the ECU * @return `true
src/KWP2000.cpp:1730
MethodclearError
* @brief Clear errors from `error_enum` * * @param error The error you want to clear */
src/KWP2000.cpp:1892
MethodclearTroubleCodes
* @brief Clear the DTC from the ECU * * @param code Optional. Only the passed `code` will be cleared */
src/KWP2000.cpp:580
MethodconfigureKline
* @brief Configure the K-Line behaviour from the keybytes received by the ECU */
src/KWP2000.cpp:1900
MethoddisableDebug
* @brief Disable the debug */
src/KWP2000.cpp:131
MethodenableDealerMode
* @brief Only for Suzuki: Enable the Dealer Mode * * @param dealer_pin The pin you will use to control it */
src/KWP2000.cpp:146
MethodenableDebug
* @brief Enable the debug of the communication * * @param debug_serial The Serial port you will use for the debug information * @param debug_level
src/KWP2000.cpp:92
MethodendResponse
* @brief This is called when the last byte is received from the ECU * * @param received_checksum The last byte received which is the checksum */
src/KWP2000.cpp:2035
MethodgetCLUTCH
src/KWP2000.cpp:1283
MethodgetDealerMode
* @brief Only for Suzuki: Check the dealer status * * @return true if it is in dealer mode * @return false otherwise */
src/KWP2000.cpp:184
MethodgetECT
src/KWP2000.cpp:1326
MethodgetGPS
* @brief Get* the ECU sensor value you need * GPS: Gear Position Sensor * CLUTCH: Know if the clutch is pressed or not * RPM: Revolutions per Minut
src/KWP2000.cpp:1278
MethodgetIAP
src/KWP2000.cpp:1312
MethodgetIAT
src/KWP2000.cpp:1317
MethodgetRPM
src/KWP2000.cpp:1288
MethodgetSPEED
src/KWP2000.cpp:1293
MethodgetSTPS
src/KWP2000.cpp:1307
MethodgetStatus
* @brief Get the connection status * * @return It could be `true` or `false` */
src/KWP2000.cpp:1259
MethodgetTPS
src/KWP2000.cpp:1302
MethodgetVOLT
src/KWP2000.cpp:1335
MethodhandleRequest
///////// COMMUNICATION - Advanced //////////////// * @brief This function is the core of the library. You just need to give a PID and it will generat
src/KWP2000.cpp:706
MethodinitKline
* @brief Initialize the the communication through the K-Line * * @return `false` until the connection is not established; `true` if we connected; a
src/KWP2000.cpp:216
MethodkeepAlive
* @brief Keep the connection through the K-Line alive * * @param time Optional. It is calculated automatically to be a safe interval */
src/KWP2000.cpp:608
MethodlistenResponse
* @brief Listen and process the response from the ECU * * @param use_delay Choose to wait at the end of the function or to do other tasks */
src/KWP2000.cpp:1452
MethodprintLastResponse
* @brief Print the last response received from the ECU */
src/KWP2000.cpp:1238
MethodprintSensorsData
* @brief Print all the sensors data from the ECU, you need to run `requestSensorsData()` before */
src/KWP2000.cpp:1186
MethodprintStatus
* @brief Print a rich and useful set of information about the ECU status and errors * * @param time Optional, default to 5 seconds. The time between
src/KWP2000.cpp:1064
MethodreadTroubleCodes
* @brief Read the Diagnostic Trouble Codes (DTC) from the ECU * * @param Default to `READ_ONLY_ACTIVE`, accepted values `READ_TOTAL`, `READ_ALL` */
src/KWP2000.cpp:536
MethodrequestSensorsData
* @brief Send a request to the ECU asking for data from all the sensors, then you can access the single sensor with the `get*()` functions or you can
src/KWP2000.cpp:446
MethodsendRequest
* @brief Generate and send a request to the ECU * * @param pid The PID you want to send * @param pid_len the length of the PID, get it with `sizeof
src/KWP2000.cpp:1350
MethodsetDealerMode
* @brief Only for Suzuki: Enable/Disable the Dealer Mode * * @param dealer_mode Choose between true/false */
src/KWP2000.cpp:163
MethodsetDebugLevel
* @brief Change the debug level * * @param debug_level choose between DEBUG_LEVEL_NONE DEBUG_LEVEL_DEFAULT DEBUG_LEVEL_VERBOSE */
src/KWP2000.cpp:110
MethodsetError
* @brief Set errors from `error_enum` * * @param error The error you want to set */
src/KWP2000.cpp:1882
Methodset_bike_specific_values
src/ISO.h:99
MethodstopKline
* @brief Close the communication with the motorbike * * @return `false` until the connection is not closed; `true` if there aren't any errors, a `ne
src/KWP2000.cpp:371
Methoduse_imperial
* @brief Choose to use imperial system for the sensors values (mp/h, Fahrenheit) */
src/KWP2000.cpp:196
Methoduse_metric
* @brief Choose to use metric system for the sensors values (km/h, Celsius) */
src/KWP2000.cpp:204