Treehopper Python API
SpiDevice Class Reference

SPI device. More...

Public Member Functions

def __init__ (spi_module, chip_select, chip_select_mode, speed_mhz, spi_mode)
 
def send_receive (data_to_send, burst)
 

Public Attributes

 chip_select_mode
 
 chip_select
 
 frequency
 
 mode
 

Detailed Description

SPI device.

This class provides a simple wrapper around Spi.send_receive() that preserves the chip-select, mode, and frequency configurations.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   spi_module,
  chip_select,
  chip_select_mode,
  speed_mhz,
  spi_mode 
)

Member Function Documentation

◆ send_receive()

def send_receive (   data_to_send,
  burst 
)

Member Data Documentation

◆ chip_select

chip_select

◆ chip_select_mode

chip_select_mode

◆ frequency

frequency

◆ mode

mode

The documentation for this class was generated from the following file: