Crate robust_arduino_serial

Source
Expand description

§Robust Arduino Serial

robust_arduino_serial is a simple and robust serial communication protocol. It was designed to make two arduinos communicate, but can also be useful when you want a computer (e.g. a Raspberry Pi) to communicate with an Arduino.

It works with anything that implement the io::Write and io::Read traits.

Enums§

Functions§

  • Convert an int to an Order
  • Read one byte from a file/serial port and convert it to a 8 bits int
  • Read two bytes from a file/serial port and convert it to a 16 bits int
  • Read four bytes from a file/serial port and convert it to a 32 bits int
  • Read one byte from a file/serial port and convert it to an order
  • Write one byte int to a file/serial port. It returns the number of bytes written
  • Write two bytes int to a file/serial port. It returns the number of bytes written
  • Write four bytes int to a file/serial port. It returns the number of bytes written
  • Write an order to a file/serial port. It returns the number of bytes written