21 #ifndef INCLUDE_OLA_IO_SERIAL_H_
22 #define INCLUDE_OLA_IO_SERIAL_H_
34 #define B115200 115200
35 #define B230400 230400
36 typedef unsigned speed_t;
45 BAUD_RATE_9600 = 9600,
46 BAUD_RATE_19200 = 19200,
47 BAUD_RATE_38400 = 38400,
48 BAUD_RATE_57600 = 57600,
49 BAUD_RATE_115200 = 115200,
50 BAUD_RATE_230400 = 230400,
82 #endif // INCLUDE_OLA_IO_SERIAL_H_
bool UIntToSpeedT(uint32_t value, speed_t *output)
Convert an integer baud rate to the termios struct speed_t.
Definition: Serial.cpp:117
void ReleaseUUCPLock(const std::string &path)
Remove a UUCP lock file for the device.
Definition: Serial.cpp:234
bool AcquireUUCPLockAndOpen(const std::string &path, int oflag, int *fd)
Try to open the path, respecting UUCP locking.
Definition: Serial.cpp:142
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44