Skip to main content
DUrbano
Associate III
July 3, 2014
Question

Check CTS level in UART with flow control

  • July 3, 2014
  • 1 reply
  • 544 views
Posted on July 03, 2014 at 11:35

Hi,

I'm working on STM32 Discovery Board (stm32f4xx mcu) and I'm using an UART with flow control enabled; since I use the CubeMx code, I'd like to check the CTS level to know if transmit is enabled or not, because the HAL UART drivers not have nothing to do this. I'd like to make my function to check this level, passing only the UART object, but I can't get the GPIO pin assigned to CTS UART, from the UART object.

Please, can anyone suggest me a possible solution ?

Regards

Davide Urbano
    This topic has been closed for replies.

    1 reply

    Phillips Jr..Clyde
    Associate III
    July 6, 2014
    Posted on July 06, 2014 at 02:26

    Until you get help with CubeMx code you could go ''out of band'' and read the CTS level in a status register....