MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_custom_baud()

int MayaFlux::Core::detail::set_custom_baud ( int fd,
uint32_t baud )

Set a baud rate the portable serial option table does not accept.

Parameters
fdAn open serial device.
baudThe rate in bits per second.
Returns
0 on success, otherwise an errno value. ENOTSUP where the platform has no such call.

Linux sets it through the termios2 ioctls with BOTHER, and macOS through IOSSIOSPEED. It lives in its own translation unit because the kernel's termios2 header cannot be included beside the C library's termios.

Definition at line 46 of file SerialCustomBaud.cpp.

47{
48 return ENOTSUP;
49}

Referenced by MayaFlux::Core::SerialTransport::open().

Here is the caller graph for this function: