MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
SerialCustomBaud.hpp
Go to the documentation of this file.
1#pragma once
2
4
5/**
6 * @brief Set a baud rate the portable serial option table does not accept
7 * @param fd An open serial device.
8 * @param baud The rate in bits per second.
9 * @return 0 on success, otherwise an errno value. ENOTSUP where the platform has no such call.
10 *
11 * Linux sets it through the termios2 ioctls with BOTHER, and macOS through IOSSIOSPEED.
12 * It lives in its own translation unit because the kernel's termios2 header cannot be
13 * included beside the C library's termios.
14 */
15int set_custom_baud(int fd, uint32_t baud);
16
17}
int set_custom_baud(int, uint32_t)
Set a baud rate the portable serial option table does not accept.