|
FireSync API
|
| kStatus kLdModel_Construct | ( | kLdModel * | model, |
| kLightModel | lightModel, | ||
| kLightDiodeModel | diodeModel, | ||
| kBool | tolerateUnknown, | ||
| kAlloc | alloc | ||
| ) |
Constructs a kLdModel model.
Failure to construct the object with an error code of kERROR_UNIMPLEMENTED, indicates that the driver runtime behaviour has not been characterized. In this case, application level optical power programming should not be allowed and no runtime adjustment is needed.
Note that it is very unlikely that the sensor with driver that has not fully been characterized will include a power calibration record required for any runtime adjustment.
| model | Destination for the constructed model handle. |
| lightModel | Target light model. |
| diodeModel | Target light diode model. |
| tolerateUnknown | Should this constructor tolerate an unknown light model? |
| alloc | Memory allocator (or kNULL for default). |