treewide: remove FSF address
[osmocom-bb.git] / src / shared / libosmocore / include / osmocom / core / serial.h
blob8810f3323aa5ba65f890fee5abfede0cb125a1f7
1 /*
2 * serial.h
4 * Copyright (C) 2011 Sylvain Munaut <tnt@246tNt.com>
6 * All Rights Reserved
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
19 /*! \defgroup serial Utility functions to deal with serial ports
20 * @{
23 /*! \file serial.h
24 * \file Osmocom serial port helpers
27 #ifndef __OSMO_SERIAL_H__
28 #define __OSMO_SERIAL_H__
30 #include <termios.h>
32 int osmo_serial_init(const char *dev, speed_t baudrate);
33 int osmo_serial_set_baudrate(int fd, speed_t baudrate);
34 int osmo_serial_set_custom_baudrate(int fd, int baudrate);
35 int osmo_serial_clear_custom_baudrate(int fd);
37 /*! @} */
39 #endif /* __OSMO_SERIAL_H__ */