Buy Contact NSDSP Home

nsdsp_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 ConstantSession type
0NSDSP_SESSION_IDLEIdle session
1NSDSP_SESSION_PROGProgramming session
2NSDSP_SESSION_DEBUGDebug session
3NSDSP_SESSION_UARTUART session
4NSDSP_SESSION_SPISPI 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

Northern Software Home NSDSP Contact Us Purchase/View Cart

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