Class
FwupdPluginCfiDevice
Description [src]
class FwupdPlugin.CfiDevice : FwupdPlugin.Device {
parent_instance: FuDevice
}
A chip conforming to the Common Flash Memory Interface, typically a SPI flash chip.
Where required, the quirks instance IDs will be added in ->setup().
The defaults are set as follows, and can be overridden in quirk files:
PageSize
: 0x100SectorSize
: 0x1000BlockSize
: 0x10000
See also: FuDevice
Instance methods
fu_cfi_device_chip_select_locker_new
Creates a custom device locker that asserts and deasserts the chip select signal.
since: 1.8.0
fu_cfi_device_get_block_size
Gets the chip block size. This is typically the largest erasable block size.
since: 1.7.4
fu_cfi_device_get_page_size
Gets the chip page size. This is typically the largest writable block size.
since: 1.7.3
fu_cfi_device_get_sector_size
Gets the chip sector size. This is typically the smallest erasable page size.
since: 1.7.3
fu_cfi_device_set_block_size
Sets the chip block size. This is typically the largest erasable chunk size.
since: 1.7.4
fu_cfi_device_set_page_size
Sets the chip page size. This is typically the largest writable block size.
since: 1.7.3
fu_cfi_device_set_sector_size
Sets the chip sector size. This is typically the smallest erasable page size.
since: 1.7.3