Set data to program over mass storage Data should be the conetents of the hex or binary file being loaded. This option cannot be used with set_shutils_copy.
(self, data, file_name)
| 101 | self._load_with_shutils = True |
| 102 | |
| 103 | def set_programming_data(self, data, file_name): |
| 104 | """ |
| 105 | Set data to program over mass storage |
| 106 | |
| 107 | Data should be the conetents of the hex or binary file |
| 108 | being loaded. This option cannot be used with set_shutils_copy. |
| 109 | """ |
| 110 | assert type(data) is bytearray |
| 111 | assert type(file_name) is str |
| 112 | assert(self._load_with_shutils is False or |
| 113 | self._load_with_shutils is None) |
| 114 | self._load_with_shutils = False |
| 115 | self._programming_data = data |
| 116 | self._programming_file_name = file_name |
| 117 | |
| 118 | def set_flush_size(self, size): |
| 119 | """Set the block size to simulate a flush of""" |
no outgoing calls
no test coverage detected