Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func In ¶
In reads data from the x86 port at address addr. Data must be Uint8, Uint16, Uint32, but not Uint64.
Example ¶
var data Uint8
if err := In(0x3f8, &data); err != nil {
log.Fatal(err)
}
fmt.Printf("%v\n", data)
func Out ¶
Out writes data to the x86 port at address addr. data must be Uint8, Uint16 uint32, but not Uint64.
Example ¶
data := Uint8('A')
if err := Out(0x3f8, &data); err != nil {
log.Fatal(err)
}
Types ¶
Click to show internal directories.
Click to hide internal directories.