2019-11-11 20:32:09 -08:00
|
|
|
/*
|
|
|
|
* @file digital_input.cpp
|
|
|
|
*
|
|
|
|
* @date Nov 11, 2019
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2019-11-11 20:32:09 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "digital_input.h"
|
|
|
|
|
|
|
|
void digital_input_s::setWidthCallback(VoidInt handler, void *arg) {
|
|
|
|
widthListeners.registerCallback(handler, arg);
|
|
|
|
}
|
|
|
|
|
2019-11-12 20:38:02 -08:00
|
|
|
void digital_input_s::setPeriodCallback(VoidInt handler, void *arg) {
|
2019-11-11 20:32:09 -08:00
|
|
|
periodListeners.registerCallback(handler, arg);
|
|
|
|
}
|