Pages: [1]   Go Down
Author Topic: Determine hardware serial speed during program execution?  (Read 376 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 85
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I am switching the serial read/write speed throughout my program. Is there a function in the serial library that will return the current speed of the hardware serial port? I suppose that I could check the registers, has anybody done that already?

Thanks,

-ren
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8471
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I suppose that I could check the registers,
Only way I know of.

That said you can just keep a variable that mimics the current value.

______
Rob
« Last Edit: April 09, 2012, 11:02:11 pm by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: