Cart Contact NSDSP Home

nsdsp_session_set_timeout

This function sets timeout for nsdsp_session_wait_for_data and nsdsp_session_fetch_data functions.

Syntax

int nsdsp_session_set_timeout(
        nsdsp_session_t   session,
        unsigned int      timeout
);

Parameters

session - a reference to the Session Object

timeout - new timeout in ms

Return

The function returns non-zero if the timeout has been successfully set or zero otherwise

Notes

The optimized timeout value is calculated based on the data rate at the beginning of every session. You can access it with nsdsp_session_get_timeout function. In most cases, you do not need to change this value.

 

Supported session types: UART,SPI

Minimum library version - 163

Northern Software Home NSDSP Contact Us Purchase/View Cart

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