https://github.com/matveyt/ucomm
A very minimal cross-platform serial port library
https://github.com/matveyt/ucomm
serial serialport unix windows
Last synced: 3 days ago
JSON representation
A very minimal cross-platform serial port library
- Host: GitHub
- URL: https://github.com/matveyt/ucomm
- Owner: matveyt
- Created: 2025-08-27T10:50:58.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-09-22T13:35:25.000Z (9 months ago)
- Last Synced: 2025-09-22T15:19:27.232Z (9 months ago)
- Topics: serial, serialport, unix, windows
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Minimalist cross-platform serial port library. Blocking write only, almost no features
and no documentation.
Complete function list:
```c
intptr_t ucomm_open(const char* port, unsigned baud, unsigned config);
int ucomm_close(intptr_t fd);
int ucomm_reset(intptr_t fd, unsigned baud, unsigned config);
int ucomm_purge(intptr_t fd);
int ucomm_timeout(intptr_t fd, unsigned ms);
int ucomm_dtr(intptr_t fd, int pulldown);
int ucomm_rts(intptr_t fd, int pulldown);
ssize_t ucomm_available(intptr_t fd);
int ucomm_getc(intptr_t fd);
int ucomm_putc(intptr_t fd, int ch);
ssize_t ucomm_read(intptr_t fd, void* buffer, size_t length);
ssize_t ucomm_write(intptr_t fd, const void* buffer, size_t length);
size_t ucomm_ports(char*** ports);
```