Documentation
¶
Index ¶
- type Bit
- func (b Bit) Clear()
- func (b Bit) DisableOut()
- func (b Bit) EnableOut()
- func (b Bit) IsValid() bool
- func (b Bit) Load() int
- func (b Bit) LoadOut() int
- func (b Bit) Mask() uint32
- func (b Bit) Num() int
- func (b Bit) OutEnabled() bool
- func (b Bit) Port() *Port
- func (b Bit) Set()
- func (b Bit) Store(val int)
- func (b Bit) Toggle()
- type Port
- func (p *Port) Bit(n int) Bit
- func (p *Port) Clear(bits uint32)
- func (p *Port) DisableOut(bits uint32)
- func (p *Port) EnableOut(bits uint32)
- func (p *Port) Load() uint32
- func (p *Port) LoadOut() uint32
- func (p *Port) Num() int
- func (p *Port) OutEnabled() uint32
- func (p *Port) Set(bits uint32)
- func (p *Port) Store(bits uint32)
- func (p *Port) Toggle(bits uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bit ¶
type Bit struct {
// contains filtered or unexported fields
}
Bit represents a single bit in a GPIO port.
func UsePin ¶
UsePin connects pin to the GPIO (SIO) peripheral and returns the corresponding GPIO bit (see also BitForPin).
func (Bit) Clear ¶
func (b Bit) Clear()
Clear sets the output value of this bit to 0 in one atomic operation.
func (Bit) Set ¶
func (b Bit) Set()
Set sets the output value of this bit to 1 in one atomic operation.
type Port ¶
type Port struct {
// contains filtered or unexported fields
}
Port represents an 32-bit GPIO port.
func (*Port) DisableOut ¶
DisableOut disables output for given bits.
func (*Port) OutEnabled ¶
OutEnabled returns the bits in the output enable state.
Click to show internal directories.
Click to hide internal directories.