예제 #1
0
    def __init__(self, attributes):
        firmware_exporter.__init__(self, attributes)
        self.hf = header_file(self.attributes['part_number_str'],
                              self.attributes['fw_meta'])
        self.cf = source_file(self.attributes['part_number_str'])

        return
예제 #2
0
 def __init__(self, attributes):
     firmware_exporter.__init__(self, attributes)
     self.template_str = wisce_script_template_str
     self.output_str = ''
     self.terms = dict()
     self.terms['part_number_lc'] = self.attributes[
         'part_number_str'].lower()
     self.terms['part_number_uc'] = self.attributes[
         'part_number_str'].upper()
     self.terms['wisce_blocks'] = ''
     self.terms['i2c_address'] = self.attributes['i2c_address']
     self.terms['metadata_text'] = ''
     self.block_write_32dat_per_line = 8
     return
예제 #3
0
    def __init__(self, attributes, version):
        firmware_exporter.__init__(self, attributes)
        self.includes_coeff = False
        self.output_str = ''
        self.terms = dict()
        self.terms['part_uc'] = self.attributes['part_number_str'].upper()
        self.terms['part_lc'] = self.attributes['part_number_str'].lower()
        self.terms['part_number_lc'] = (self.attributes['part_number_str'] + self.attributes['suffix']).lower()
        self.terms['part_number_uc'] = (self.attributes['part_number_str'] + self.attributes['suffix']).upper()
        self.terms['total_fw_blocks'] = 0
        self.terms['algorithm_defines'] = ''
        self.terms['control_defines'] = ''
        self.terms['include_coeff_0'] = ''
        self.terms['metadata_text'] = ' *\n'
        self.terms['algorithm_defines'] = ''
        self.total_coeff_blocks = []
        self.fw_data_block_list = []
        self.coeff_data_block_list = []
        self.uint8_per_line = 24
        self.blocks = []
        self.sym_id_input = self.attributes['symbol_id_input']
        self.sym_id_output = self.attributes['symbol_id_output']

        self.terms['magic_num1'] = 0x54b998ff
        self.terms['version'] = version
        self.terms['img_size'] = 0
        self.terms['sym_table_size'] = 0
        self.terms['alg_list_size'] = 0
        self.terms['fw_id'] = self.attributes['fw_meta']['fw_id']
        self.terms['fw_rev'] = self.attributes['fw_meta']['fw_rev']
        self.terms['bin_ver'] = self.attributes['fw_img_version']
        self.terms['data_blocks'] = 0
        self.terms['max_block_size'] = self.attributes['max_block_size']

        self.algorithms = OrderedDict()

        self.algorithm_controls = OrderedDict()

        self.terms['fw_block_arrays'] = ''
        self.terms['coeff_block_arrays'] = []

        self.terms['magic_num2'] = 0x936be2a6
        self.terms['checksum'] = 0

        self.c0 = 0x0
        self.c1 = 0x0

        return
예제 #4
0
    def __init__(self, attributes):
        firmware_exporter.__init__(self, attributes)

        self.fw_export = dict()

        self.fw_export['tool_info'] = dict()
        self.fw_export['tool_info']['timestamp'] = '{:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())
        self.fw_export['tool_info']['metadata_text'] = []

        self.fw_export['fw_info'] = self.attributes['fw_meta']
        for key in  self.fw_export['fw_info'].keys():
            if (isinstance(self.fw_export['fw_info'][key], int)):
                self.fw_export['fw_info'][key] = hex(self.fw_export['fw_info'][key])

        self.fw_export['controls'] = dict()

        return
 def __init__(self, attributes):
     firmware_exporter.__init__(self, attributes)
     self.exporters = []
     self.attributes = attributes
     return