Classes
DeckMemory
DeckMemory(deck_memory_manager: DeckMemoryManager, _command_base_address)
This class represents the memory in one deck. It is used to read and write to the deck memory.
Class variables
ADR_COMMAND_BIT_FIELD
ADR_FW_NEW_FLASH
FLAG_COMMAND_RESET_TO_BOOTLOADER
FLAG_COMMAND_RESET_TO_FW
MASK_BOOTLOADER_ACTIVE
MASK_IS_STARTED
MASK_IS_VALID
MASK_SUPPORTS_READ
MASK_SUPPORTS_RESET_TO_BOOTLOADER
MASK_SUPPORTS_RESET_TO_FW
MASK_SUPPORTS_UPGRADE
MASK_SUPPORTS_WRITE
MASK_UPGRADE_REQUIRED
MEMORY_MAX_SIZE
Instance variables
is_bootloader_active
is_fw_upgrade_required
is_started
is_valid
supports_fw_upgrade
supports_read
supports_reset_to_bootloader
supports_reset_to_fw
supports_write
Methods
def contains(self, address)
def read(self, address, length, read_complete_cb, read_failed_cb=None)
Read a block of data from a deck
def read_sync(self, address, length)
Read a block of data from a deck, block until done
def reset_to_bootloader(self)
def reset_to_fw(self)
def set_fw_new_flash_size(self, size)
def write(self, address, data, write_complete_cb, write_failed_cb=None, progress_cb=None)
Write a block of binary data to the deck
def write_sync(self, address, data, progress_cb=None)
Write a block of binary data to the deck, block until done
DeckMemoryManager
DeckMemoryManager(id, type, size, mem_handler)
Manager interface for deck memories. It is used to query for installed decks and get access to Deck Memory objects for the available decks.
Initialize deck memory manager
Ancestors (in MRO)
Class variables
COMMAND_SECTION_ADDRESS
INFO_SECTION_ADDRESS
MAX_NR_OF_DECKS
MAX_NR_OF_DECK_MEM_INFOS
SIZE_OF_COMMAND_SECTION
SIZE_OF_DECK_MEM_INFO
SIZE_OF_INFO_SECTION
SIZE_OF_VERSION
SUPPORTED_VERSION
Methods
def disconnect(self)
def query_decks(self, query_complete_cb, query_failed_cb=None)
SyncDeckMemoryManager
SyncDeckMemoryManager(deck_memory_manager)
A wrapper for the DeckMemoryManager class to make calls synchronous and avoid callbacks
Methods
def query_decks(self)