![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
pachas
Dependencies: mbed QEI FastPWM
Diff: encoder_interface.h
- Revision:
- 0:9d0b9785d3d6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/encoder_interface.h Sat Apr 11 22:53:05 2020 +0000 @@ -0,0 +1,31 @@ + + + +#ifndef ENCODER_INTERFACE_H_ +#define ENCODER_INTERFACE_H_ + +#include "stdint.h" +#include "QEI.h" + +/* Object declaration */ +extern QEI rotary_encoder; + +/* Global variables declaration */ +extern int8_t past_parameter_selection_index; +extern volatile uint8_t parameter_selection_index_change_flag; +extern int8_t parameter_selection_index; +extern volatile uint8_t volume_setpoint_index_change_flag; +extern int8_t volume_setpoint_index; +extern volatile uint8_t resp_frequency_index_change_flag; +extern int8_t resp_frequency_index; +extern volatile uint8_t i_e_ratio_index_change_flag; +extern int8_t i_e_ratio_index; + +/* Function declaration */ +void Parameter_Selection_Index_Update(void); +void Volume_Setpoint_Index_Update(void); +void Resp_Frequency_Index_Update(void); +void I_E_Ratio_Index_Update(void); + + +#endif \ No newline at end of file