added set for duty cycle and posibilty to change Outputs

This commit is contained in:
2025-01-28 16:07:39 +01:00
parent 1f1720672f
commit 208f8cbb78
8 changed files with 224 additions and 353 deletions

View File

@@ -1,7 +1,14 @@
#ifndef MCPWM_H
#define MCPWM_H
typedef enum {
PHASE_U,
PHASE_V,
PHASE_W
} Phase;
void mcpwm_init();
void mcpwm_set_duty(float duty);
void set_mcpwm_output(Phase highside, Phase lowside, float Duty);
void set_mcpwm_duty(float Duty);
#endif