The class of custom interfaces in Sensor IMX728.
Definition at line 47 of file IMX728_CustomInterface.hpp.
Public Member Functions | |
const UUID & | getInstanceInterfaceID () const noexcept override |
Get Sensor IMX728 instance custom interface ID. More... | |
virtual SIPLStatus | SetHeaterState (bool const setState)=0 |
Set heater on or off. More... | |
virtual SIPLStatus | ParseCustomEmbeddedData (uint8_t const *const embeddedBufBot, uint32_t const embeddedBufBotSize, IMX728CustomEmbeddedData *const customEmbData) const =0 |
Parse the custom embedded data from the passed raw data. More... | |
virtual SIPLStatus | GetSerializerVideoStatus (MAX96717FVideoStatus *const customErrInfo) const =0 |
Get serializer's video status. More... | |
virtual SIPLStatus | PSCheckIsetComparator (uint8_t *const dataBuff) const =0 |
Read ISET(Current-Limit Setting) value from Power Switch (PS) Status register. More... | |
virtual SIPLStatus | PSReadVoltageAndCurrentValues (uint8_t const dataBuff_size, uint16_t *const dataBuff) const =0 |
Reads the voltage and current values for a Power Switch link/channel. More... | |
virtual SIPLStatus | VerifySerGPIOReadBackStatus (void) const =0 |
Verify Serializer GPIO Readback Status. More... | |
virtual SIPLStatus | BD868B2ExecuteFBIST (void)=0 |
Execute BD868B2 PMIC FBIST Runtime. More... | |
virtual SIPLStatus | BD868B2GetErrorInfo (BD868B2CustomErrInfo *const customErrInfo)=0 |
Get error info for BD868B2 PMIC. More... | |
virtual SIPLStatus | BD868B2GetWAROUTBErrorStatus (bool *const hasError)=0 |
Get fault status of WAROUTB pin of BD868B2 PMIC. More... | |
virtual SIPLStatus | TPS650332ExecuteABIST (bool *const hasError) noexcept=0 |
Execute TPS650332 PMIC Analog Built In Self Test (ABIST) Runtime. More... | |
virtual SIPLStatus | TPS650332GetErrorInfo (TPS650332CustomErrInfo *const customErrInfo) noexcept=0 |
Get error info for TPS650332 PMIC. More... | |
virtual SIPLStatus | TPS650332GetnINTErrorStatus (bool *const hasError) noexcept=0 |
Get fault status of nINT pin of TPS650332 PMIC. More... | |
virtual SIPLStatus | GetSensorTemperature (DevBlkCDITemperature *const sensorTempInfo) const =0 |
Get Sensor temperature. More... | |
virtual SIPLStatus | GetSerializerTemperature (DevBlkCDITemperature *const serTempInfo) const =0 |
Get MAX96717F Serializer Temperature data. More... | |
virtual SIPLStatus | CameraModulePowerOff (void)=0 |
To power off camera module. More... | |
virtual SIPLStatus | ControlDeserLink (bool const enable)=0 |
Control deserializer link. More... | |
virtual SIPLStatus | WriteEEPROMData (uint16_t const address, uint32_t const length, uint8_t *const buffer)=0 |
Write to the EEPROM module. More... | |
virtual SIPLStatus | WriteTempHistToEEPROM (uint32_t const length, uint8_t const *const buffer) const =0 |
Write Temperature Histogram to the EEPROM module. More... | |
Static Public Member Functions | |
static const UUID & | getClassInterfaceID () |
Get Sensor IMX728 class custom interface ID. More... | |
Protected Member Functions | |
IMX728_CustomInterface ()=default | |
Default Constructor of class IMX728_CustomInterface. More... | |
IMX728_CustomInterface (IMX728_CustomInterface const &)=delete | |
Prevent the Copy constructor of class IMX728_CustomInterface. More... | |
IMX728_CustomInterface (IMX728_CustomInterface &&)=delete | |
Prevent the Move constructor of class IMX728_CustomInterface. More... | |
IMX728_CustomInterface & | operator= (IMX728_CustomInterface const &) &=delete |
Prevent default copy assignment operator of class IMX728_CustomInterface. More... | |
IMX728_CustomInterface & | operator= (IMX728_CustomInterface &&) &=delete |
Prevent default move assignment operator of class IMX728_CustomInterface. More... | |
~IMX728_CustomInterface ()=default | |
Default destructor of class IMX728_CustomInterface. More... | |
|
protecteddefault |
Default Constructor of class IMX728_CustomInterface.
|
protecteddelete |
Prevent the Copy constructor of class IMX728_CustomInterface.
|
protecteddelete |
Prevent the Move constructor of class IMX728_CustomInterface.
|
protecteddefault |
Default destructor of class IMX728_CustomInterface.
|
pure virtual |
Execute BD868B2 PMIC FBIST Runtime.
This API is virtual function and will be overridden by other implementation.
NVSIPL_STATUS_OK | If successfully able to execute BD868B2 PMIC FBIST. |
NVSIPL_STATUS_NOT_SUPPORTED | If BD868B2 PMIC FBIST function is not supported. |
(SIPLStatus) | Any errors from dependencies. |
|
pure virtual |
Get error info for BD868B2 PMIC.
This function is used to get information about error bits in the relevant error registers, which are set in case of interrupt faults. This API is virtual function and will be overridden by other implementation.
[out] | customErrInfo | Pointer to struct BD868B2CustomErrInfo which contains error information filled by driver, bit field indicating the error flags set is indexed by enum BD868B2CustomErrType. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to get error info for BD868B2 PMIC. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
NVSIPL_STATUS_NOT_SUPPORTED | If BD868B2 PMIC GetErrorInfo function is not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Get fault status of WAROUTB pin of BD868B2 PMIC.
This function is used to get error status of WAROUTB pin by reading register of BD868B2 via I2C programmer. This API is virtual function and will be overridden by other implementation..
[out] | hasError | Point to bool value. The bool value will be set true if any error is detected by the fault monitoring mechanism for WAROUTB pin. The bool value will be set false if WAROUTB pin has no error. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to get fault status of WAROUTB pin of BD868B2 PMIC. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
NVSIPL_STATUS_NOT_SUPPORTED | If BD868B2 PMIC GetWAROUTBErrorStatus function is not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
To power off camera module.
This function is used to power off camera module.
NVSIPL_STATUS_OK | Power state set successfully. |
NVSIPL_STATUS_NOT_SUPPORTED | Custom Interface function not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Control deserializer link.
This function is used to enable or disable the deserializer link to this camera module.
[in] | enable | enable specifies the action to be performed for the deserializer link. Valid range: [true, false]. |
NVSIPL_STATUS_OK | Deserializer link controlled successfully. |
NVSIPL_STATUS_NOT_SUPPORTED | Custom Interface function not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
inlinestatic |
Get Sensor IMX728 class custom interface ID.
This function is used by application to get sensor's custom interface ID. Application can use this ID to get the interface of the class.
IMX728_CUSTOM_INTERFACE_ID | Custom interface id for IMX728. Valid range : [ IMX728_CUSTOM_INTERFACE_ID]. |
Definition at line 63 of file IMX728_CustomInterface.hpp.
References nvsipl::IMX728_CUSTOM_INTERFACE_ID().
|
inlineoverridevirtualnoexcept |
Get Sensor IMX728 instance custom interface ID.
This function is used by application to get sensor's custom interface ID. Application can use this ID to get the interface of the instance.
IMX728_CUSTOM_INTERFACE_ID | Custom interface id for IMX728. Valid range : [ IMX728_CUSTOM_INTERFACE_ID]. |
Implements nvsipl::Interface.
Definition at line 79 of file IMX728_CustomInterface.hpp.
References nvsipl::IMX728_CUSTOM_INTERFACE_ID().
|
pure virtual |
Get Sensor temperature.
This function is used by the application to get sensor temperature.
[out] | sensorTempInfo | Pointer to structure DevBlkCDITemperature to store sensor temperature data. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | Success |
NVSIPL_STATUS_NOT_SUPPORTED | Custom Interface function not supported. |
NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
NVSIPL_STATUS_ERROR | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Get MAX96717F Serializer Temperature data.
MAX96717F Serializer has two temperature sensors. This function returns serializer temperature sensor data.
[out] | serTempInfo | Pointer to structure DevBlkCDITemperature to store serializer temperature data. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | Serializer temperature information read successfully. |
NVSIPL_STATUS_NOT_SUPPORTED | Custom Interface function not supported. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Get serializer's video status.
This function is used to get serializer's video status by reading OVERFLOW bit, TUN_FIFO_OVERFLOW bit and PCLK detected (PCLKDET) bit status which related to the health of the video transmitted from the serializer. This API is virtual function and will be overridden by other implementation.
[out] | customErrInfo | Pointer to struct MAX96717FVideoStatus which contains status of serializer OVERFLOW bit, TUN_FIFO_OVERFLOW bit and PCLKDET bit. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If the video transmitted from the serializer is healthy. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
protecteddelete |
Prevent default move assignment operator of class IMX728_CustomInterface.
|
protecteddelete |
Prevent default copy assignment operator of class IMX728_CustomInterface.
|
pure virtual |
Parse the custom embedded data from the passed raw data.
This function is used to parse the bottom embedded data buffer and extract SM error information to store it in customEmbData
.
This API is virtual function and will be overridden by other implementation.
[in] | embeddedBufBot | Buffer pointer to bottom chunk of embedded data. Valid range : [non-NULL]. |
[in] | embeddedBufBotSize | Size of bottom chunk of embedded data. Valid range : [1, UINT32_MAX]. |
[out] | customEmbData | Pointer to struct IMX728CustomEmbeddedData. If embedded data is present, data from the parse written to IMX728CustomEmbeddedData. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to parse the custom embedded data from raw data. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Read ISET(Current-Limit Setting) value from Power Switch (PS) Status register.
This function reads the ISET value for the link specified by linkIndex and stores it in the data pointer. ISET value of 0 means no error. When ISET pin is open or shorted, ISET value of 1 is reported. This API is virtual function and will be overridden by other implementation.
[out] | dataBuff | Buffer pointer to output (ISET) value from Power Switch (PS) status register. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to read ISET value. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Reads the voltage and current values for a Power Switch link/channel.
This function reads input/output voltages and output channel current for a given Power Switch link/channel. This API is virtual function and will be overridden by other implementation.
[in] | dataBuff_size | Value is fixed to 5. Calling function needs to allocate space for the 5 values specified below in dataBuff. Valid range : [5] |
[out] | dataBuff | pointer to the array Voltage/Current values for specified linkIndex. Index 0: Output Voltage. Index 1: Vin. Index 2: Vdd. Index 3: VISET. Index 4: Output Channel Current. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to read Input/Output voltages and Current values. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Set heater on or off.
This function is used by application to turn heater on or off. This API is virtual function and will be overridden by other implementation.
[in] | setState | Bool value representing on or off for the heater. True represents setting heater on. Valid range : [true, false]. |
NVSIPL_STATUS_OK | If successfully able to set heater state. |
NVSIPL_STATUS_NOT_SUPPORTED | Not a heater supported module. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtualnoexcept |
Execute TPS650332 PMIC Analog Built In Self Test (ABIST) Runtime.
This API is virtual function and will be overridden by other implementation.
[out] | hasError | Pointer to bool value. The bool value will be Set true if any error is detected by the ABIST. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to execute TPS650332 PMIC ABIST Runtime. |
NVSIPL_STATUS_NOT_SUPPORTED | If TPS650332 PMIC ABIST function is not supported. |
NVSIPL_STATUS_TIMED_OUT | If ABIST is not completed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtualnoexcept |
Get error info for TPS650332 PMIC.
This function is used to get information about error bits in the relevant ACK registers, which are set in case of interrupt faults. This API is virtual function and will be overridden by other implementation.
[out] | customErrInfo | Pointer to struct TPS650332CustomErrInfo which contains error information filled by driver, bit field indicating the error flags set is indexed by enum TPS650332CustomErrType. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to get error info for TPS650332 PMIC. |
NVSIPL_STATUS_NOT_SUPPORTED | If TPS650332 PMIC ABIST function is not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtualnoexcept |
Get fault status of nINT pin of TPS650332 PMIC.
This function is used to get error status of nINT pin by reading register of TPS650332 via I2C programmer. This API is virtual function and will be overridden by other implementation..
[out] | hasError | Point to bool value. The bool value will be set true if any error is detected by the fault monitoring mechanism for nINT pin. The bool value will be set false if nINT pin has no error. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to get fault status of nINT pin of TPS650332 PMIC. |
NVSIPL_STATUS_NOT_SUPPORTED | If TPS650332 PMIC ABIST function is not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Verify Serializer GPIO Readback Status.
This function is used to perform run-time GPIO readback verification test on applicable GPIO pins. This API is virtual function and will be overridden by other implementation.
NVSIPL_STATUS_OK | If Serializer GPIO Readback Status works normally. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Write to the EEPROM module.
[in] | address | Location to write to EEPROM. Valid range : [256, 511]. |
[in] | length | Length of buffer to write into EEPROM. Valid range : [1, 256]. |
[in] | buffer | Pointer to the array of values to write to EEPROM. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to write data to EEPROM. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
NVSIPL_STATUS_NOT_SUPPORTED | EEPROM handle invalid. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations
|
pure virtual |
Write Temperature Histogram to the EEPROM module.
[in] | length | Length of buffer to write temperature histogram into EEPROM. Valid range : [60]. |
[in] | buffer | Pointer to the array of values to write temperature histogram to EEPROM. Valid range : [non-NULL]. |
NVSIPL_STATUS_OK | If successfully able to write temperature histogram data to EEPROM. |
NVSIPL_STATUS_BAD_ARGUMENT | Input parameter validation failed. |
NVSIPL_STATUS_NOT_SUPPORTED | Custom Interface function not supported. |
(SIPLStatus) | Any errors from dependencies. |
Usage considerations