Documentation ¶
Index ¶
- type Chip
- func (g *Chip) Close() error
- func (g *Chip) GetChipInfo() ChipInfo
- func (g *Chip) GetLineInfo(line uint32) (LineInfo, error)
- func (g *Chip) OpenLine(label string, flags RequestFlag, line LineRequest) (*Lines, error)
- func (g *Chip) OpenLines(label string, flags RequestFlag, lines []LineRequest) (*Lines, error)
- func (g *Chip) WatchLine(label string, requestFlags RequestFlag, eventFlags EventFlag, line Line) (*Lines, error)
- type ChipInfo
- type EventFlag
- type Line
- type LineFlag
- type LineInfo
- type LineRequest
- type Lines
- type RequestFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chip ¶
type Chip struct {
// contains filtered or unexported fields
}
func (*Chip) GetChipInfo ¶
func (*Chip) OpenLine ¶
func (g *Chip) OpenLine(label string, flags RequestFlag, line LineRequest) (*Lines, error)
func (*Chip) OpenLines ¶
func (g *Chip) OpenLines(label string, flags RequestFlag, lines []LineRequest) (*Lines, error)
type EventFlag ¶
type EventFlag uint32
const EventFallingEdge EventFlag = 0x00000002
const EventRisingEdge EventFlag = 0x00000001
type LineFlag ¶
type LineFlag uint32
const LineActiveLow LineFlag = 0x00000004
const LineIsOut LineFlag = 0x00000002
const LineKernel LineFlag = 0x00000001
const LineOpenDrain LineFlag = 0x00000008
const LineOpenSource LineFlag = 0x00000010
type LineRequest ¶
type RequestFlag ¶
type RequestFlag uint32
const RequestActiveLow RequestFlag = 0x00000004
const RequestInput RequestFlag = 0x00000001
const RequestOpenDrain RequestFlag = 0x00000008
const RequestOpenSource RequestFlag = 0x00000010
const RequestOutput RequestFlag = 0x00000002
Click to show internal directories.
Click to hide internal directories.