nsdsp_start_uart_session
nsdsp_start_prog_session nsdsp_start_debug_session nsdsp_end_sessionnsdsp_start_uart_session
This function starts an UART session.
Syntax
nsdsp_session_t nsdsp_start_uart_session(
nsdsp_t nsdsp
);
Parameters
nsdsp - a reference to the NSDSP object returned by nsdsp_connect function
Return
The function returns the Session object, or NULL if something fails.
Notes
You must set baud rate with nsdsp_set_rate and flow control with nsdsp_set_flow_control before starting the UART session. The baud rate must be set to one of the pre-defined values listed here.
Example
nsdsp_session_t sess;
nsdsp_t nsdsp;
nsdsp = nsdsp_connect(NULL);
nsdsp_set_rate(nsdsp,115200);
nsdsp_set_flow_control(nsdsp,0);
sess = nsdsp_start_uart_session(nsdsp);
// Communications here
nsdsp_end_session(nsdsp);
nsdsp_free(nsdsp);
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.