Buy Contact NSDSP Home

nsdsp_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

Northern Software Home NSDSP Contact Us Purchase/View Cart

© 2007-2025 Northern Software Inc. All Rights Reserved.