nsdsp_start_spi_session
nsdsp_start_uart_session nsdsp_start_prog_session nsdsp_start_debug_session nsdsp_end_sessionnsdsp_start_spi_session
This function starts an SPI session which also may be used for pin manipulations.
Syntax
nsdsp_session_t nsdsp_start_spi_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.
Example
nsdsp_session_t sess;
nsdsp_t nsdsp;
nsdsp = nsdsp_connect(NULL);
nsdsp_set_rate(nsdsp,3000000);
sess = nsdsp_start_spi_session(nsdsp);
nsdsp_session_set_cke(sess,0);
nsdsp_session_set_smp(sess,1);
// Communications here
nsdsp_end_session(nsdsp);
nsdsp_free(nsdsp);
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.