MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / Firmware

Class Firmware

test/firmware.py:26–65  ·  view source on GitHub ↗

Class wrapping a firmware build

Source from the content-addressed store, hash-verified

24
25
26class 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
68class DAPLinkFirmware(Firmware):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected