Comments (2)
I'm not aware of any API that returns supported baud rates for a serial port. That information usually comes from reading the hardware's datasheet, and then it's usually determined by a base clock frequency and a divisor with some simple formula for calculating the final baud rate. The best such an API could do is provide a guess as to what's commonly supported. This library has done that via the BaudRate
enum.
from serial-rs.
I think you misunderstood what I meant. I'm not trying to have this library reach into the hardware driver and extract actual supported baud rates, I wanted to get a list of standard baud rates for the current platform. The baud rate enum is dependent on the platform as to what standard rates are supported, for all others you need to use BaudOther. It'd be very helpful to be able to easily get a list of those standard rates.
from serial-rs.
Related Issues (20)
- read() only blocks once HOT 1
- API for allowing different timings for settings-changes to take effect HOT 1
- Should use nix crate HOT 2
- Crate issue on target mipsel HOT 3
- how to close a port? HOT 1
- serial-unix: on linux, use the termios2 api to support arbitrary baud rates HOT 2
- Disable timeout HOT 3
- Does not seem to work with pseudo-terminals on OS X HOT 5
- Missed support for tcflush() HOT 2
- Need a way to send a serial BREAK
- Cross compiling for raspberry pi fails HOT 1
- OS independed PortSettings HOT 2
- Support non-blocking operation
- how to detect available com ports?
- Serial open forced to specify tiocexcl, serial-rs cannot work under WSL1
- I can't receive \x11 bytes of data
- Maintenance Status HOT 4
- Unsafe pointer mutation
- error: use of deprecated `try` macro HOT 1
- Set timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serial-rs.