nsdsp_session_check_id
nsdsp_session_get_revision_id nsdsp_session_erase nsdsp_session_program nsdsp_session_program_for_debug nsdsp_session_verify nsdsp_session_read nsdsp_session_set_timeout nsdsp_session_get_timeout nsdsp_session_check_for_data nsdsp_session_wait_for_data nsdsp_session_fetch_data nsdsp_session_fetch_data_nb nsdsp_session_flush nsdsp_session_send_uart nsdsp_session_send_spi nsdsp_session_receive_spi nsdsp_session_set_cke nsdsp_session_set_smp nsdsp_session_set_mclr nsdsp_session_set_hvp nsdsp_session_set_pgm nsdsp_session_set_pgcd nsdsp_session_set_red_led nsdsp_session_set_green_led nsdsp_session_short_delay nsdsp_session_delay_us nsdsp_session_delay_msnsdsp_session_check_id
This function detects target device id
Syntax
int nsdsp_session_check_id(
nsdsp_session_t session,
int adjust_rate
);
Parameters
session - a reference to the Session Object
adjust_rate - non-zero to force rate adjustment, zero otherwise.
Return
The function returns non-zero if the correct id was obtained, or zero otherwise.
Notes
If connection to the device is incorrect, id detection fails.
If you specify rate adjustment, and the id detection fails, NSDSP programmer will try to detect id with lower data rates down to 50 kHz. If this succeeds, NSDSP will adjust the rate through the rest of the session. You can call nsdsp_session_get_rate to find out the actual rate.
The function also retrieves silicon revision id which you can retrieve with nsdsp_session_get_revision_id function.
Not all devices have ids. You can consult mcu_id function.
Supported session types: program
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.