Class wrapping a firmware build
| 24 | |
| 25 | |
| 26 | class Firmware(object): |
| 27 | """Class wrapping a firmware build""" |
| 28 | |
| 29 | class TYPE(Enum): |
| 30 | BOOTLOADER = 1 |
| 31 | INTERFACE = 2 |
| 32 | |
| 33 | def __str__(self): |
| 34 | """A string that describes this firmware""" |
| 35 | raise NotImplementedError() |
| 36 | |
| 37 | @property |
| 38 | def name(self): |
| 39 | """Name of this project""" |
| 40 | raise NotImplementedError() |
| 41 | |
| 42 | @property |
| 43 | def hic_id(self): |
| 44 | """HIC ID for the type of board this firmware can run on""" |
| 45 | raise NotImplementedError() |
| 46 | |
| 47 | @property |
| 48 | def type(self): |
| 49 | """Build type - either interface or bootloader""" |
| 50 | raise NotImplementedError() |
| 51 | |
| 52 | @property |
| 53 | def bin_path(self): |
| 54 | """Path to the binary vesion of this firmware or None""" |
| 55 | raise NotImplementedError() |
| 56 | |
| 57 | @property |
| 58 | def hex_path(self): |
| 59 | """Path to the hex vesion of this firmware or None""" |
| 60 | raise NotImplementedError() |
| 61 | |
| 62 | @property |
| 63 | def elf_path(self): |
| 64 | """Path to the hex vesion of this firmware or None""" |
| 65 | raise NotImplementedError() |
| 66 | |
| 67 | |
| 68 | class DAPLinkFirmware(Firmware): |
nothing calls this directly
no outgoing calls
no test coverage detected