nsdsp_session_get_type
nsdsp_session_get_rate nsdsp_session_get_vdd nsdsp_session_get_vpp 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_get_type
This function returns the type of the Session object
Syntax
unsigned int nsdsp_session_get_type(
nsdsp_session_t session
);
Parameters
session - a reference to the Session Object
Return
The function returns one of the following constants:
| Value | Constant | Session type |
|---|---|---|
| 0 | NSDSP_SESSION_IDLE | Idle session |
| 1 | NSDSP_SESSION_PROG | Programming session |
| 2 | NSDSP_SESSION_DEBUG | Debug session |
| 3 | NSDSP_SESSION_UART | UART session |
| 4 | NSDSP_SESSION_SPI | SPI session |
Idle means that NSDSP programmer is in the Idle mode. Session cannot be used.
Notes
The type of the session may change. For example, a programming session may mutate into SPI session after successful programming.
Supported session types: any
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.