Crate tudelft_serial_upload

Crate tudelft_serial_upload 

Source

Re-exports§

pub use color_eyre;
pub use serial2;

Enums§

PortSelector

Functions§

upload
Upload (already read) bytes to a connected board. Select which serial port the board is on with the PortSelector The bytes are the exact bytes that are uploaded to the board. That means it should be a binary file, and not contain ELF headers or similar Returns an error when the upload fails.
upload_file
Upload a file to a connected board. Select which serial port the board is on with the PortSelector The file is expected to be the compiled .elf file created by cargo/rustc Returns an error when the upload fails.
upload_file_or_stop
Upload a file to a connected board. Select which serial port the board is on with the PortSelector. The file is expected to be the compiled .elf file created by cargo/rustc Exit with an exit code of 1 when the upload fails.
upload_or_stop
Upload (already read) bytes to a connected board. Select which serial port the board is on with the PortSelector The bytes are the exact bytes that are uploaded to the board. That means it should be a binary file, and not contain ELF headers or similar Exit with an exit code of 1 when the upload fails.