Mainmenu done; confog. Menu started
This commit is contained in:
@@ -12,8 +12,8 @@ float get_speed_index();
|
||||
float get_speed_AB();
|
||||
|
||||
//functions for internal Encoder
|
||||
int16_t get_enc_in_counter();
|
||||
void set_enc_in_counter(int16_t inital_value);
|
||||
bool get_enc_in_but();
|
||||
//int16_t get_enc_in_counter();
|
||||
//void set_enc_in_counter(int16_t inital_value);
|
||||
//bool get_enc_in_but();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
|
||||
|
||||
bool get_Hall(int HallSensorGPIO);
|
||||
SSD1306_t *configure_OLED();
|
||||
SSD1306_t *configure_OLED_old();
|
||||
|
||||
#endif
|
||||
@@ -8,10 +8,26 @@ typedef enum {
|
||||
PHASE_W
|
||||
} Phase;
|
||||
|
||||
typedef enum {
|
||||
OUT_U_V,
|
||||
OUT_U_W,
|
||||
OUT_V_W,
|
||||
OUT_V_U,
|
||||
OUT_W_U,
|
||||
OUT_W_V,
|
||||
OUT_U,
|
||||
OUT_V,
|
||||
OUT_W,
|
||||
COMBI_COUNT
|
||||
}OutCombis;
|
||||
|
||||
void mcpwm_init();
|
||||
esp_err_t set_mcpwm_output(Phase highside, Phase lowside, Phase inactive);
|
||||
void stop_mcpwm_output();
|
||||
void configure_mcpwm_output(OutCombis out_combi);
|
||||
esp_err_t start_mcpwm_output();
|
||||
esp_err_t set_mcpwm_duty(float duty);
|
||||
esp_err_t set_mcpwm_frequency(uint16_t frequency);
|
||||
void get_comps(mcpwm_cmpr_handle_t comps[3]);
|
||||
float get_duty();
|
||||
uint16_t get_frequency();
|
||||
#endif
|
||||
@@ -1,5 +1,13 @@
|
||||
//Zum Erstellen der gesamten Benutzeroberfläche. Samt einlesen des Inkrementalgebers, und Übergabe von Parametern an "Backend"
|
||||
#ifndef MENU_H
|
||||
#define MENU_H
|
||||
|
||||
|
||||
|
||||
extern const char *OutCombi_names[];
|
||||
|
||||
void configure_OLED();
|
||||
void config_internal_Encoder();
|
||||
void menu_loop();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user