28 lines
698 B
C
28 lines
698 B
C
/**
|
|
* @file trigger_input.h
|
|
* @brief Position sensor hardware layer
|
|
*
|
|
* @date Dec 30, 2012
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
*/
|
|
|
|
#ifndef CRANK_INPUT_H_
|
|
#define CRANK_INPUT_H_
|
|
|
|
#include "engine.h"
|
|
#include "pin_repository.h"
|
|
#include "trigger_structure.h"
|
|
#include "trigger_central.h"
|
|
|
|
#define TRIGGER_SUPPORTED_CHANNELS 2
|
|
|
|
void turnOnTriggerInputPins(Logging *sharedLogger);
|
|
void applyNewTriggerInputPins(void);
|
|
void startTriggerInputPins(void);
|
|
void stopTriggerInputPins(void);
|
|
void setPrimaryChannel(brain_pin_e brainPin);
|
|
void turnOffTriggerInputPin(brain_pin_e brainPin);
|
|
void turnOnTriggerInputPin(const char *msg, int index, bool isTriggerShaft);
|
|
|
|
#endif /* CRANK_INPUT_H_ */
|