Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/araffin/rust-arduino-serial
/ functions
Functions
15 in github.com/araffin/rust-arduino-serial
⨍
Functions
15
◇
Types & classes
1
↓ 9 callers
Function
read_i8
Read one byte from a file/serial port and convert it to a 8 bits int # Example ``` use std::io::Cursor; let mut buffer = Cursor::new(vec![2]); let
src/lib.rs:102
↓ 9 callers
Function
write_i8
Write one byte int to a file/serial port. It returns the number of bytes written # Example ``` use robust_arduino_serial::write_i8; let mut buffer =
src/lib.rs:204
↓ 5 callers
Function
write_order
Write an order to a file/serial port. It returns the number of bytes written # Example ``` use robust_arduino_serial::write_order; use robust_arduin
src/lib.rs:186
↓ 4 callers
Function
write_i16
Write two bytes int to a file/serial port. It returns the number of bytes written # Example ``` use std::io::Cursor; use robust_arduino_serial::*;
src/lib.rs:226
↓ 2 callers
Function
read_i16
Read two bytes from a file/serial port and convert it to a 16 bits int # Example ``` use std::io::Cursor; use std::io::SeekFrom; use std::io::prelud
src/lib.rs:133
↓ 2 callers
Function
read_i32
Read four bytes from a file/serial port and convert it to a 32 bits int # Example ``` use std::io::Cursor; use std::io::SeekFrom; use std::io::prelu
src/lib.rs:165
↓ 2 callers
Function
write_i32
Write four bytes int to a file/serial port. It returns the number of bytes written # Example ``` use std::io::Cursor; use robust_arduino_serial::*;
src/lib.rs:251
↓ 1 callers
Function
convert_i8_to_order
Convert an int to an Order # Example ``` use robust_arduino_serial::Order; let order: i8 = 2; // Order::MOTOR has the index 2 in the enum let conv
src/lib.rs:38
↓ 1 callers
Function
read_order
Read one byte from a file/serial port and convert it to an order # Example ``` use std::io::Cursor; use robust_arduino_serial::*; let mut buffer =
src/lib.rs:84
Method
from_i8
(num: i8)
src/lib.rs:66
Function
main
()
examples/arduino_serial.rs:21
Function
main
()
examples/arduino_threads.rs:25
Function
main
()
examples/file_read_write.rs:10
Function
read_write_orders
()
src/lib.rs:292
Function
test_order_conversion
()
src/lib.rs:272