Documentation ¶
Overview ¶
Package gpiostreamtest enables testing device driver using gpiostream.PinIn or PinOut.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InOp ¶
type InOp struct { gpio.Pull gpiostream.BitStream }
InOp represents an expected replay StreamIn operation in PinIn.
type PinIn ¶
PinIn implements gpiostream.PinIn that accepts BitStream only.
Embed in a struct with gpiotest.Pin for more functionality.
type PinOutPlayback ¶
PinOutPlayback implements gpiostream.PinOut.
Embed in a struct with gpiotest.Pin for more functionality.
func (*PinOutPlayback) Close ¶
func (p *PinOutPlayback) Close() error
Close verifies that all the expected Ops have been consumed.
func (*PinOutPlayback) StreamOut ¶
func (p *PinOutPlayback) StreamOut(s gpiostream.Stream) error
StreamOut implements gpiostream.PinOut.
func (*PinOutPlayback) String ¶
func (p *PinOutPlayback) String() string
type PinOutRecord ¶
PinOutRecord implements gpiostream.PinOut that records operations.
Embed in a struct with gpiotest.Pin for more functionality.
func (*PinOutRecord) StreamOut ¶
func (p *PinOutRecord) StreamOut(s gpiostream.Stream) error
StreamOut implements gpiostream.PinOut.
func (*PinOutRecord) String ¶
func (p *PinOutRecord) String() string