File: termios_darwin.go

package info (click to toggle)
golang-github-goburrow-serial 0.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 5
file content (13 lines) | stat: -rw-r--r-- 210 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package serial

import (
	"syscall"
)

func cfSetIspeed(termios *syscall.Termios, speed uint64) {
	termios.Ispeed = speed
}

func cfSetOspeed(termios *syscall.Termios, speed uint64) {
	termios.Ospeed = speed
}