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_send_uart
This function transmits data through UART.
Syntax
unsigned int nsdsp_session_send_uart(
nsdsp_session_t session,
void* data,
unsigned int size
);
Parameters
session - a reference to the Session Object
data - the buffer containing the data to transmit
size - the size of the data in bytes
Return
The function returns the amount of data transmitted in bytes, which may be less than size if a timeout occurs in the middle of the transmission.
If flow control is on and the external UART device blocks the transmission for a long time, the operation will time out.
Notes
This instruction only queues a command. The command will be sent to NSDSP when you queue enough commands to fill the buffer or when you call nsdsp_session_flush.
Supported session types: UART
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.