Documentation
¶
Index ¶
- type I2C
- type SPI
- func (c *SPI) BitsPerWord() uint8
- func (c *SPI) Close() error
- func (c *SPI) MaxSpeed() int
- func (c *SPI) Mode() SPIMode
- func (c *SPI) Read(b []byte) (n int, err error)
- func (c *SPI) SetBitsPerWord(bits uint8) error
- func (c *SPI) SetMaxSpeed(v int) error
- func (c *SPI) SetMode(mode SPIMode) error
- func (c *SPI) String() string
- func (c *SPI) Write(b []byte) (n int, err error)
- type SPIMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SPI ¶
type SPI struct {
// contains filtered or unexported fields
}
SPI implements the spidev interface.
func OpenSPI ¶
OpenSPI opens the numbered spi bus with the numbered device. The device often corresponds to the CS pin for that bus.
func (*SPI) BitsPerWord ¶
func (*SPI) SetBitsPerWord ¶
func (*SPI) SetMaxSpeed ¶
Click to show internal directories.
Click to hide internal directories.