Memory

class lauterbach.trace32.rcl.MemoryService(conn)
read_int8(address: lauterbach.trace32._rc._address.Address, *, width=1) → int

Read signed 8-bit value from address and return result.

Parameters
  • address (Address) – Address to read from.

  • width (int, optional) – Reserved.

Returns

Result

Return type

int

read_int8_array(address: lauterbach.trace32._rc._address.Address, *, length, width=1) → array.array

Read signed 8-bit values from address and return result.

Parameters
  • address (Address) – Address to read from

  • length (int) – Array Length.

  • width (int, optional) – Reserved.

Returns

Result

Return type

array.array

read_uint8(address: lauterbach.trace32._rc._address.Address, *, width=1) → int

Read unsigned 8-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • width (int, optional) – Reserved.

Returns

Result

Return type

int

read_uint8_array(address: lauterbach.trace32._rc._address.Address, *, length=1, width=1) → array.array

Read unsigned 8-bit values from address and return result.

Parameters
  • address (Address) – Address to read from

  • length (int) – Number of 8-bit values to read

  • width (int, optional) – Reserved.

Returns

Result

Return type

Tuple[int]

read_int16(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=2) → int

Read signed 16-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

Returns

Result

Return type

int

read_uint16(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=2) → int

Read unsigned 16-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

int

read_int32(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=4) → int

Read signed 32-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

int

read_uint32(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=4) → int

Read unsigned 32-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

int

read_int64(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=8) → int

Read signed 64-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

int

read_uint64(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=8) → int

Read unsigned 64-bit value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

int

read_float(address: lauterbach.trace32._rc._address.Address, *, byteorder=None, width=4) → float

Read 32-bit IEEE floating point value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

float

read_double(address, *, byteorder=None, width=8) → float

Read IEEE double value from address and return result.

Parameters
  • address (Address) – Address to read from

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

Returns

Result

Return type

float

write_int8(address, value, *, width=1)

Write signed 8-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • width (int, optional) – Reserved.

write_int8_array(address, data, *, width=1)

Write data as signed 8-bit values to address.

Parameters
  • address (Address) – Address to read from

  • data (Tuple[int]) – Data to write.

  • width (int, optional) – Reserved.

write_uint8(address, value, *, width=1)

Write unsigned 8-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • width (int, optional) – Reserved.

write_uint8_array(address, data, *, width=1)

Write data as signed 8-bit values to address.

Parameters
  • address (Address) – Address to read from

  • data (Tuple[int]) – Data to write.

  • width (int, optional) – Reserved.

write_int16(address, value, *, byteorder=None, width=2)

Write signed 16-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

write_uint16(address, value, *, byteorder=None, width=2)

Write unsigned 16-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

write_int32(address, value, *, byteorder=None, width=4)

Write signed 32-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

write_uint32(address, value, *, byteorder=None, width=4)

Write unsigned 32-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

write_int64(address, value, *, byteorder=None, width=8)

Write signed 64-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

write_uint64(address, value, *, byteorder=None, width=8)

Write unsigned 64-bit value to address.

Parameters
  • address (Address) – Address to write to.

  • value (int) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int, optional) – Reserved.

write_float(address, value, *, byteorder=None, width=4)

Write 32-bit IEEE floating point value to address.

Parameters
  • address (Address) – Address to read from.

  • value (float) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved

write_double(address, value, *, byteorder=None, width=8)

Write IEEE double value to address.

Parameters
  • address (Address) – Address to read from.

  • value (float) – Value to write.

  • byteorder (NoneType, str) – Accepted values are None, “little” and “big”.

  • width (int) – Reserved