Documentation
¶
Index ¶
- func ArchIn(addr uint16, data UintN) error
- func ArchOut(addr uint16, data UintN) error
- func In(addr uint16, data UintN) error
- func Out(addr uint16, data UintN) error
- func Read(addr int64, data UintN) error
- func Write(addr int64, data UintN) error
- type ByteSlice
- type Uint16
- type Uint32
- type Uint64
- type Uint8
- type UintN
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchIn ¶
ArchIn 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(0x80, &data); err != nil {
log.Fatal(err)
}
fmt.Println(data)
func ArchOut ¶
ArchOut 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(0x80, &data); err != nil {
log.Fatal(err)
}
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.Println(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.