Function tapcp::read_device
source · pub fn read_device(
device: &str,
offset: usize,
n: usize,
socket: &UdpSocket,
retries: usize
) -> Result<Vec<u8>, Error>
Expand description
Read memory associated with the gateware device device
We can read offset
words (4 bytes) into a given device in multiples on n
words
The special case of n
= 0 will read all the bytes at that location
Errors
Returns an error on TFTP errors