An open API service indexing awesome lists of open source software.

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

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);
```