Sensor module
1. Overview
Sensor module is one of many modules, mainly by the module's various hardware modules, including sensor, Flash, Af, EEprom, OIS, CSI and so on. This module mainly describes some working principles of the module hardware and some related parts of the drive.
2.module_sensor_init () function
As mentioned in the previous server process, the module is initialized after the service is started, including the sensor module, and the sensor initializes the entry function as Module_sensor_init (...). This function creates the sensor module and returns its pointer, creates its port, fills in some function functions, and so on. Its main implementation process is as follows:
1. Create the MCT module for the sensor. --mct_module_create (name)
After creation, populate set mode, query mode, start session, stop session, and set session data five interface functions.
2. Create the module_sensro_ctrl_t structure, which contains bundle information to build the previously mentioned module tree (easy to add, traverse, etc.).
The 3.sensor module is the source module, so its numsinkports should be set to 0.
4.eebin related Operations
5.sensor detection operation to detect effective sensor.
6. Fill in all the information that has been detected by the sensor.
7. Fill in the other information of sensor (Actuator,flash,csid,ois, etc.).
8. Initialize the Sensor module.
9. Create a port based on CID info
10. Initializing the EEPROM
Qualcomm Camera Learning Note four