1 Reply Latest reply on Jan 22, 2019 2:19 AM by SheetalJ_96

    CYW920719 HCI UART Rx flow control

    peerc_3832806

      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 )

        • 1. Re: CYW920719 HCI UART Rx flow control
          SheetalJ_96

          Hi peerc_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.

          1 of 1 people found this helpful