- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Is it possible for the application to some how signal from the wiced_transport_data_handler_t [1] callback to the caller that the data can not be consumed at the moment? In which case the caller would stop reading data from the UART HW which would cause the RTS to rise?
br, Pekka Ervasti
[1]
/** Wiced transport data handler
* Call back registered by the application to recieve data. Application has to free the
* buffer in which data is received. Use the API wiced_transport_free_buffer to free
* the rx buffer
*
* @param[in] p_data : Pointer to the received data buffer.
* @param[in] data_len : length of the data pointed to by p_data in bytes.
*
* @Return the status in case of UART in HCI mode
*/
typedef uint32_t (*wiced_tranport_data_handler_t)( uint8_t* p_data, uint32_t data_len )
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi peervast_3832806,
>>Is it possible for the application to some how signal from the wiced_transport_data_handler_t [1] callback to the caller that the data can not be consumed at the moment?<<
Do you mean that the UART Driver should not assert the CTS signal for further receiving the data from Transmitter?
You can not send a signal from call back function wiced_transport_data_handler_t to the caller function of it. However, you can drive the UART lines from your application.
Or other option is to use PUART and disable interrupts there to stop receiving data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi peervast_3832806,
>>Is it possible for the application to some how signal from the wiced_transport_data_handler_t [1] callback to the caller that the data can not be consumed at the moment?<<
Do you mean that the UART Driver should not assert the CTS signal for further receiving the data from Transmitter?
You can not send a signal from call back function wiced_transport_data_handler_t to the caller function of it. However, you can drive the UART lines from your application.
Or other option is to use PUART and disable interrupts there to stop receiving data.