30 lines
601 B
C
30 lines
601 B
C
/**
|
|
* @file hip9011.h
|
|
* @brief HIP9011/TPIC8101 driver
|
|
*
|
|
* @date Nov 27, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// 0b01110001
|
|
#define SET_ADVANCED_MODE 0x71
|
|
|
|
#define HIP_THREAD_PERIOD 100
|
|
|
|
void initHip9011(Logging *sharedLogger);
|
|
void startHip9001_pins();
|
|
void stopHip9001_pins();
|
|
void setHip9011FrankensoPinout(void);
|
|
#if HAL_USE_ADC
|
|
void hipAdcCallback(adcsample_t value);
|
|
#endif /* HAL_USE_ADC */
|
|
void setHipGain(float value);
|
|
void setHipBand(float value);
|
|
void setPrescalerAndSDO(int value);
|
|
void setKnockThresh(float value);
|
|
void setMaxKnockSubDeg(int value);
|
|
|
|
|