code: def spi_configure(self, polarity, phase, bitorder):
          
          ret = api.py_aa_spi_configure(self.handle, polarity, phase, bitorder)
          _raise_error_if_negative(ret)
docs: Configure the SPI interface.