Documentation ¶
Overview ¶
Package aoa implements the ReadWriteCloser interface for a USB AoA endpoint. See https://source.android.com/devices/accessories/protocol
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReadWriteCloser ¶
type ReadWriteCloser struct {
// contains filtered or unexported fields
}
ReadWriteCloser implements io.ReadWriteCloser backed by an AoA USB connection.
func Connect ¶
func Connect(serial string) (*ReadWriteCloser, error)
Connect configures the USB device identified by serial to use the AoA protocol and returns a ReadWriteCloser that allows communicating with the endpoint.
func (*ReadWriteCloser) Close ¶
func (u *ReadWriteCloser) Close() error
Close closes the USB interface.
Click to show internal directories.
Click to hide internal directories.