winIDEA SDK
isys::CCoreCtrl Class Reference

Description

This class provides debug session functions.

#include <CSessionCtrl.h>

Inherits isys::CSessionBaseCtrl.

Public Member Functions

void observe (bool bObserve)
 Enables core observation, call is valid only within session. More...
 
void memory_fill (uint8_t nMemoryArea, uint64_t nAddress, uint64_t nNumMAUs, const std::vector< uint8_t > &rvPattern)
 Fills memory with the specified pattern. More...
 
void memory_write (uint8_t nMemoryArea, uint64_t nAddress, const std::vector< uint8_t > &rvData, std::vector< uint8_t > *pvAccess=nullptr)
 Writes memory. More...
 
std::vector< uint8_t > memory_read (uint8_t nMemoryArea, uint64_t nAddress, uint64_t nNumMAUs, std::vector< uint8_t > *pvAccess=nullptr)
 Reads memory. More...
 

Member Function Documentation

◆ memory_fill()

void isys::CCoreCtrl::memory_fill ( uint8_t  nMemoryArea,
uint64_t  nAddress,
uint64_t  nNumMAUs,
const std::vector< uint8_t > &  rvPattern 
)

Fills memory with the specified pattern.

Parameters
nMemoryAreaindex of the area to be used
nAddressthe address to write to
nNumMAUsnumber of addresses to write
rvPatternthe pattern to be used for fill. If it is shorter than nNumMAUs, the pattern is repeated.
Exceptions
TExceptionif operation fails.

Python example: test_memory_fill.py

◆ memory_read()

std::vector< uint8_t > isys::CCoreCtrl::memory_read ( uint8_t  nMemoryArea,
uint64_t  nAddress,
uint64_t  nNumMAUs,
std::vector< uint8_t > *  pvAccess = nullptr 
)

Reads memory.

Parameters
nMemoryAreaindex of the area to be used
nAddressthe address to read from
nNumMAUsnumber of MAUs
pvAccessoptional parameter - access info is returned for every accessed location
Returns
the data read
Exceptions
TExceptionif operation fails.

Python example: test_memory_read.py

◆ memory_write()

void isys::CCoreCtrl::memory_write ( uint8_t  nMemoryArea,
uint64_t  nAddress,
const std::vector< uint8_t > &  rvData,
std::vector< uint8_t > *  pvAccess = nullptr 
)

Writes memory.

Parameters
nMemoryAreaindex of the area to be used
nAddressthe address to write to
rvDatathe data to write
pvAccessoptional parameter - access info is returned for every accessed location
Exceptions
TExceptionif operation fails.

Python example: test_memory_write.py

◆ observe()

void isys::CCoreCtrl::observe ( bool  bObserve)

Enables core observation, call is valid only within session.

Parameters
bObserveset it to true to enable core observation, false to disable it
Exceptions
TExceptionif operation fails.

Python example: test_observe.py