Documentation
¶
Index ¶
Constants ¶
View Source
const ( ASYNC_LOW_LATENCY = 0x2000 SER_RS485_ENABLED = 0x1 SER_RS485_RTS_ON_SEND = 0x2 SER_RS485_RTS_AFTER_SEND = 0x4 SER_RS485_RX_DURING_TX = 0x10 SER_RS485_TERMINATE_BUS = 0x20 )
Variables ¶
This section is empty.
Functions ¶
func IoctlSetSerial ¶ added in v0.4.0
IoctlSetSerial performs an ioctl on fd with a *Serial.
func IoctlSetSerialRS485 ¶ added in v0.4.0
func IoctlSetSerialRS485(fd int, value *SerialRS485) error
IoctlSetSerialRS485 performs an ioctl on fd with a *SerialRS485.
Types ¶
type Serial ¶ added in v0.1.1
type Serial struct { Type int32 Line int32 Port uint32 Irq int32 Flags int32 Xmit_fifo_size int32 Custom_divisor int32 Baud_base int32 Close_delay uint16 Io_type int8 Reserved_char [1]int8 Hub6 int32 Closing_wait uint16 Closing_wait2 uint16 Iomem_base *uint8 Iomem_reg_shift uint16 Port_high uint32 Iomap_base uint64 }
func IoctlGetSerial ¶ added in v0.4.0
type SerialRS485 ¶ added in v0.4.0
type SerialRS485 struct { Flags uint32 Rts_before_send uint32 Rts_after_send uint32 Padding [5]uint32 }
func IoctlGetSerialRS485 ¶ added in v0.4.0
func IoctlGetSerialRS485(fd int) (*SerialRS485, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.