Using the µVision Socket Interface: AMEM Struct Reference

| Using the µVision Socket Interface Application Note 198 Control and monitor µVision via the built-in TCP/IP interface

- Main Page
- Usage and Description
- Reference

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
AMEM Struct Reference
Structs

## Data Fields
xU64 | nAddr
| Address to read / write. More...
UINT | nBytes
| Number of bytes read / write. More...
xU64 | ErrAddr
| Unused. More...
UINT | nErr
| Unused. More...
xUC8 | aBytes [1]
| nBytes of data read or to be written More...

## Description

Memory Read / Write data

Address, length and either data to be written, or data read from memory.

This structure is used in the following messages:

Client ==> uVision (Request)

- UV_DBG_MEM_READ (Set nAddr to the address to read, and nBytes to the length of data to read)
- UV_DBG_MEM_WRITE (Set nAddr to the address to write, nBytes to the length of data to write and aBytes to the data to write)

Client <== uVision (Response)

- UV_DBG_MEM_READ (uVision sets aBytes to the data read from the specified location)
- UV_DBG_MEM_WRITE (uVision returns the same structure as in the request)

## Field Documentation

xUC8 AMEM::aBytes[1]

nBytes of data read or to be written

xU64 AMEM::ErrAddr

Unused.

xU64 AMEM::nAddr

Address to read / write.

UINT AMEM::nBytes

Number of bytes read / write.

UINT AMEM::nErr

Unused.