SLAU358Q September 2011 – October 2019
Note: The target device must be opened first if not open yet (see MSPGANG_Interactive_Open_Target_Device, Section 4.2.12).
MSPGANG_Interactive_ReadBytes reads contents from one selected target device and saves it in the desired data buffer.
Syntax
LONG MSPGANG_Interactive_ReadBytes(BYTE target_no, LONG addr, LONG size, BYTE *data)
Arguments
| BYTE target_no | Target number (one to eight) of the desired target device |
| LONG addr | Start address from read data |
| LONG size | Number of read bytes |
| BYTE *data | Pointer to buffer where data would be saved |
Result
| LONG | Error code |