NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
spi_slave.h File Reference

Detailed Description

NVIDIA Quickboot Interface: SPI

Description: This file declares APIs for accessing SPI controller.

Definition in file spi_slave.h.

Go to the source code of this file.

Data Structures

struct  QbSpiSlaveControllerInfo
 Holds the SPI controller specific information. More...
 
struct  QbSpiSlaveDriverPrivInfo
 Holds private information for SPI slave driver. More...
 
struct  QbSpiSlaveTransfer
 Holds data for SPI slave transfers. More...
 

Macros

#define QB_SPI_SLAVE_ARM   0
 Defines the arm SPI slave operation. More...
 
#define QB_SPI_SLAVE_XFER_COMPLETE   1
 Defines the transfer complete slave operation. More...
 
#define QB_SPI_SLAVE_UNARM   2
 Defines the unarm SPI slave operation. More...
 
#define QB_SPI_SLAVE_REG_DUMP   3
 Defines the register dump SPI slave operation. More...
 
#define QB_SPI_SLAVE_RESET   4
 Defines the spi slave controller reset operation. More...
 
#define QB_PIO_DMA_TRANSFER_LIMIT_RX   32
 Defines the maximum number of bytes for which PIO mode can be used for a transfer. More...
 
#define QB_PIO_DMA_TRANSFER_LIMIT_TX   8
 
#define MAX_SPI_SLAVE_XFERSIZE   65536
 Defines the maximum transfer length. More...
 
#define QB_SPI_SLAVE_MAX_INSTANCES   4
 Defines the maximum number of SPI instances. More...
 
#define FLUSH_FIFO_TIMEOUT   1000
 Defines timeout for Rx FIFO flush. More...
 
#define DATA_DIR_TX   0
 
#define DATA_DIR_RX   1
 

Typedefs

typedef enum QbSpiSlaveInstanceRec QbSpiSlaveInstance
 Defines the SPI controller instance. More...
 
typedef enum
QbSpiSlaveChipSelectRec 
QbSpiSlaveChipSelect
 Defines the SPI chip select. More...
 
typedef enum
QbSpiSlaveCSPolarityRec 
QbSpiSlaveCSPolarity
 Defines the polarity for SPI chip select. More...
 
typedef enum QbSpiSlaveModeRec QbSpiSlaveMode
 Defines the SPI modes. More...
 

Enumerations

enum  QbSpiSlaveInstanceRec {
  QbSpiSlaveInstance_1 = 0,
  QbSpiSlaveInstance_2,
  QbSpiSlaveInstance_3,
  QbSpiSlaveInstance_4,
  QbSpiSlaveInstance_Num,
  QbSpiSlaveInstance_Force32 = 0x7fffffff
}
 Defines the SPI controller instance. More...
 
enum  QbSpiSlaveChipSelectRec {
  QbSpiSlaveCS_0 = 0,
  QbSpiSlaveCS_1,
  QbSpiSlaveCS_2,
  QbSpiSlaveCS_3,
  QbSpiSlaveCS_Num,
  QbSpiSlaveCS_Force32 = 0x7fffffff
}
 Defines the SPI chip select. More...
 
enum  QbSpiSlaveCSPolarityRec {
  QbSpiSlaveCSPol_LOW = 0,
  QbSpiSlaveCSPol_HIGH,
  QbSpiSlaveCSPol_Num,
  QbSpiSlaveCSPol_Force32 = 0x7fffffff
}
 Defines the polarity for SPI chip select. More...
 
enum  QbSpiSlaveModeRec {
  QbSpiSlaveMode_0 = 0,
  QbSpiSlaveMode_1,
  QbSpiSlaveMode_2,
  QbSpiSlaveMode_3,
  QbSpiSlaveMode_Num,
  QbSpiSlaveMode_Force32 = 0x7fffffff
}
 Defines the SPI modes. More...
 

Functions

NvError QbSpiSlaveInit (void)
 Registers the SPI slave driver to the driver framework. More...