NVIDIA DRIVE OS Linux API Reference

5.1.6.1 Release
For Test and Development only

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

Detailed Description

Manage NvMediaISCRootDevice objects, which represent the root of the Nvmedia ISC object system.

The NvMediaISCRootDevice object manages an I2C port on the host hardware device.

Typedefs

typedef void NvMediaISCRootDevice
 An opaque handle for an NvMediaISCRootDevice object. More...
 

Enumerations

enum  NvMediaISC_I2CPort {
  NVMEDIA_ISC_I2C_BUS_0 = 0,
  NVMEDIA_ISC_I2C_BUS_1 = 1,
  NVMEDIA_ISC_I2C_BUS_2 = 2,
  NVMEDIA_ISC_I2C_BUS_3 = 3,
  NVMEDIA_ISC_I2C_BUS_4 = 4,
  NVMEDIA_ISC_I2C_BUS_5 = 5,
  NVMEDIA_ISC_I2C_BUS_6 = 6,
  NVMEDIA_ISC_I2C_BUS_7 = 7,
  NVMEDIA_ISC_I2C_BUS_8 = 8,
  NVMEDIA_ISC_I2C_BUS_9 = 9,
  NVMEDIA_ISC_I2C_BUS_10 = 10,
  NVMEDIA_ISC_I2C_BUS_11 = 11,
  NVMEDIA_ISC_I2C_SIMULATOR = 255
}
 Defines the I2C buses on the host hardware device. More...
 
enum  NvMediaISCPowerItems {
  NVMEDIA_ISC_PWR_AGGREGATOR,
  NVMEDIA_ISC_PWR_LINK_0,
  NVMEDIA_ISC_PWR_LINK_1,
  NVMEDIA_ISC_PWR_LINK_2,
  NVMEDIA_ISC_PWR_LINK_3
}
 Defines ISC power items, objects whose power can be turned on or off and queried with NvMediaISCRootDevicePowerControl() and NvMediaISCRootDeviceGetPowerStatus(). More...
 

Functions

NvMediaISCRootDeviceNvMediaISCRootDeviceCreate (uint32_t portCfg)
 Creates an NvMediaISCRootDevice object. More...
 
void NvMediaISCRootDeviceDestroy (NvMediaISCRootDevice *device)
 Destroys an NvMediaISCRootDevice object. More...
 
NvMediaStatus NvMediaISCRootDeviceWaitForError (NvMediaISCRootDevice *device)
 Waits until an error condition is reported or NvMediaISCRootDeviceAbortWaitForError() is called. More...
 
NvMediaStatus NvMediaISCRootDeviceAbortWaitForError (NvMediaISCRootDevice *device)
 Aborts a call to NvMediaISCRootDeviceWaitForError(). More...
 
NvMediaStatus NvMediaISCRootDevicePowerControl (NvMediaISCRootDevice *device, NvMediaISCPowerItems powerItem, NvMediaBool powerOn)
 Sets a power item's power status (on or off). More...
 
NvMediaStatus NvMediaISCRootDeviceGetPowerStatus (NvMediaISCRootDevice *device, NvMediaISCPowerItems powerItem, NvMediaBool *powerStatus)
 Gets a power item's power status (on or off). More...
 
NvMediaStatus NvMediaISCRootDeviceEnableSync (NvMediaISCRootDevice *device, NvMediaBool enable)
 Enables or disables pulse width modulation (PWM) for external synchronization. More...
 
NvMediaStatus NvMediaISCRootDeviceSetSyncConfig (NvMediaISCRootDevice *device, float_t freq, float_t dutyRatio)
 Sets the pulse width modulation (PWM) frequency and duty cycle. More...
 
NvMediaStatus NvMediaISCRootDeviceGetSyncConfig (NvMediaISCRootDevice *device, float_t *freq, float_t *dutyRatio)
 Gets the pulse width modulation (PWM) frequency and duty cycle. More...
 

Typedef Documentation

typedef void NvMediaISCRootDevice

An opaque handle for an NvMediaISCRootDevice object.

Definition at line 236 of file nvmedia_isc.h.

Enumeration Type Documentation

Defines the I2C buses on the host hardware device.

Enumerator
NVMEDIA_ISC_I2C_BUS_0 

Specifies i2c-0.

NVMEDIA_ISC_I2C_BUS_1 

Specifies i2c-1.

NVMEDIA_ISC_I2C_BUS_2 

Specifies i2c-2.

NVMEDIA_ISC_I2C_BUS_3 

Specifies i2c-3.

NVMEDIA_ISC_I2C_BUS_4 

Specifies i2c-4.

NVMEDIA_ISC_I2C_BUS_5 

Specifies i2c-5.

NVMEDIA_ISC_I2C_BUS_6 

Specifies i2c-6.

NVMEDIA_ISC_I2C_BUS_7 

Specifies i2c-7.

NVMEDIA_ISC_I2C_BUS_8 

Specifies i2c-8.

NVMEDIA_ISC_I2C_BUS_9 

Specifies i2c-9.

NVMEDIA_ISC_I2C_BUS_10 

Specifies i2c-10.

NVMEDIA_ISC_I2C_BUS_11 

Specifies i2c-11.

NVMEDIA_ISC_I2C_SIMULATOR 

Port SIMPULATOR (20)

Definition at line 217 of file nvmedia_isc.h.

