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... | |
Functions | |
NvMediaISCRootDevice * | NvMediaISCRootDeviceCreate (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... | |
typedef void NvMediaISCRootDevice |
An opaque handle for an NvMediaISCRootDevice object.
Definition at line 218 of file nvmedia_isc.h.
enum NvMediaISC_I2CPort |
Defines the I2C buses on the host hardware device.
Definition at line 199 of file nvmedia_isc.h.
NvMediaStatus NvMediaISCRootDeviceAbortWaitForError | ( | NvMediaISCRootDevice * | device | ) |
Aborts a call to NvMediaISCRootDeviceWaitForError().
[in] | device | The root device to use. |
NVMEDIA_STATUS_OK | to indicate that the operatrion was successful. |
NVMEDIA_STATUS_BAD_PARAMETER | to indicate that device was NULL. |
NVMEDIA_STATUS_ERROR | to indicate that some other error occurred. |
NvMediaISCRootDevice* NvMediaISCRootDeviceCreate | ( | uint32_t | portCfg | ) |
Creates an NvMediaISCRootDevice object.
void NvMediaISCRootDeviceDestroy | ( | NvMediaISCRootDevice * | device | ) |
Destroys an NvMediaISCRootDevice object.
[in] | device | Handle of the device to be destroyed. |
NvMediaStatus NvMediaISCRootDeviceWaitForError | ( | NvMediaISCRootDevice * | device | ) |
Waits until an error condition is reported or NvMediaISCRootDeviceAbortWaitForError() is called.
For safety use cases, application software shall verify the successful reception of camera error GPIO interrupt as a first step of programming the deserializer. This can be implemented by calling NvMediaISCRootDeviceWaitForError() followed by programming the deserializer to toggle the camera error GPIO pin which would cause NvMediaISCRootDeviceWaitForError() to return.
[in] | device | The root device to use. |
NVMEDIA_STATUS_OK | indicates that the call was successful. |
NVMEDIA_STATUS_BAD_PARAMETER | indicates that device was NULL. |
NVMEDIA_STATUS_ERROR | indicate that some other error occurred. |