SLAU358Q September 2011 – October 2019
MSPGANG_GetAPIStatus gets the selected status or results from the MSP-Gang programmer. The following numbers (no) are available:
GET_APP_FLAGS 10
GET_LAST_STATUS 12
GET_LAST_ERROR_NO 14
Syntax
LONG MSPGANG_GetAPIStatus (LONG no, BYTE *data)
Arguments
LONG no | Status type |
BYTE *data | Pointer to status results. See below. |
Result
LONG | Error code |
no = GET_APP_FLAGS (10)
response:
Byte-0
b0 (LSB) Hardware rev-0
b1 initialization finished (after power-up)
b2 access key CRC error
b3 invalid access key
b4 running from SD card
b5 File in SD card found
b6 target secure device in process
b7 keypad enabled
Byte-1
b0 key pressed
b1..b7 spare
Byte-2 spare
Byte-3 spare
no = GET_LAST_STATUS (12)
response:
Byte-0 Error number in the last execute transaction
Byte-1 targets connection mask
Byte-2 active targets mask
Byte-3 targets error mask
Byte-4..7 spare
no = GET_LAST_ERROR_NO (14)
Byte-0 last error number from MSP-GANG for any command
error numbers 1...255 - see error list numbers