SLAU358Q September 2011 – October 2019
The MSPGANG_Convert_Address function converts the MCU data address to the data buffer address in the DLL (see DATA_BUFFERS structure), where the data (flash, FRAM, RAM) are stored. Function is used in the MSP432 MCU where the MCU address is 32 bit. Currently the function is not used if the MSP430 MCU is used, but it can be used in the future if the memory space increases in the MCU.
Syntax
LONG WINAPI MSPGANG_Convert_Address( BYTE type, LONG Addr );
Arguments
BYTE type | MCU_TO_DATABUF 1 |
DATABUF_TO_MCU 2 | |
LONG Addr | MCU address for type MCU_TO_DATABUF, or data buffer address for type DATABUF_TO_MCU. |
Result
LONG | Data Buffer or MCU address. Result is positive if conversion of the address succeeds, and minus 1 (0xFFFFFFFF) if failed. |
Example
See Section 4.2.1, Section 4.2.2, Section 4.2.14, and Section 4.2.15.