cancel
Showing results for 
Search instead for 
Did you mean: 

Check CTS level in UART with flow control

DUrbano
Associate III
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
1 REPLY 1
Phillips Jr..Clyde
Associate III
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....