2015-07-10 06:01:56 -07:00
|
|
|
/**
|
2019-11-11 20:32:09 -08:00
|
|
|
* @file digital_input_icu.h
|
2015-07-10 06:01:56 -07:00
|
|
|
*
|
|
|
|
* @date Jun 23, 2013
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2019-11-11 20:04:27 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-11-11 20:04:27 -08:00
|
|
|
#include "digital_input.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-04-12 17:52:51 -07:00
|
|
|
#if HAL_USE_ICU
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2020-03-08 05:57:21 -07:00
|
|
|
digital_input_s* startDigitalCapture(const char *msg, brain_pin_e brainPin);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-11-12 20:38:02 -08:00
|
|
|
void stopDigitalCapture(const char *msg, brain_pin_e brainPin);
|
2018-01-01 08:27:15 -08:00
|
|
|
|
2019-01-11 12:44:24 -08:00
|
|
|
//Nullable
|
2017-02-06 16:03:19 -08:00
|
|
|
ICUDriver * getInputCaptureDriver(const char *msg, brain_pin_e hwPin);
|
2019-01-11 12:44:24 -08:00
|
|
|
//Nullable
|
2016-08-16 19:05:36 -07:00
|
|
|
icuchannel_t getInputCaptureChannel(brain_pin_e hwPin);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2018-12-16 06:03:21 -08:00
|
|
|
#endif /* HAL_USE_ICU */
|
2015-07-10 06:01:56 -07:00
|
|
|
|