17 lines
392 B
Go
17 lines
392 B
Go
//
|
|
// Copyright 2014-2020 Cristian Maglie. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
//
|
|
|
|
package serial
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const devFolder = "/dev"
|
|
const regexFilter = "^(cu|tty)\\..*"
|
|
|
|
const ioctlTcgetattr = unix.TIOCGETA
|
|
const ioctlTcsetattr = unix.TIOCSETA
|
|
const ioctlTcflsh = unix.TIOCFLUSH
|