spi

package
v0.0.0-...-36f948f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package spi exposes functions and data for reading temperatures from an MSP430 over SPI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(path string) (*Reader, error)

NewReader creates a new SPI reader for the given path.

func (*Reader) Close

func (r *Reader) Close() error

Close releases all values associated with the Reader.

func (*Reader) Read

func (r *Reader) Read(b []byte) (int, error)

Read reads values from the SPI device into the given byte slice.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL