MSP430 DLL API Documentation
3.12.0.004
|
This file contains the DLL function headers and definitions to support the debugging functions of the MSP430.DLL. More...
Go to the source code of this file.
Classes | |
struct | EEM_GCLKCTRL |
struct | EEM_MCLKCTRL |
Typedefs | |
typedef enum DEVICE_REGISTERS | DEVICE_REGISTERS_t |
Temporary work-around to #defines in stdconst.h (and others) More... | |
typedef enum RUN_MODES | RUN_MODES_t |
Run modes. More... | |
typedef enum STATE_MODES | STATE_MODES_t |
State modes. More... | |
typedef enum EMEX_MODE | EMEX_MODE_t |
One of the following enumerations is returned in device.emulation. More... | |
typedef enum DEVICE_CLOCK_CONTROL | DEVICE_CLOCK_CONTROL_t |
One of the following enumerations is returned in device.clockControl. More... | |
typedef struct EEM_GCLKCTRL | EemGclkCtrl_t |
typedef struct EEM_MCLKCTRL | EemMclkCtrl_t |
Enumerations | |
enum | DEVICE_REGISTERS { R0 = 0, R1 = 1, R2 = 2, R3 = 3, R4 = 4, R5 = 5, R6 = 6, R7 = 7, R8 = 8, R9 = 9, R10 = 10, R11 = 11, R12 = 12, R13 = 13, R14 = 14, R15 = 15, xPSR = 16, SPECIAL_REGISTERS = 17, MSP_SP = 18, PSP_SP = 19 } |
Temporary work-around to #defines in stdconst.h (and others) More... | |
enum | RUN_MODES { FREE_RUN = 1, SINGLE_STEP = 2, RUN_TO_BREAKPOINT = 3 } |
Run modes. More... | |
enum | STATE_MODES { STOPPED = 0, RUNNING = 1, SINGLE_STEP_COMPLETE = 2, BREAKPOINT_HIT = 3, LPMX5_MODE = 4, LPMX5_WAKEUP = 5 } |
State modes. More... | |
enum | EMEX_MODE { EMEX_NONE = 0, EMEX_LOW = 1, EMEX_MEDIUM = 2, EMEX_HIGH = 3, EMEX_EXTRA_SMALL_5XX = 4, EMEX_SMALL_5XX = 5, EMEX_MEDIUM_5XX =6, EMEX_LARGE_5XX = 7, EMEX_CORTEX_M4 = 8, EMEX_CORTEX_M0 = 9 } |
One of the following enumerations is returned in device.emulation. More... | |
enum | DEVICE_CLOCK_CONTROL { GCC_NONE = 0, GCC_STANDARD = 1, GCC_EXTENDED = 2, GCC_STANDARD_I = 3 } |
One of the following enumerations is returned in device.clockControl. More... | |
Functions | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Registers (int32_t *registers, int32_t mask, int32_t rw) |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_ExtRegisters (int32_t address, uint8_t *buffer, int32_t count, int32_t rw) |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Register (int32_t *reg, int32_t regNb, int32_t rw) |
Read and write only one register of the device. More... | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Run (int32_t mode, int32_t releaseJTAG) |
Run the device using the specified mode. JTAG control signals are optionally released. More... | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_State (int32_t *state, int32_t stop, int32_t *pCPUCycles) |
Determine the state of the device. The device is optionally stopped. During single step operations, a count of CPU cycles executed is maintained. More... | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_CcGetClockNames (int32_t localDeviceId, EemGclkCtrl_t **CcClockNames) |
Returns the string descriptions of the devices' EEM General Clock Control register GENCLKCNTRL. More... | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_CcGetModuleNames (int32_t localDeviceId, EemMclkCtrl_t **CcModuleNames) |
Returns the string descriptions of the devices' EEM Module Clock Control registers MCLKCTRL0 and MCLKCTRL1. More... | |
This file contains the DLL function headers and definitions to support the debugging functions of the MSP430.DLL.
The MSP430.DLL provides the following debug functionalities:
typedef enum DEVICE_REGISTERS DEVICE_REGISTERS_t |
Temporary work-around to #defines in stdconst.h (and others)
Device registers.
typedef enum RUN_MODES RUN_MODES_t |
Run modes.
typedef enum STATE_MODES STATE_MODES_t |
State modes.
typedef enum EMEX_MODE EMEX_MODE_t |
One of the following enumerations is returned in device.emulation.
typedef enum DEVICE_CLOCK_CONTROL DEVICE_CLOCK_CONTROL_t |
One of the following enumerations is returned in device.clockControl.
typedef struct EEM_GCLKCTRL EemGclkCtrl_t |
An array of NULL terminated string pointers that point to the string descriptions for each bit of the device EEM General Clock Control register GENCLKCNTRL.
typedef struct EEM_MCLKCTRL EemMclkCtrl_t |
An array of NULL terminated string pointer that point to the string descriptions for each bit of the device EEM Module Clock Control registers MCLKCTRL0 and MCLKCTRL1.
enum DEVICE_REGISTERS |
enum RUN_MODES |
enum STATE_MODES |
State modes.
enum EMEX_MODE |
One of the following enumerations is returned in device.emulation.
enum DEVICE_CLOCK_CONTROL |
One of the following enumerations is returned in device.clockControl.
DLL430_SYMBOL STATUS_T WINAPI MSP430_Registers | ( | int32_t * | registers, |
int32_t | mask, | ||
int32_t | rw | ||
) |
DLL430_SYMBOL STATUS_T WINAPI MSP430_ExtRegisters | ( | int32_t | address, |
uint8_t * | buffer, | ||
int32_t | count, | ||
int32_t | rw | ||
) |
STATUS_T MSP430_Register | ( | int32_t * | reg, |
int32_t | regNb, | ||
int32_t | rw | ||
) |
Read and write only one register of the device.
reg | The destination of the register read from the device (rw = READ), and the source of the register written to the device (rw = WRITE). |
regNb | Number of the register to be read/written (0 - 15). |
rw | Specify a read (READ) or write (WRITE) operation. |
STATUS_T MSP430_Run | ( | int32_t | mode, |
int32_t | releaseJTAG | ||
) |
Run the device using the specified mode. JTAG control signals are optionally released.
mode | The specified run mode:
|
releaseJTAG | The JTAG control signals are released when TRUE. |
STATUS_T MSP430_State | ( | int32_t * | state, |
int32_t | stop, | ||
int32_t * | pCPUCycles | ||
) |
Determine the state of the device. The device is optionally stopped. During single step operations, a count of CPU cycles executed is maintained.
state | The device state:
|
stop | The device is stopped when TRUE. |
pCPUCycles | The cumulative number of CPU cycles executed during single step (or -1 if invalid). |
STATUS_T WINAPI MSP430_CcGetClockNames | ( | int32_t | localDeviceId, |
EemGclkCtrl_t ** | CcClockNames | ||
) |
Returns the string descriptions of the devices' EEM General Clock Control register GENCLKCNTRL.
localDeviceId | Not currently used. Always returns clock names for current device. |
CcClockNames | A pointer to a pointer of the struct type EemGclkCtrl_t defined in MSP430_Debug.h (see application example). Application example: #include "MSP430_Debug.h" EemGclkCtrl_t* globalCcClockNames; MSP430_CcGetClockNames(deviceId, &globalCcClockNames); |
STATUS_T MSP430_CcGetModuleNames | ( | int32_t | localDeviceId, |
EemMclkCtrl_t ** | CcModuleNames | ||
) |
Returns the string descriptions of the devices' EEM Module Clock Control registers MCLKCTRL0 and MCLKCTRL1.
localDeviceId | Not currently used. Always returns module names for current device. |
CcModuleNames | A pointer to a pointer of the struct type EemMclkCtrl_t defined in MSP430_Debug.h (see application example). Application example: #include "MSP430_Debug.h" EemMclkCtrl_t* globalCcModuleNames; MSP430_CcGetModuleNames(deviceId, &globalCcModuleNames); |