It is possible to be informed for specific events via callbacks. The following callbacks are available:
- Finished will be called when the controller has reached the target value.
- Processing will be called when the controller has processed an image.
- Note
- The
Finished callback will only be called when the controller runs in Once mode.
Examples
- Note
- To reduce and simplify the sample code, the examples do not check the return values.
Finished callback function
void on_automanager_finished(void* context)
{
uint8_t last_average = 0;
}
Processing callback function
Register callback functions
◆ PEAK_AFL_CALLBACK_FINISHED_FUNC
| typedef void(PEAK_AFL_CALLCONV * PEAK_AFL_CALLBACK_FINISHED_FUNC) (void *context) |
◆ PEAK_AFL_CALLBACK_PROCESSING_FUNC
| typedef void(PEAK_AFL_CALLCONV * PEAK_AFL_CALLBACK_PROCESSING_FUNC) (peak_afl_process_data *data, void *context) |
◆ peak_afl_callback_type
controller callback type
| Enumerator |
|---|
| PEAK_AFL_CONTROLLER_CALLBACK_FINISHED | Controller callback type finished.
|
| PEAK_AFL_CONTROLLER_CALLBACK_PROCESSING_DATA | Controller callback type processing.
- Deprecated
- use PEAK_AFL_CONTROLLER_CALLBACK_PROCESSING instead
|
| PEAK_AFL_CONTROLLER_CALLBACK_PROCESSING | Controller callback type processing.
|
◆ peak_afl_AutoController_Callback_Set()