NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
I2C Access

Detailed Description

Declares the APIs for Quickboot accessing I2C devices.

Data Structures

struct  QbI2cDriverPrivInfo
 
struct  QbI2cInfo
 
struct  QbI2cTransfer
 Holds the I2C transfer. More...
 

Macros

#define QB_I2C_IOCTL_SEND   0
 
#define QB_I2C_IOCTL_RECV   1
 
#define BC_CLEAR_ENABLE   1
 
#define BC_SCLK_THRESHOLD_CYCLES   9
 

Typedefs

typedef enum QbI2cInstanceRec QbI2cInstance
 Defines the I2C controller instance. More...
 

Enumerations

enum  QbI2cInstanceRec {
  QbI2cInstance_I2C1 = 0,
  QbI2cInstance_I2C2,
  QbI2cInstance_I2C3,
  QbI2cInstance_I2C4,
  QbI2cInstance_I2C5,
  QbI2cInstance_I2C6,
  QbI2cInstance_Num,
  QbI2cInstance_Force32 = 0x7fffffff
}
 Defines the I2C controller instance. More...
 

Functions

NvError QbI2cInit (void)
 Register I2C driver to driver framework. More...
 

Macro Definition Documentation

#define BC_CLEAR_ENABLE   1

Definition at line 84 of file i2c.h.

#define BC_SCLK_THRESHOLD_CYCLES   9

Definition at line 85 of file i2c.h.

#define QB_I2C_IOCTL_RECV   1

Definition at line 83 of file i2c.h.

#define QB_I2C_IOCTL_SEND   0

Definition at line 82 of file i2c.h.

Typedef Documentation

Defines the I2C controller instance.

This must be passed while setting up packet headers.

Enumeration Type Documentation

Defines the I2C controller instance.

This must be passed while setting up packet headers.

Enumerator
QbI2cInstance_I2C1 
QbI2cInstance_I2C2 
QbI2cInstance_I2C3 
QbI2cInstance_I2C4 
QbI2cInstance_I2C5 
QbI2cInstance_I2C6 
QbI2cInstance_Num 
QbI2cInstance_Force32 

Definition at line 35 of file i2c.h.

Function Documentation

NvError QbI2cInit ( void  )

Register I2C driver to driver framework.