class documentation
class TILicense(TIFlashHeader): (source)
Constructor: TILicense(init, magic, revision, binary_format, ...)
Parser for licenses
A license is simply a string containing the TI license agreement, possibly spanning multiple devices and languages.
Method | calc |
The data stored in the flash header |
Method | license |
The license stored in the header as a string |
Class Variable | extensions |
The file extension used for this header per-model |
Class Variable | _type |
Undocumented |
Inherited from TIFlashHeader
:
Class |
|
Raw bytes container for TIFlashHeader |
Class Method | get |
Gets the subclass corresponding to a type ID if one is registered |
Class Method | open |
Creates a new header from a file given a filename |
Class Method | register |
Registers a subtype with this class for coercion |
Static Method | next |
Helper function to determine the length of the next flash header in a bytestream |
Method | __init__ |
Creates an empty flash header with specified meta and data values |
Method | __len__ |
No summary |
Method | binary |
Whether this flash header's data is in binary (0x00) or Intel (0x01) format |
Method | bytes |
No summary |
Method | coerce |
Coerces this header to a subclass if possible using the header's type ID |
Method | data |
The data stored in the flash header as either raw binary or Intel blocks |
Method | date |
The date attached to the flash header as a 3-tuple |
Method | device |
The (first) device targeted by the flash header |
Method | devices |
The devices targeted by the flash header |
Method | extension |
Determines the header's file extension given a targeted model |
Method | filename |
Determines the header's filename given a targeted model |
Method | load |
Loads a byte string or bytestream into this header |
Method | load |
Loads this header from a file given a file pointer and offset |
Method | magic |
The file magic for the flash header |
Method | name |
The name or basecode attached to the flash header |
Method | object |
The object type of the flash header |
Method | product |
The product ID for the header |
Method | revision |
The revision of the flash header |
Method | save |
Saves this header to the current directory given a filename and targeted model |
Method | type |
The (first) type ID of the flash header |
Instance Variable | raw |
Undocumented |
Property | calc |
The length of the data stored in the flash header, measured in chars |
Property | checksum |
The checksum for the flash header |
Property | name |
The length of the name or basecode attached to the flash header |
Method | __init |
Undocumented |
Class Variable | _type |
Undocumented |
Instance Variable | _has |
Undocumented |
Inherited from Dock
(via TIFlashHeader
):
Method | load |
Loads data into an instance by delegating to Loader methods based on the input's type |
Class Variable | loaders |
Undocumented |