EasyManua.ls Logo

Texas Instruments Serial Programming Adapter MSP430 - Page 34

Texas Instruments Serial Programming Adapter MSP430
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PRGS430.DLL—Description
2-22
DEVICE_MEMDEF (0x07)
Fills the definition of a memory definition (index passed by InfoIdx) into lpBuf.
DEVICE_MEMPROTECT_COUNT(0x08)
GetDeviceCfgInfo() returns the number of memory-protection definitions for
the selected device; lpBuf and InfoIdx are ignored.
DEVICE_MEMPROTECT (0x09)
Fills the definition of a memory protection definition (index passed by InfoIdx)
into lpBuf.
DEVICE_VCC (0x0A)
GetDeviceCfgInfo() returns the Vcc setting for selected device in mV; lpBuf
and InfoIdx are ignored.
DEVICE_VPP (0x0B)
GetDeviceCfgInfo() returns the Vpp setting for selected device in mV; lpBuf
and InfoIdx are ignored.
DEVICE_VFUSE (0x0C)
GetDeviceCfgInfo() returns the blow-fuse setting for the selected device; lpBuf
and InfoIdx are ignored.
/FN0024/ AccessSFR
long int AccessSFR(LONG wAddr, void *IpData, LONG iFlags);
This function writes or reads data into the special function registers of the
MSP430 device. (implemented in PRGS320.dll versions 1.05 and higher).
wAddr: SFR address that should be accessed. Allowed values:
0x0000−0x1FE (see the memory map of the corresponding device)
IpData: Pointer to the data to be written, or buffer which should receive the read
data
Flags: The bits in Flags control the operation of AccessSFR()
iFlags:
SFR_READ (0x00)
SFR_Write (0x01)
Example:
IFuncReturn = AccessSFR(long:0x0020, &IpData, 0)

Related product manuals