slau358q.pdf - 第122页
MSP-GANG.dll Description www.ti.com 122 SLAU358Q – September 2011 – Revised October 2019 Submit Documentation Feedback Copyright © 2011–2019, Texas Instruments Incorporated Dynamic Link Library for MSP-GANG Programmer 4.…

www.ti.com
MSP-GANG.dll Description
121
SLAU358Q–September 2011–Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
Example 2
Generate a short RST pulse on all targets. V
CC
on targets 1 to 7 is 3.3 V ( 0x0CE4) and on target 8 is 0 V
(disabled).
BYTE data[8] = { 00 00 04 00 7F 00 00 00 };
MSPGANG_Set_IO_State( 3300, data );
then
data[4] = 0x04;
MSPGANG_Set_IO_State( 3300, data );

MSP-GANG.dll Description
www.ti.com
122
SLAU358Q–September 2011–Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
4.2.45 MSPGANG_Convert_Address
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.
4.2.46 MSPGANG_Memory_Header_text
The MSPGANG_Memory_Header_text displays the name of the data block specified at the MCU address.
Function is used by GUI in the data viewer.
Syntax
LPTSTR WINAPI MSPGANG_Memory_Header_text( LONG Addr );
Arguments
LONG Addr Beginning address in MCU of the selected data block
Result
LPTSTR Text of data block name
Example
char *header_txt;
// Selected MCU - MSP432P401R
header_txt = (char*)MSPGANG_Memory_Header_text( 0x8000 );
//Returned contents of the header_txt string ->
// "Flash - Sectors 8 - 15 (0x08000 to 0x0FFFF)"
4.2.47 MSPGANG_Interactive_ClrLockedDevice
Unlocks the MSP432 MCU, if it is locked. The whole main memory flash is erased. The information
memory or BSL sectors can be erased if selected in configuration.
Syntax
LONG WINAPI MSPGANG_Interactive_ClrLockedDevice( void );

www.ti.com
MSP-GANG.dll Description
123
SLAU358Q–September 2011–Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
4.2.48 MSPGANG_Get_Code_Info
Gets the checksum or code size of the selected code.
Syntax
LONG WINAPI MSPGANG_Get_Code_Info( LONG type );
Arguments
LONG type CODE_SIZE_INFO 1
CODE_CHECK_SUM 2
CODE2_SIZE_INFO 3
CODE2_CHECK_SUM 4
APPEND_CODE_SIZE_INFO 5
APPEND_CODE_CHECK_SUM 6
WHOLE_CODE_SIZE_INFO 7
WHOLE_CODE_CHECK_SUM 8
CS_PER_GANG430STD 9
Result
LONG Checksum or code size of the selected code.
4.2.49 MSPGANG_MakeSound
The MSPGANG_MakeSound make beep or sounds.
Syntax
void WINAPI MSPGANG_MakeSound( LONG type );
Arguments
LONG type BEEP_OK 1
BEEP_ERR 2
BEEP_PRG_ERR 3
BEEP_WARNING 4