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: 0x100
  • SectorSize: 0x1000
  • BlockSize: 0x10000

See also: FuDevice

[]

Constructors

fu_cfi_device_new

Creates a new FuCfiDevice.

since: 1.7.1

[]

Instance methods

fu_cfi_device_chip_select

Sets the chip select value.

since: 1.8.0

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_cmd

Gets the self vendor code.

since: 1.7.1

fu_cfi_device_get_flash_id

Gets the chip ID used to identify the device.

since: 1.7.1

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_get_size

Gets the chip maximum size.

since: 1.7.1

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_flash_id

Sets the chip ID used to identify the device.

since: 1.7.1

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

fu_cfi_device_set_size

Sets the chip maximum size.

since: 1.7.1

Methods inherited from FuDevice (155)
Methods inherited from FwupdDevice (112)
Methods inherited from GObject (43)
[]

Properties

FwupdPlugin.CfiDevice:flash-id

The CCI JEDEC flash ID.

since: 1.7.1

Properties inherited from FuDevice (6)
Properties inherited from FwupdDevice (13)
[]

Signals

Signals inherited from FuDevice (3)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

FwupdPlugin.CfiDeviceClass.chip_select

Sets the chip select value.

since: 1.8.0