Defines ISC power items, objects whose power can be turned on or off and queried with NvMediaISCRootDevicePowerControl() and NvMediaISCRootDeviceGetPowerStatus().

Enumerator
NVMEDIA_ISC_PWR_AGGREGATOR 

Specifies aggregator power.

NVMEDIA_ISC_PWR_LINK_0 

Specifies LINK 0 power.

NVMEDIA_ISC_PWR_LINK_1 

Specifies LINK 1 power.

NVMEDIA_ISC_PWR_LINK_2 

Specifies LINK 2 power.

NVMEDIA_ISC_PWR_LINK_3 

Specifies LINK 3 power.

Definition at line 321 of file nvmedia_isc.h.

Function Documentation

NvMediaStatus NvMediaISCRootDeviceAbortWaitForError ( NvMediaISCRootDevice device)

Aborts a call to NvMediaISCRootDeviceWaitForError().

Parameters
[in]deviceThe root device to use.
Return values
NVMEDIA_STATUS_OKto indicate that the operatrion was successful.
NVMEDIA_STATUS_BAD_PARAMETERto indicate that device was NULL.
NVMEDIA_STATUS_ERRORto indicate that some other error occurred.
void NvMediaISCRootDeviceDestroy ( NvMediaISCRootDevice device)

Destroys an NvMediaISCRootDevice object.

Parameters
[in]deviceHandle of the device to be destroyed.
NvMediaStatus NvMediaISCRootDeviceEnableSync ( NvMediaISCRootDevice device,
NvMediaBool  enable 
)

Enables or disables pulse width modulation (PWM) for external synchronization.

Parameters
[in]deviceThe root device to use.
[in]enableThe PWM state. Use NVMEDIA_TRUE to enable PWM and NVMEDIA_FALSE to disable it.
Return values
NVMEDIA_STATUS_OKindicates that the operation was successful.
NVMEDIA_STATUS_BAD_PARAMETERindicates that device was NULL.
NVMEDIA_STATUS_ERRORindicates that some other error occurred.
NvMediaStatus NvMediaISCRootDeviceGetPowerStatus ( NvMediaISCRootDevice device,
NvMediaISCPowerItems  powerItem,
NvMediaBool powerStatus 
)

Gets a power item's power status (on or off).

Parameters
[in]deviceThe root device to use.
[in]powerItemThe power item of device for which to get the power status.
[out]powerStatusA pointer to the power status.
Return values
NVMEDIA_STATUS_OKindicates that the operation was successful.
NVMEDIA_STATUS_BAD_PARAMETERindicates that one or more pointer parameters were NULL.
NVMEDIA_STATUS_NOT_SUPPORTEDindicates that the device driver does not support this functionality.
NVMEDIA_STATUS_ERRORindicates that some other error occurred.
NvMediaStatus NvMediaISCRootDeviceGetSyncConfig ( NvMediaISCRootDevice device,
float_t *  freq,
float_t *  dutyRatio 
)

Gets the pulse width modulation (PWM) frequency and duty cycle.

Parameters
[in]deviceThe root device to use.
[out]freqA pointer to PWM frequency.
[out]dutyRatioA pointer to PWM duty cycle (fraction of time spent high).
Return values
NVMEDIA_STATUS_OKindicates that the operation was successful.
NVMEDIA_STATUS_BAD_PARAMETERindicates that one or more pointer parameters were NULL.
NVMEDIA_STATUS_NOT_SUPPORTEDindicates that the device does not support this functionality.
NVMEDIA_STATUS_ERRORindicates that some other error occurred.
NvMediaStatus NvMediaISCRootDevicePowerControl ( NvMediaISCRootDevice device,
NvMediaISCPowerItems  powerItem,
NvMediaBool  powerOn 
)

Sets a power item's power status (on or off).

Parameters
[in]deviceThe root device to use.
[in]powerItemThe power item of device whose power status is to be set.
[in]powerOnThe power status to set.
Return values
NVMEDIA_STATUS_OKindicates that the operation was successful.
NVMEDIA_STATUS_BAD_PARAMETERindicates that device was NULL.
NVMEDIA_STATUS_NOT_SUPPORTEDindicates that the device driver does not support this functionality.
NVMEDIA_STATUS_ERRORindicates that some other error occurred.
NvMediaStatus NvMediaISCRootDeviceSetSyncConfig ( NvMediaISCRootDevice device,
float_t  freq,
float_t  dutyRatio 
)

Sets the pulse width modulation (PWM) frequency and duty cycle.

Parameters
[in]deviceThe root device to use.
[in]freqPWM frequency, in hertz.
[in]dutyRatioPWM duty cycle (fraction of time spent high).
Return values
NVMEDIA_STATUS_OKindicates that the operation was successful.
NVMEDIA_STATUS_BAD_PARAMETERindicates that device was NULL.
NVMEDIA_STATUS_ERRORindicates that some other error occurred.
NvMediaStatus NvMediaISCRootDeviceWaitForError ( NvMediaISCRootDevice device)

Waits until an error condition is reported or NvMediaISCRootDeviceAbortWaitForError() is called.

Parameters
[in]deviceThe root device to use.
Return values
NVMEDIA_STATUS_OKindicates that the call was successful.
NVMEDIA_STATUS_BAD_PARAMETERindicates that device was NULL.
NVMEDIA_STATUS_ERRORindicate that some other error occurred.