4 years, 12 months ago.

Can I use UART Pins with RTS/CTS flow Controll?

Hi everyone.

My target board is HRM1017 and I need to use UART with hardware control. So I use 'Serial::set_flow_control' function like following code,but I get error message <Class "mbed::Serial" has no member "set_flow_control" in "main.cpp" > and I fail to compile.

I wonder that what is wrong?mbed library or others?

In any event, I want to know how can I use UART with RTS/CTS controll. Could you tell me how to solve the problem?

日本語でも大丈夫です(^ω^)

///sample Code//////

  1. include "mbed.h"

Serial TestUART(p9,p11);

int main() { TestUART.set_flow_control(RTSCTS,p8,p10);

while(1){ TestUART.printf("Hello World \n"); wait(1); } RefFrom::http://developer.mbed.org/handbook/Serial }

////Error/////////

Error: Class "mbed::Serial" has no member "set_flow_control" in "main.cpp", Line: 6, Col: 18 Error: Identifier "RTSCTS" is undefined in "main.cpp", Line: 6, Col: 35

//////////////

Question relating to:

The Switch Science mbed HRM1017 is FCC and Japan radio type approved Bluetooth low energy development board with the Nordic's nRF51822 SoC. This board is also compatible with nRF51822-mKIT except ...
Be the first to answer this question.