32 lines
804 B
C
32 lines
804 B
C
/**
|
|
* @file digital_input_icu.h
|
|
*
|
|
* @date Jun 23, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "digital_input.h"
|
|
|
|
#if HAL_USE_ICU
|
|
|
|
digital_input_s* startDigitalCapture(const char *msg, brain_pin_e brainPin, bool isActiveHigh);
|
|
|
|
void turnOnCapturePin(const char *msg, brain_pin_e brainPin);
|
|
void turnOffCapturePin(brain_pin_e brainPin);
|
|
|
|
// deprecated API
|
|
digital_input_s *addWaveAnalyzerDriver(const char *msg, brain_pin_e brainPin);
|
|
void startInputDriver(const char *msg, /*nullable*/digital_input_s *hw, bool isActiveHigh);
|
|
|
|
void stopDigitalCapture(const char *msg, brain_pin_e brainPin);
|
|
|
|
//Nullable
|
|
ICUDriver * getInputCaptureDriver(const char *msg, brain_pin_e hwPin);
|
|
//Nullable
|
|
icuchannel_t getInputCaptureChannel(brain_pin_e hwPin);
|
|
|
|
#endif /* HAL_USE_ICU */
|
|
|