Texas Instruments MSP430 manual FN0022/ SetNotificationWnd, FN0023/ GetDeviceCfgInfo

Page 33

PRGS430.DLL—Description

/FN0022/ SetNotificationWnd

LONG SetNotificationWnd(LONG hWnd, LONG IMessageID)

SetNotificationWnd() enables the status notification of a window. hWnd passes a window handle and IMessageID passes a message identifier. Each time a notification of the status window is necessary, the DLL sends a IMessageID message to the hWnd window. The execution status of an operation is passed in the WParam of this message. Completion status of the current operation is passed (0..100) in the LParam.

The following status codes are defined:

Status

WParam

Current Operation

STATUS_CONNECTSPA

1

Connecting to SPA430

STATUS_CONNECTTARGET

3

Connecting to target

STATUS_RELEASETARGET

5

Releasing target

STATUS_RELEASESPA

7

Releasing SPA430

STATUS_RESETTARGET

9

Resetting target

STATUS_ERASE

11

Erasing target

STATUS_ERASECHECK

13

Erase checking target

STATUS_PATTERNCHECK

15

Pattern checking target

STATUS_VERIFY

17

Verifying target

STATUS_PROGRAM

19

Programming target

STATUS_READOUT

21

Reading target out

STATUS_BLOWFUSE

23

Blowing fuse

/FN0023/ GetDeviceCfgInfo

long int GetDeviceCfgInfo(long int InfoCmd, long int InfoIdx, void* lpBuf)

InfoType:

DEVICE_COUNT(0x01)

GetDeviceCfgInfo returns number of devices in Device.cfg; InfoIdx and lpBuf are ignored.

SELECT_DEVICE(0x02)

Selects the given device for further commands (device number in InfoIndex, first device is number 0; lpBuf is ignored).

DEVICE_NAME(0x03)

Fills the name of the selected device into lpBuf; InfoIdx is ignored.

DEVICE_ID

(0x04)

Fills the DeviceID into lpBuf, InfoIdx is ignored.

DEVICE_DEFAULTOPTIONS

(0x05)

Fills the default options into lpBuf, InfoIdx is ignored.

DEVICE_MEMDEF_COUNT (0x06)

GetDeviceCfgInfo() returns the number of memory definitions for selected device; lpBuf and InfoIdx are ignored.

Operation 2-21

Image 33
Contents User’s Guide Evaluation BOARD/KIT Important Notice EVM Warnings and Restrictions Page About This Manual Read This FirstFCC Warning Contents Tables FiguresInstallation and Setup −1. ADT430 Program Icons Installing the SoftwareMSP−PRGS430 Installing the HardwarePage Operation Software/Hardware Layers of the PRGS430 Environment Programming MSP430 Devices With the GUI Basic Procedure−1. MSP430 Function Buttons and Descriptions Description of the MSP-PRGS430 GUIOperation2-5 −2. Communication Error Box Error Messages−5. Data Error −2. Error Messages Use of a Project.ini File Content of PRGS430.ini FileGeneral Definitions Command Line OptionsExample Return Values/Error Codes in .ini File FN0001/ InitCom PRGS430.DLL-DescriptionFN0002/ ReleaseCom FN0003/ SetDeviceTypeFN0004/ InitTarget FN0005/ ReleaseTargetFN0006/ Erase FN0008/ EraseCheck FN0007/ EraseFileFN0009/ EraseCheckFile FN00010/ PatternCheckFN00011/ VerifyData FN00012/ VerifyFile FN00013/ VerifyFileRangeFN0014/ ProgramData Pgmwitherasecheck FN0015/ ProgramFileFN0016/ BlowFuse FN0017/ SetVccFN0018/ ReadOutData FN0019/ ReadOutFile FN0020/ ResetFN0023/ GetDeviceCfgInfo FN0022/ SetNotificationWndFN0024/ AccessSFR Status Return Value Comment Return Values/Error Codes From PRGS430.DLLPage Hardware Basic Hints Specifications−1 -Pin Sub-D at Programming Adapter Programming Adapter Target Connector Signals−2. Target Connector Signal Functions Location of Components − MSP-PRGS430 MSP-PRGS430 Circuit DiagramsInterconnection of MSP-PRGS430 to OTP/EPROM-Based Interconnection of MSP−PRGS430 to Flash-Based MSP430 Devices Page Hex Object Format Figure A−1. Intel-Hex Object Format Intel-Hex Object FormatTI-TXT File Format Page Schematics Page Schematics B-3 Page Important Notice
Related manuals
Manual 138 pages 30.24 Kb