Documentation ¶ Index ¶ Variables func Close() error func Find() []string func GrReceive() func GrRxPrase(c chan string) func GrTransmit() func Open(name string) error func Receive(buff []byte) ([]byte, error) func SendCmd(act uint8, v variable.T) error func Transmit(data []byte) error type T Constants ¶ This section is empty. Variables ¶ View Source var SerialCur = T{ Name: "", Mode: serial.Mode{ BaudRate: 115200, Parity: serial.NoParity, DataBits: 8, StopBits: serial.OneStopBit, }, Port: nil, } Functions ¶ func Close ¶ func Close() error Close serial port func Find ¶ func Find() []string Find ports func GrReceive ¶ func GrReceive() func GrRxPrase ¶ func GrRxPrase(c chan string) func GrTransmit ¶ func GrTransmit() func Open ¶ func Open(name string) error Open serial port func Receive ¶ func Receive(buff []byte) ([]byte, error) Receive data func SendCmd ¶ func SendCmd(act uint8, v variable.T) error func Transmit ¶ func Transmit(data []byte) error Transmit data Types ¶ type T ¶ type T struct { Name string Mode serial.Mode Port serial.Port } Source Files ¶ View all Source files serial.gotestport.go Click to show internal directories. Click to hide internal directories.