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

Page 33
Image 33
Texas Instruments MSP430 manual FN0022/ SetNotificationWnd, FN0023/ GetDeviceCfgInfo