ftd2xx/ftd2xx.py
def eeRead(self) -> ft_program_data:
        """Get the program information from the EEPROM"""
        #        if self.devInfo['type'] == 4:
        #            version = 1
        #        elif self.devInfo['type'] == 5:
        #            version = 2
        #        else:
        #            version = 0

        Manufacturer = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        ManufacturerId = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        Description = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        SerialNumber = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        progdata = ft_program_data(
            **ProgramData(
                Signature1=0,
                Signature2=0xFFFFFFFF,
                Version=2,
                Manufacturer=c.addressof(Manufacturer),
                ManufacturerId=c.addressof(ManufacturerId),
                Description=c.addressof(Description),
                SerialNumber=c.addressof(SerialNumber),
            )
        )

        call_ft(_ft.FT_EE_Read, self.handle, c.byref(progdata))
        return progdata
Get the program information from the EEPROM
Get the program information from the EEPROM
Get the program information from the EEPROM
def eeRead(self) -> ft_program_data:
        Manufacturer = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        ManufacturerId = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        Description = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        SerialNumber = c.c_buffer(defines.MAX_DESCRIPTION_SIZE)
        progdata = ft_program_data(
            **ProgramData(
                Signature1=0,
                Signature2=0xFFFFFFFF,
                Version=2,
                Manufacturer=c.addressof(Manufacturer),
                ManufacturerId=c.addressof(ManufacturerId),
                Description=c.addressof(Description),
                SerialNumber=c.addressof(SerialNumber),
            )
        )
        call_ft(_ft.FT_EE_Read, self.handle, c.byref(progdata))
        return progdata
def eeRead ( self ) -> ft_program_data : Manufacturer = c . c_buffer ( defines . MAX_DESCRIPTION_SIZE ) ManufacturerId = c . c_buffer ( defines . MAX_DESCRIPTION_SIZE ) Description = c . c_buffer ( defines . MAX_DESCRIPTION_SIZE ) SerialNumber = c . c_buffer ( defines . MAX_DESCRIPTION_SIZE ) progdata = ft_program_data ( ** ProgramData ( Signature1 = 0 , Signature2 = 0xFFFFFFFF , Version = 2 , Manufacturer = c . addressof ( Manufacturer ) , ManufacturerId = c . addressof ( ManufacturerId ) , Description = c . addressof ( Description ) , SerialNumber = c . addressof ( SerialNumber ) , ) ) call_ft ( _ft . FT_EE_Read , self . handle , c . byref ( progdata ) ) return progdata
Get the program information from the EEPROM
Get the program information from the EEPROM
"""Get the program information from the EEPROM""" #        if self.devInfo['type'] == 4: #            version = 1 #        elif self.devInfo['type'] == 5: #            version = 2 #        else: #            version = 0
self