This repository has been archived on 2022-02-18. You can view files and clone it, but cannot push or open issues or pull requests.
osmo-sdr/utils/rum-ba/src/serial.h

15 lines
395 B
C

#ifndef INCLUDE_SERIAL_H
#define INCLUDE_SERIAL_H
#include <stdint.h>
int serialOpen(const char* device);
void serialClose(int fd);
int serialPutC(int fd, char c);
int serialPutS(int fd, const char* str);
int serialGetC(int fd, char* c, int timeout);
int serialGetS(int fd, char* str, int len, int timeout);
int serialExpect(int fd, const char* str, int timeout);
#endif // INCLUDE_SERIAL_H