Interface to specify custom APIs required for the sensor.
Definition at line 34 of file OV2311_CUST1v2_CustomInterface.hpp.


Public Member Functions | |
| virtual SIPLStatus | SetSensorReg (std::uint16_t const regAddr, std::uint8_t const regVal) const =0 |
| Write To OV2311 Sensor Register. More... | |
| virtual SIPLStatus | GetSensorReg (std::uint16_t const regAddr, std::uint8_t *const regVal) const =0 |
| Read From OV2311 Sensor Register. More... | |
| virtual SIPLStatus | SetIllumination (std::uint32_t const strobeWidth, std::uint16_t const tNegative) const =0 |
| Update strobe width and strobe offset. More... | |
| virtual SIPLStatus | GetIllumination (std::uint32_t *const strobeWidth, std::uint16_t *const tNegative) const =0 |
| Read strobe width and strobe offset. More... | |
| virtual SIPLStatus | GetLEDLatchStatus (std::uint8_t *const latchStatus) const =0 |
| Get LED Over Current Status. More... | |
| virtual SIPLStatus | LEDLatchReset () const =0 |
| Reset LED Over Current condition. More... | |
| virtual SIPLStatus | GetLEDStatus (bool *const ledStatus) const =0 |
| Get LED Status. More... | |
| virtual SIPLStatus | GetTemperature (std::int16_t *const temperature) const =0 |
| Read sensor temperature. More... | |
| virtual SIPLStatus | GetProximityStatus (bool *const proximityStatus) const =0 |
| Read proximity sensor reading. More... | |
| virtual SIPLStatus | WriteEEPROM (uint16_t const addr, uint32_t const length, uint8_t *const buffer) const =0 |
| Write to EEPROM. More... | |
| virtual SIPLStatus | SetExposure (std::uint8_t const exposureHigh, std::uint8_t const exposureLow, std::uint8_t const fineExposureHigh, std::uint8_t const fineExposureLow) const =0 |
| Update exposure parameters. More... | |
| virtual SIPLStatus | GetExposure (std::uint8_t *const exposureHigh, std::uint8_t *const exposureLow, std::uint8_t *const fineExposureHigh, std::uint8_t *const fineExposureLow) const =0 |
| Get exposure parameters. More... | |
| virtual SIPLStatus | SetAnalogGain (std::uint8_t const gainCoarse, std::uint8_t const gainFine) const =0 |
| Update analog gain. More... | |
| virtual SIPLStatus | GetAnalogGain (std::uint8_t *const gainCoarse, std::uint8_t *const gainFine) const =0 |
| Get analog gain. More... | |
| virtual SIPLStatus | SetDigitalGain (std::uint8_t const coarseDigiGain, std::uint8_t const fineDigiGainHigh, std::uint8_t const fineDigiGainLow) const =0 |
| Update digital gain. More... | |
| virtual SIPLStatus | GetDigitalGain (std::uint8_t *const coarseDigiGain, std::uint8_t *const fineDigiGainHigh, std::uint8_t *const fineDigiGainLow) const =0 |
| Get digital gain. More... | |
| virtual SIPLStatus | ParseCustomEmbeddedData (std::uint8_t const *const embeddedBufTop, std::uint32_t const embeddedBufTopSize, std::uint8_t const *const embeddedBufBottom, std::uint32_t const embeddedBufBottomSize, OV2311CustomEmbeddedData *const parsedData) const =0 |
| Parse raw custom embedded data input and populate output structure with parsed custom embedded data. More... | |
| virtual SIPLStatus | writeRegistersOV2311 (uint16_t const regAddr, uint16_t const dataLength, uint8_t const *const dataBuff) const =0 |
| Write OV2311 sensor registers (Debug API - Non-Safety Only) More... | |
| virtual SIPLStatus | readRegistersOV2311 (uint16_t const regAddr, uint16_t const dataLength, uint8_t *const dataBuff) const =0 |
| Read OV2311 sensor registers (Debug API - Non-Safety Only) More... | |
| virtual SIPLStatus | setDeserData (uint32_t deviceIndex, uint32_t registerNum, uint32_t dataLength, uint8_t *dataBuff) const =0 |
| Set deserializer register data (Debug API - Non-Safety Only) More... | |
| virtual SIPLStatus | getDeserData (uint32_t deviceIndex, uint32_t registerNum, uint32_t dataLength, uint8_t *dataBuff) const =0 |
| Get deserializer register data (Debug API - Non-Safety Only) More... | |
| virtual SIPLStatus | GetSerializerReg (uint16_t const regAddr, uint8_t *const regVal) const =0 |
| Read specified serializer register. More... | |
| virtual SIPLStatus | writeRegistersMAX96717F (uint16_t const regAddr, uint32_t const dataLength, uint8_t const *const dataBuff) const =0 |
| Write MAX96717F serializer registers (Debug API - Non-Safety Only) More... | |
| virtual SIPLStatus | readRegistersMAX96717F (uint16_t const regAddr, uint32_t const dataLength, uint8_t *const dataBuff) const =0 |
| Read MAX96717F serializer registers (Debug API - Non-Safety Only) More... | |
| virtual SIPLStatus | SetWCEEPROM (bool const writeControl) const =0 |
| Set EEPROM write control (Debug API - Non-Safety Only) More... | |
| virtual const UUID & | getInstanceInterfaceID () const noexcept=0 |
| A call to get the ID from the instance of the class inheriting this interface. More... | |
|
pure virtual |
Get analog gain.
| [out] | gainCoarse | Coarse analog gain |
| [out] | fainFine | Fine analog gain |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Get deserializer register data (Debug API - Non-Safety Only)
This function reads data from deserializer registers for debug and development purposes. Not supported in safety builds.
| [in] | deviceIndex | The device index. Valid range: [0, UINT32_MAX] |
| [in] | registerNum | The register number. Valid range: [0, UINT32_MAX] |
| [in] | dataLength | Length of data to read. Valid range: [0, UINT32_MAX] |
| [out] | dataBuff | Buffer to store read data. Valid value: [non-NULL] |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Register read failed |
Usage considerations
|
pure virtual |
Get digital gain.
| [out] | CoarseDigiGain | Coarse digital gain |
| [out] | fineDigiGainHigh | Fine digital gain high |
| [out] | fineDigiGainLow | Fine digital gain low |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Get exposure parameters.
This function allows application to get coarse and fine exposure values
| [out] | exposureHigh | Coarse exposure high byte |
| [out] | exposureLow | Coarse exposure low byte |
| [out] | fineExposureHigh | Fine exposure high byte |
| [out] | fineExposureLow | Fine exposure low byte |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Read strobe width and strobe offset.
| [out] | strobeWidth | location to store strobe width |
| [out] | tNegative | location to store strobe offset |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtualnoexceptinherited |
A call to get the ID from the instance of the class inheriting this interface.
| Unique | identifier for the interface instance |
Usage considerations
Implemented in nvsipl::OvtHDRBayerRX0CustomInterface, nvsipl::OvtSDRRGBIrRX0CustomInterface, nvsipl::OvtSDRMonoRX0CustomInterface, nvsipl::MAX96712FusaNvCustomInterface, nvsipl::MAX96724FusaNvCustomInterface, nvsipl::MAX96792ACustomInterface, nvsipl::IMX728_CustomInterface, nvsipl::IMX728_CustomInterface, nvsipl::IMX623_CustomInterface, nvsipl::OvtDefaultCustomInterface, and nvsipl::INvSIPLISPStatCustomInterface.
|
pure virtual |
Get LED Over Current Status.
This function allows application to obtain LED Over Current (latch) status
| [out] | latchStatus | location to store latch status |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Get LED Status.
This function allows application to obtain LED On/Off status
| [out] | ledStatus | location to store LED status |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Read proximity sensor reading.
This function allows application to read current reading of proximity sensor. True indicates object was detected close to the sensor and False otherwise
| [out] | proximityStatus | location to store proximity senor reading |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Read From OV2311 Sensor Register.
This function allows application to get a value from the specified register. Please note that not all registers could be read with this function. Only a subset of registers could be obtained with this function and the access control is implemented inside the function
| [in] | regAddr | Address of the register |
| [out] | regVal | Data read from the register |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Read specified serializer register.
This fuction is used by the application to read a serializer register. Please note that only a subset of serializer registers are allowed to be read by the application and this access control is implemented inside the driver.
| [in] | regAddr | Address of the register |
| [out] | regVal | Data read from the register |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Read sensor temperature.
This function allows application to read ensor temperature in degree Celsius
| [out] | temperature | location to store temperature |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Reset LED Over Current condition.
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Parse raw custom embedded data input and populate output structure with parsed custom embedded data.
This function is used by the application to get the custom embedded data parsed by the driver. The caller of this function needs to allocate the memory to store raw custom embedded data.
| [in] | embeddedBufTop | Buffer pointer to top chunk of embedded data. |
| [in] | embeddedBufTopSize | Size of top chunk of embedded data. |
| [in] | embeddedBufBot | Buffer pointer to bottom chunk of embedded data. |
| [in] | embeddedBufBotSize | Size of bottom chunk of embedded data. |
| [out] | embeddedData | Custom embedded data from OV2311 sensor. |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
Usage considerations
|
pure virtual |
Read MAX96717F serializer registers (Debug API - Non-Safety Only)
This function reads data from MAX96717F serializer registers for debug and development purposes. Not supported in safety builds.
| [in] | regAddr | The register address. Valid range: [0, UINT16_MAX] |
| [in] | dataLength | Length of data to read. Valid range: [0, UINT32_MAX] |
| [out] | dataBuff | Buffer to store read data. Valid value: [non-NULL] |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Register read failed |
Usage considerations
|
pure virtual |
Read OV2311 sensor registers (Debug API - Non-Safety Only)
This function reads data from OV2311 sensor registers for debug and development purposes. Not supported in safety builds.
| [in] | regAddr | The register address. Valid range: [0, UINT16_MAX] |
| [in] | dataLength | Length of data to read. Valid range: [0, UINT16_MAX] |
| [out] | dataBuff | Buffer to store read data. Valid value: [non-NULL] |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Register read failed |
Usage considerations
|
pure virtual |
Update analog gain.
| [in] | gainCoarse | Coarse analog gain |
| [in] | fainFine | Fine analog gain |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Set deserializer register data (Debug API - Non-Safety Only)
This function writes data to deserializer registers for debug and development purposes. Not supported in safety builds.
| [in] | deviceIndex | The device index. Valid range: [0, UINT32_MAX] |
| [in] | registerNum | The register number. Valid range: [0, UINT32_MAX] |
| [in] | dataLength | Length of data to write. Valid range: [0, UINT32_MAX] |
| [in] | dataBuff | Buffer containing data to write. Valid value: [non-NULL] |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Register write failed |
Usage considerations
|
pure virtual |
Update digital gain.
| [in] | coarseDigiGain | Coarse digital gain |
| [in] | fineDigiGainHigh | Fine digital gain high byte |
| [in] | fineDigiGainLow | Fine digital gain low byte |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Update exposure parameters.
This function allows application to update coarse and fine exposure values
| [in] | exposureHigh | Coarse exposure high byte |
| [in] | exposureLow | Coarse exposure low byte |
| [in] | fineExposureHigh | Fine exposure high byte |
| [in] | fineExposureLow | Fine exposure low byte |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Update strobe width and strobe offset.
| [in] | strobeWidth | strobe width |
| [in] | tNegative | strobe offset |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Write To OV2311 Sensor Register.
This function allows application to set a value to the specified register. Please note that not all registers could be written with this function. Only a subset of registers could be set with this function and the access control is implemented inside the function
| [in] | regAddr | Address of the register |
| [in] | regVal | Data to be written to the register |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Set EEPROM write control (Debug API - Non-Safety Only)
This function enables or disables write access to the EEPROM for debug and development purposes. Not supported in safety builds.
| [in] | writeControl | True to enable EEPROM writes, false to disable. |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_ERROR | Operation failed |
Usage considerations
|
pure virtual |
Write to EEPROM.
This function allows application to write data to EEPROM
| [in] | addr | Start address |
| [in] | length | Length of data |
| [in] | buffer | Data to be written |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Invalid input parameter(s) |
| NVSIPL_STATUS_ERROR | Any other error. |
Usage considerations
|
pure virtual |
Write MAX96717F serializer registers (Debug API - Non-Safety Only)
This function writes data to MAX96717F serializer registers for debug and development purposes. Not supported in safety builds.
| [in] | regAddr | The register address. Valid range: [0, UINT16_MAX] |
| [in] | dataLength | Length of data to write. Valid range: [0, UINT32_MAX] |
| [in] | dataBuff | Buffer containing data to write. Valid value: [non-NULL] |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Register write failed |
Usage considerations
|
pure virtual |
Write OV2311 sensor registers (Debug API - Non-Safety Only)
This function writes data to OV2311 sensor registers for debug and development purposes. Not supported in safety builds.
| [in] | regAddr | The register address. Valid range: [0, UINT16_MAX] |
| [in] | dataLength | Length of data to write. Valid range: [0, UINT16_MAX] |
| [in] | dataBuff | Buffer containing data to write. Valid value: [non-NULL] |
| NVSIPL_STATUS_OK | Success |
| NVSIPL_STATUS_BAD_ARGUMENT | Argument validation failed |
| NVSIPL_STATUS_ERROR | Register write failed |
Usage considerations