Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KoffeinFlummi/rustbucket
/ functions
Functions
74 in github.com/KoffeinFlummi/rustbucket
⨍
Functions
74
◇
Types & classes
16
↓ 12 callers
Method
read_byte
* Read a single byte, optionally send a complement byte. */
src/kline.rs:204
↓ 12 callers
Method
write_byte
* Write a single byte, optionally expect a complement byte. */
src/kline.rs:218
↓ 9 callers
Method
read_block
* Read a block from the K line. Does not send acknowledgement. */
src/kwp1281.rs:282
↓ 9 callers
Method
write_block
* Write a given block to the K line. Does not wait for acknowledgement. */
src/kwp1281.rs:260
↓ 7 callers
Function
busy_wait
* Busily wait until the given number of microseconds has elapsed since the * given reference. Used instead of sleeping for some of the software * UA
src/misc.rs:37
↓ 6 callers
Function
set_pin_mode
* Set the given pin's pin multiplexer mode. */
src/misc.rs:62
↓ 5 callers
Function
busy_wait_until
* Busily wait for a rising or falling edge on the given GPIO pin/line. */
src/misc.rs:44
↓ 4 callers
Function
confirm
* Ask user for confirmation with the given message. */
src/misc.rs:76
↓ 4 callers
Function
init_protocol
(args: &Args)
src/main.rs:230
↓ 4 callers
Method
into
(self)
src/main.rs:172
↓ 4 callers
Method
into
(self)
src/misc.rs:24
↓ 4 callers
Method
obd_query
(&mut self, service: u8, args: &[u8])
src/can.rs:142
↓ 4 callers
Method
read_block
* Read a data block from the K line via KWP2000, returning just the data * bytes, without format and source/target addresses. */
src/kwp2000.rs:113
↓ 4 callers
Method
write_ack
* Write an ACK block to the K line. */
src/kwp1281.rs:248
↓ 3 callers
Function
init_kwp1281
(args: &Args)
src/main.rs:214
↓ 3 callers
Method
into
(self)
src/kwp1281.rs:54
↓ 3 callers
Method
write_block
* Write a data block to the K line via KWP2000. * * Data length is added to format byte, which should be 0x80, or 0xc0 for * diagnostic
src/kwp2000.rs:91
↓ 2 callers
Method
floats
* Return data as floating point values if possible. * * For OBD2, this will mostly be single-value Vecs. */
src/diagnose.rs:633
↓ 2 callers
Method
manufacturer_specific
* Is the code specific to the manufacturer? This is always true for OEM * codes, and true for OBD2 DTCs if the first numerical digit is 1. *
src/diagnose.rs:699
↓ 2 callers
Method
read_data
(&mut self, pid: u8, freeze_frame: bool)
src/obd2.rs:40
↓ 2 callers
Function
run_cmd_as_root
* Run the given command as root, by using sudo if necessary. */
src/misc.rs:89
↓ 1 callers
Method
clear_dtcs
(&mut self)
src/obd2.rs:35
↓ 1 callers
Function
cmd_adaptation
(args: Args)
src/main.rs:417
↓ 1 callers
Function
cmd_basic_setting
(args: Args)
src/main.rs:458
↓ 1 callers
Function
cmd_clear_dtcs
(args: Args)
src/main.rs:284
↓ 1 callers
Function
cmd_dump_data
(args: Args)
src/main.rs:383
↓ 1 callers
Function
cmd_read_data
(args: Args)
src/main.rs:305
↓ 1 callers
Function
cmd_read_dtcs
(args: Args)
src/main.rs:254
↓ 1 callers
Function
cmd_simulator
(args: Args)
src/main.rs:508
↓ 1 callers
Function
cmd_test_hardware
(args: Args)
src/main.rs:517
↓ 1 callers
Method
deserialize
(deserializer: D)
src/main.rs:108
↓ 1 callers
Function
do_main
()
src/main.rs:521
↓ 1 callers
Method
floats_kwp1281
(&self)
src/diagnose.rs:95
↓ 1 callers
Method
floats_obd2
(&self)
src/diagnose.rs:207
↓ 1 callers
Method
formatted
* Return data formatted as a human-readable string, with units and name * if possible. */
src/diagnose.rs:620
↓ 1 callers
Method
formatted_kwp1281
(&self)
src/diagnose.rs:148
↓ 1 callers
Method
formatted_obd2
(&self)
src/diagnose.rs:312
↓ 1 callers
Method
init
* Initialize the CAN protocol on the `can0` interface. This method expects * the `can0` network interface to not currently exist, and brings it u
src/can.rs:29
↓ 1 callers
Function
main
(file1, file2)
plot_data.py:10
↓ 1 callers
Method
name
* Return the meaning of an OBD2 DTC if known. * * Taken from PyOBD (GPL3). */
src/diagnose.rs:749
↓ 1 callers
Method
perform_basic_setting
* Perform basic setting. Command should be repeated until ECU indicates * success. How exactly it does that is manufacturer specific. */
src/kwp1281.rs:363
↓ 1 callers
Method
read_dtcs
(&mut self, pending: bool)
src/obd2.rs:19
↓ 1 callers
Method
write_adaptation
* Write adaptation value. */
src/kwp1281.rs:325
Method
clear_dtcs
(&mut self)
src/kwp2000.rs:161
Method
clear_dtcs
(&mut self)
src/kwp1281.rs:410
Method
deref
(&self)
src/main.rs:131
Method
drop
(&mut self)
src/can.rs:134
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/diagnose.rs:46
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/kwp1281.rs:74
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/error.rs:19
Method
from
(block_type: u8)
src/kwp1281.rs:34
Method
from_kwp1281_data
* Initialize with data from a KWP1281 group reading. */
src/diagnose.rs:60
Method
from_obd2_data
* Initialize with data from an OBD2 PID reading. */
src/diagnose.rs:71
Method
help
* Return a string with some additional resources for interpreting codes. * Especially needed for OEM/VAG codes, since they are not publicly
src/diagnose.rs:711
Method
init
* Initialize the K line on the UART1 bus by addressing the given ECU. * * If the baud rate is not given, it will be determined automatically
src/kline.rs:43
Method
init
* Initialize the KWP2000 protocol via the UART1 bus. * * It will be attempted to deduce the baud rate automatically using a sync * byte
src/kwp2000.rs:33
Method
init
* Initialize the KWP1281 protocol via the UART1 bus. Because of the * extremely low baud rate used for initialization (5), the initialization
src/kwp1281.rs:110
Method
initialize_gpio
* Set the UART1 tx/rx pins' pin multiplexer state to GPIO, and initialize * the LineHandles. */
src/kline.rs:128
Method
initialize_uart
* Set the UART1 tx/rx pins' pin multiplexer state to UART, and initialize * the UART bus with the given baud rate. */
src/kline.rs:147
Function
main
()
src/main.rs:577
Method
more_info
* Return the meaning of OBD2 DTCs if known, and some more information such * as the status byte for the VAG codes. */
src/diagnose.rs:684
Method
nearest_baud_rate
* Determine the known baud rate closest to the one that was measured. */
src/kline.rs:118
Method
new
* Creates new error with the given message. */
src/error.rs:13
Method
raw
* Return the raw bytes. */
src/diagnose.rs:82
Method
read_adaptation
* Read adaptation value. */
src/kwp1281.rs:307
Method
read_data
(&mut self, _pid: u8, _freeze_frame: bool)
src/kwp2000.rs:184
Method
read_data
(&mut self, pid: u8, freeze_frame: bool)
src/kwp1281.rs:425
Method
read_dtcs
(&mut self, _pending: bool)
src/kwp2000.rs:142
Method
read_dtcs
(&mut self, _pending: bool)
src/kwp1281.rs:380
Method
run_simulator
* Run a crude car simulator using the given baud rate. This simulator can * be used for testing the logic level conversion hardware using two BBB
src/kwp1281.rs:160
Method
run_simulator
* Run a crude car simulator using the given bit rate. */
src/can.rs:45
Method
test_hardware
* Continuously transmit or receive data via the UART1 bus using the given * baud rate. This is useful for low-level hardware testing, or hooking
src/kline.rs:83
Method
try_into
(self)
src/diagnose.rs:40
Method
write_byte_software
* Write byte to serial bus using software UART in GPIO mode (needed for * extremely low baud rate used during init). Always use start bit and 1
src/kline.rs:170