The MSP430.DLL provides the following functionalities:
Go to the source code of this file.
Data Structures | |
union | DEVICE_T |
Device information structure. More... | |
Typedefs | |
typedef LONG | STATUS_T |
this is the definition for the DLL functions return value | |
typedef enum STATUS_CODE | STATUS_CODE_t |
Status codes of the DLL functions. | |
typedef DEVICE_T | DEVICE_T_t |
Device information structure. | |
typedef enum CPU_ARCH_TYPE | CPU_ARCH_TYPE_t |
typedef enum READ_WRITE | READ_WRITE_t |
typedef enum ENABLE_DISABLE | ENABLE_DISABLE_t |
typedef enum RESET_METHOD | RESET_METHOD_t |
Device reset methods. | |
typedef enum ERASE_TYPE | ERASE_TYPE_t |
FLASH erase type. | |
typedef enum CONFIG_MODE | CONFIG_MODE_t |
Configurations to set with MSP430_Configure. | |
typedef enum INTERFACE_TYPE | INTERFACE_TYPE_t |
Configurations values for CONFIG_MODE INTERFACE_MODE. | |
typedef enum FILE_TYPE | FILE_TYPE_t |
File types. | |
typedef enum ERROR_CODE | ERROR_CODE_t |
typedef enum SYSTEM_EVENT_MSP | SYSTEM_EVENT_MSP_t |
typedef void(* | SYSTEM_NOTIFY_CALLBACK )(SYSTEM_EVENT_MSP_t MySystemEvent) |
Enumerations | |
enum | STATUS_CODE { STATUS_ERROR = -1, STATUS_OK = 0 } |
Status codes of the DLL functions. More... | |
enum | CPU_ARCH_TYPE { CPU_ARCH_ORIGINAL, CPU_ARCH_X, CPU_ARCH_XV2 } |
enum | READ_WRITE { WRITE = 0, READ = 1 } |
enum | ENABLE_DISABLE { DISABLE = 0, ENABLE = 1 } |
enum | RESET_METHOD { PUC_RESET = (1 << 0), RST_RESET = (1 << 1), VCC_RESET = (1 << 2), FORCE_RESET = (1 << 3), ALL_RESETS = (PUC_RESET | RST_RESET | VCC_RESET), FORCE_PUC_RESET = (FORCE_RESET | PUC_RESET), FORCE_RST_RESET = (FORCE_RESET | RST_RESET), FORCE_VCC_RESET = (FORCE_RESET | VCC_RESET) } |
Device reset methods. More... | |
enum | ERASE_TYPE { ERASE_SEGMENT = 0, ERASE_MAIN = 1, ERASE_ALL = 2, ERASE_TOTAL = 3 } |
FLASH erase type. More... | |
enum | CONFIG_MODE { VERIFICATION_MODE = 0, EMULATION_MODE = 1, LOCKED_FLASH_ACCESS = 5, EDT_TRACE_MODE = 7, INTERFACE_MODE = 8, SET_MDB_BEFORE_RUN = 9, RAM_PRESERVE_MODE = 10, UNLOCK_BSL_MODE = 11, DEVICE_CODE = 12, WRITE_EXTERNAL_MEMORY = 13, DEBUG_LPM_X = 14, JTAG_SPEED = 15, TOTAL_ERASE_DEVICE = 16 } |
Configurations to set with MSP430_Configure. More... | |
enum | INTERFACE_TYPE { JTAG_IF = 0, SPYBIWIRE_IF = 1, SPYBIWIREJTAG_IF = 2, AUTOMATIC_IF = 3 } |
Configurations values for CONFIG_MODE INTERFACE_MODE. More... | |
enum | FILE_TYPE { FILETYPE_AUTO, FILETYPE_TI_TXT, FILETYPE_INTEL_HEX } |
File types. More... | |
enum | ERROR_CODE { ERROR_DEFINITIONS } |
enum | SYSTEM_EVENT_MSP { FET_CONNECTION_LOST, DEVICE_CONNECTION_LOST, FET_RESTART_NEEDED, DEVICE_IN_LPM5_MODE, DEVICE_WAKEUP_LPM5_MODE } |
Functions | |
STATUS_T WINAPI | MSP430_SET_SYSTEM_NOTIFY_CALLBACK (SYSTEM_NOTIFY_CALLBACK parSystemNotifyCallback) |
Initialize the SYSTEM NOTIFYCALLBACK. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Initialize (CHAR *port, LONG *version) |
Initialize the interface. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Close (LONG vccOff) |
Close the interface. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetJtagID (LONG *JtagId) |
Return JTAG Id. | |
STATUS_T WINAPI | MSP430_GetFoundDevice (CHAR *FoundDevice, LONG count) |
Return an instance of the Found device. | |
STATUS_T WINAPI | MSP430_OpenDevice (CHAR *Device, CHAR *Password, LONG PwLength, LONG DeviceCode, LONG setId) |
Identify the device, and compare the found device to the expected device. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Device (LONG localDeviceId, CHAR *buffer, LONG count) |
Obtain the device information. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Configure (LONG mode, LONG value) |
Configure the mode(s) of the device and/or the software. Possible configuration modes are covered by the enum CONFIG_MODE. See notes for details of different modes to be configured. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_VCC (LONG voltage) |
Set the device Vcc pin to voltage/1000 volts. The USB JTAG adaptor also checks if external power is supplied to the traget device. If an external voltage is detected MSP430_VCC() returns STATUS_ERROR and one of the corresponding error codes. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetCurVCCT (LONG *voltage) |
Report back the current voltage supplied to the target device. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetExtVoltage (LONG *voltage, LONG *state) |
Detect if external voltage is supplied to the target device. Report back the value of an external voltage as well as an corresponding state. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Reset (LONG method, LONG execute, LONG releaseJTAG) |
Reset the device using the specified method(s). Optionally start device execution, and release the JTAG control signals. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Erase (LONG type, LONG address, LONG length) |
Erase the device FLASH/FRAM memory. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Memory (LONG address, CHAR *buffer, LONG count, LONG rw) |
Read and write the device memory. "Device memory" includes the Special Function Registers (i.e., peripheral registers), RAM, Information (FLASH/FRAM) memory, Bootstrap Loader memory (BLS) and Main (FLASH/FRAM) memory. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_Secure (void) |
The device is secured (i.e., the JTAG security fuse is blown). The MSP-FET430PIF LPT JTAG adaptor >>> DOES NOT <<< implement the functionality required to blow the device security fuse. MSP-FET430UIF USB JTAG adaptor >>> DOES <<< support this feature. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_ReadOutFile (LONG wStart, LONG wLength, CHAR *lpszFileName, LONG iFileType) |
Read the specified range of device memory, and write it to the specified file. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_ProgramFile (CHAR *File, LONG eraseType, LONG verifyMem) |
The contents of the specified file are input, and then written to the device. The device is optionally erased prior to being written. The device is optionally verified after being written. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_VerifyFile (CHAR *File) |
Compare the MSP430 memory and the contents of the specified file. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_VerifyMem (LONG StartAddr, LONG Length, CHAR *DataArray) |
Compare the MSP430 memory and the specified data. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_EraseCheck (LONG StartAddr, LONG Length) |
Verify that the specified memory range is erased. | |
DLL430_SYMBOL LONG WINAPI | MSP430_Error_Number (void) |
Determine the number of the error when a MSP430_xxx() function returns STATUS_ERROR. | |
DLL430_SYMBOL const CHAR *WINAPI | MSP430_Error_String (LONG errorNumber) |
Determine the string associated with errorNumber. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetNumberOfUsbIfs (LONG *Number) |
Returns the number of MSP-FET430UIF USB FETs connected to the PC system. | |
DLL430_SYMBOL STATUS_T WINAPI | MSP430_GetNameOfUsbIf (LONG Idx, CHAR **Name, LONG *Status) |
Get the name of a Virtual Com Port (VCP), Human Interface Device (HID) or Communication Device Class (CDC) device index assigned to a certain MSP-FET430UIF USB FET. Also the status of the MSP-FET430UIF is returned (ENABLE/DISABLE). |
|
this is the definition for the DLL functions return value
|
|
Status codes of the DLL functions.
|
|
Device information structure.
|
|
|
|
|
|
|
|
Device reset methods.
|
|
FLASH erase type.
|
|
Configurations to set with MSP430_Configure.
|
|
Configurations values for CONFIG_MODE INTERFACE_MODE.
|
|
File types.
|
|
|
|
|
|
|
|
Status codes of the DLL functions.
|
|
|
|
|
|
|
|
|
FLASH erase type.
|
|
Configurations to set with MSP430_Configure.
|
|
Configurations values for CONFIG_MODE INTERFACE_MODE.
|
|
File types.
|
|
|
|
|
|
Initialize the SYSTEM NOTIFYCALLBACK.
|
|
Initialize the interface.
|
|
Close the interface.
|
|
Return JTAG Id.
|
|
Return an instance of the Found device.
|
|
Identify the device, and compare the found device to the expected device.
|
|
Obtain the device information.
|
|
Configure the mode(s) of the device and/or the software. Possible configuration modes are covered by the enum CONFIG_MODE. See notes for details of different modes to be configured.
|
|
Set the device Vcc pin to voltage/1000 volts.
|
|
Report back the current voltage supplied to the target device.
|
|
Detect if external voltage is supplied to the target device. Report back the value of an external voltage as well as an corresponding state.
|
|
Reset the device using the specified method(s). Optionally start device execution, and release the JTAG control signals.
|
|
Erase the device FLASH/FRAM memory.
|
|
Read and write the device memory. "Device memory" includes the Special Function Registers (i.e., peripheral registers), RAM, Information (FLASH/FRAM) memory, Bootstrap Loader memory (BLS) and Main (FLASH/FRAM) memory.
|
|
The device is secured (i.e., the JTAG security fuse is blown).
|
|
Read the specified range of device memory, and write it to the specified file.
|
|
The contents of the specified file are input, and then written to the device. The device is optionally erased prior to being written. The device is optionally verified after being written.
|
|
Compare the MSP430 memory and the contents of the specified file.
|
|
Compare the MSP430 memory and the specified data.
|
|
Verify that the specified memory range is erased.
|
|
Determine the number of the error when a MSP430_xxx() function returns STATUS_ERROR.
|
|
Determine the string associated with errorNumber.
|
|
Returns the number of MSP-FET430UIF USB FETs connected to the PC system.
|
|
Get the name of a Virtual Com Port (VCP), Human Interface Device (HID) or Communication Device Class (CDC) device index assigned to a certain MSP-FET430UIF USB FET. Also the status of the MSP-FET430UIF is returned (ENABLE/DISABLE).
|