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

MSP-GANG.dll Description
www.ti.com
110
SLAU358Q–September 2011–Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
#define CFG_MSP432E_FMPREADEN15_DATA 445
#define CFG_MSP432E_FMPPRGEN0_DATA 446
#define CFG_MSP432E_FMPPRGEN1_DATA 447
#define CFG_MSP432E_FMPPRGEN2_DATA 448
#define CFG_MSP432E_FMPPRGEN3_DATA 449
#define CFG_MSP432E_FMPPRGEN4_DATA 450
#define CFG_MSP432E_FMPPRGEN5_DATA 451
#define CFG_MSP432E_FMPPRGEN6_DATA 452
#define CFG_MSP432E_FMPPRGEN7_DATA 453
#define CFG_MSP432E_FMPPRGEN8_DATA 454
#define CFG_MSP432E_FMPPRGEN9_DATA 455
#define CFG_MSP432E_FMPPRGEN10_DATA 456
#define CFG_MSP432E_FMPPRGEN11_DATA 457
#define CFG_MSP432E_FMPPRGEN12_DATA 458
#define CFG_MSP432E_FMPPRGEN13_DATA 459
#define CFG_MSP432E_FMPPRGEN14_DATA 460
#define CFG_MSP432E_FMPPRGEN15_DATA 461
#define CFG_MSP432E_USER_REG0 462
#define CFG_MSP432E_USER_REG1 463
#define CFG_MSP432E_USER_REG2 464
#define CFG_MSP432E_USER_REG3 465
#define CFG_MSP432E_USERDEBUGDATA 466
#define CFG_MSP432E_FP_REG_WREN 467
#define CFG_MSP432E_USER_REG_WREN 468
#define CFG_MSP432E_DBG_REG_WREN 469
#define CFG_MSP432E_PROTECTION_SOURCE 470
4.2.35 MSPGANG_GetNameConfig, MSPGANG_SetNameConfig
Set or get file names for code file, script file, password file, or warning sounds.
Syntax
LPTSTR MSPGANG_GetNameConfig(LONG index)
Arguments
LONG index See list of indexes below
Result
LPTSTR File name
Syntax
LONG MSPGANG_SetNameConfig(LONG index, LPTSTR name)
Arguments
LONG index See list of indexes below
LPTSTR file_name
Result
LONG Error code
#define CODEFILE_INDEX 0
#define SCRIPTFILE_INDEX 1
#define PASSWORDFILE_INDEX 2
#define SOUNDERRFILE_INDEX 3
#define SOUNDOKFILE_INDEX 4

MSP-GANG.dll Description
www.ti.com
112
SLAU358Q–September 2011–Revised October 2019
Submit Documentation Feedback
Copyright © 2011–2019, Texas Instruments Incorporated
Dynamic Link Library for MSP-GANG Programmer
4.2.36 MSPGANG_SetTmpGANG_Config
See the Set temporary configuration command (Section 3.5.3.3) for details.
Syntax
LONG MSPGANG_SetTmpGANG_Config(LONG no, LONG data)
Arguments
LONG no Index list of indexes below
LONG data
Result
LONG Error code
//----- TMP_CFG_INDEX and data --------
#define CFG_TMP_CLEAR 2
//data - none
#define CFG_TMP_TASK_MASK 4
//--- task mask bits ---- - for all tasks - set 0xFFFF
#define CONNECT_TASK_BIT 0x0001
#define ERASE_TASK_BIT 0x0002
#define BLANKCHECK_TASK_BIT 0x0004
#define PROGRAM_TASK_BIT 0x0008
#define VERIFY_TASK_BIT 0x0010
#define SECURE_TASK_BIT 0x0020
#define DCO_CAL_TASK_BIT 0x0040
//spare 0x0080 to 0x4000
#define RST_AND_START_FW_BIT 0x8000
#define CFG_TMP_VCC_VALUE 6
// Vcc in mV - 1800 ...3600
#define CFG_TMP_POWER_VCC_EN 8
// disable 0
// enable 1
#define CFG_TMP_INTERFACE 10
// (INTERFACE_JTAG | INTERFACE_FAST)
// (INTERFACE_JTAG | INTERFACE_MED)
// (INTERFACE_JTAG | INTERFACE_SLOW)
// (INTERFACE_SBW | INTERFACE_FAST)
// (INTERFACE_SBW | INTERFACE_MED)
// (INTERFACE_SBW | INTERFACE_SLOW)
#define CFG_TMP_GANG_MASK 12
// Targets GANG enable mask - 0x00 ...0xFF. Enable all targets -> 0xFF
// TARGET_1_MASK 0x01
// TARGET_2_MASK 0x02
// TARGET_3_MASK 0x04
// TARGET_4_MASK 0x08
// TARGET_5_MASK 0x10
// TARGET_6_MASK 0x20
// TARGET_7_MASK 0x40
// TARGET_8_MASK 0x80
#define CFG_TMP_VCC_ONOFF 14
// disable 0
