MCPcopy Create free account

hub / github.com/araffin/rust-arduino-serial / functions

Functions15 in github.com/araffin/rust-arduino-serial

↓ 9 callersFunctionread_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 callersFunctionwrite_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 callersFunctionwrite_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 callersFunctionwrite_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 callersFunctionread_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 callersFunctionread_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 callersFunctionwrite_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 callersFunctionconvert_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 callersFunctionread_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
Methodfrom_i8
(num: i8)
src/lib.rs:66
Functionmain
()
examples/arduino_serial.rs:21
Functionmain
()
examples/arduino_threads.rs:25
Functionmain
()
examples/file_read_write.rs:10
Functionread_write_orders
()
src/lib.rs:292
Functiontest_order_conversion
()
src/lib.rs:272