nsdsp_get_abort_id
nsdsp_adjust_vdd nsdsp_adjust_vpp nsdsp_set_vdd_override nsdsp_set_rate nsdsp_set_flow_control nsdsp_use_alt_mclr nsdsp_use_method nsdsp_ignore_eeprom nsdsp_ignore_uid nsdsp_allow_otp nsdsp_config_jtag nsdsp_config_debug nsdsp_config_lvp nsdsp_config_cksw nsdsp_config_wdt nsdsp_reset_after_prog nsdsp_set_debug_magic nsdsp_set_debug_rom nsdsp_set_debug_ram nsdsp_set_debug_cores nsdsp_start_spi_session nsdsp_start_uart_session nsdsp_start_prog_session nsdsp_start_debug_session nsdsp_end_sessionnsdsp_get_abort_id
This function returns the abort id of the NSDSP object. The abort id can be passed to nsdspif_abort function from another thread to abort the connection to the NSDSP programmer.
Syntax
unsigned int nsdsp_get_abort_id(
nsdsp_t nsdsp
);
Parameters
nsdsp - a reference to the NSDSP object returned by nsdsp_connect function
Return
The function returns the abort id, or zero if the operation fails.
Notes
Call this function in the thread which uses the NSDSP after establishing a connection. Then pass the abort id to the thread where you may need to abort the operation.
The abort id is a number, not a reference to the object. Therefore, it is safe to pass it to nsdspif_abort even after the NSDSP object has been freed. In this case nsdspif_abort does nothing and returns zero.
See nsdspif_abort for an example.
Minimum library version - 180
© 2007-2026 Northern Software Inc. All Rights Reserved.