Versions in this module Expand all Collapse all v1 v1.0.2 Jan 26, 2014 v1.0.1 Jan 26, 2014 v1.0.0 Jan 26, 2014 Changes in this version + const DEFAULT_BUS + const DEFAULT_CHIP + const DEFAULT_HARDWARE_ADDR + const SPIDEV + const SPI_BUS + const SPI_CHIP + const SPI_DELAY + const SPI_HARDWARE_ADDR + const SPI_HELP_LINK + const SPI_IOC_MAGIC + func SPI_IOC_MESSAGE(n uintptr) uintptr + func SPI_IOC_RD_BITS_PER_WORD() uintptr + func SPI_IOC_RD_LSB_FIRST() uintptr + func SPI_IOC_RD_MAX_SPEED_HZ() uintptr + func SPI_IOC_RD_MODE() uintptr + func SPI_IOC_WR_BITS_PER_WORD() uintptr + func SPI_IOC_WR_LSB_FIRST() uintptr + func SPI_IOC_WR_MAX_SPEED_HZ() uintptr + func SPI_IOC_WR_MODE() uintptr + func SPI_MESSAGE_SIZE(n uintptr) uintptr + type SPIDevice struct + Bus int + Chip int + func NewSPIDevice(bus int, chipSelect int) *SPIDevice + func (spi *SPIDevice) Close() error + func (spi *SPIDevice) Open() error + func (spi *SPIDevice) Send(bytes_to_send [3]byte) ([]byte, error) + func (spi *SPIDevice) SetBitsPerWord(bpw uint8) error + func (spi *SPIDevice) SetMode(mode uint8) error + func (spi *SPIDevice) SetSpeed(speed uint32) error + type SPI_IOC_TRANSFER struct