|
brazos-trapezoidal
|
Header file for PWMDriver.c. More...
#include "includes.h"

Go to the source code of this file.
Macros | |
| #define | NUMBER_OF_MOTORS 1 |
| #define | PWM_CONFIG_PORT(port) |
| #define | IO_CONFIG_PORT(port) |
| #define | PWM_INITIALIZE_FUNCTIONS {PWMDriver__Initialize} |
| #define | PWM_LOWERON_FUNCTIONS {PWMDriver__LowersOn} |
| #define | PWM_LOADALL_FUNCTIONS {PWMDriver__LoadAllPwmValues} |
| #define | PWM_DISABLE_FUNCTIONS {PWMDriver__AllOff} |
| #define | PWM_ENABLE_FUNCTIONS {PWMDriver__ConfigOutput} |
| #define | PWM_GETMAXPWM_FUNCTIONS {PWMDriver__GetMaxPwm} |
Typedefs | |
| typedef void(* | CB_EVENT_TYPE) (uint32_t) |
| typedef void(* | CB_TYPE) (unsigned char) |
| typedef void(* | PWM_INIT_TYPE) (uint32_t, uint32_t dead_time_ns, CB_TYPE cb) |
| typedef void(* | PWM_VOID_VOID_TYPE) (void) |
| typedef unsigned short int(* | PWM_GET_MAX_TYPE) (void) |
| typedef void(* | PWM_LOAD_ALL_TYPE) (unsigned short int, unsigned short int, unsigned short int) |
| typedef void(* | PWM_DISABLE_ENABLE_TYPE) (void) |
Enumerations | |
| enum | PWM_GATE_NAME_TYPE { PWM_GATE_A_HI , PWM_GATE_A_LO , PWM_GATE_B_HI , PWM_GATE_B_LO , PWM_GATE_C_HI , PWM_GATE_C_LO , PWM_GATE_ALL_HI , PWM_GATE_ALL_LO , PWM_GATE_ALL_6GATES } |
Functions | |
| void | PWMDriver__Initialize (uint32_t pwm_frequency, uint32_t dead_time_ns, CB_TYPE cb) |
| It Initializes the module PWMDriver and its variables. More... | |
| void | PWMDriver__SetPTIM (void *) |
| void | PWMDriver__StartTIM (void) |
| Turn All PWM Off. More... | |
| void | PWMDriver__StopTIM (void) |
| Turn All PWM Off. More... | |
| void | PWMDriver__ConfigShutdown (void) |
| Configures the Shutdown feature of PWM. More... | |
| void | PWMDriver__ConfigOutput (void) |
| Configures the PWM output pins. More... | |
| void | PWMDriver__ConfigPwm (uint16_t pwm_deadtime, uint16_t ADC_Advance_Delay_Syslks) |
| Configures the PWM output peripheral. More... | |
| void | PWMDriver__AllOff (void) |
| void | PWMDriver__LowersOn (void) |
| Turn Lowers ON. More... | |
| void | PWMDriver__LoadAllPwmValues (uint16_t, uint16_t, uint16_t) |
| uint16_t | PWMDriver__GetMaxPwm (void) |
| Get the max PWM counts configured in the peripheral. More... | |
| void | PWMDriver__StopGD (void) |
Variables | |
| const PWM_INIT_TYPE | PWM_INIT [NUMBER_OF_MOTORS] |
| const PWM_VOID_VOID_TYPE | PWM_TURNONLOWSIDES [NUMBER_OF_MOTORS] |
| const PWM_LOAD_ALL_TYPE | PWM_LOADPWM [NUMBER_OF_MOTORS] |
| const PWM_DISABLE_ENABLE_TYPE | PWM_DISABLEPWM [NUMBER_OF_MOTORS] |
| const PWM_DISABLE_ENABLE_TYPE | PWM_ENABLEPWM [NUMBER_OF_MOTORS] |
| const PWM_GET_MAX_TYPE | PWM_GETMAXPWM [NUMBER_OF_MOTORS] |
Header file for PWMDriver.c.
Definition in file PWMDriver.h.
| #define IO_CONFIG_PORT | ( | port | ) |
Definition at line 30 of file PWMDriver.h.
| #define NUMBER_OF_MOTORS 1 |
Definition at line 19 of file PWMDriver.h.
| #define PWM_CONFIG_PORT | ( | port | ) |
Definition at line 22 of file PWMDriver.h.
| #define PWM_DISABLE_FUNCTIONS {PWMDriver__AllOff} |
Definition at line 42 of file PWMDriver.h.
| #define PWM_ENABLE_FUNCTIONS {PWMDriver__ConfigOutput} |
Definition at line 43 of file PWMDriver.h.
| #define PWM_GETMAXPWM_FUNCTIONS {PWMDriver__GetMaxPwm} |
Definition at line 44 of file PWMDriver.h.
| #define PWM_INITIALIZE_FUNCTIONS {PWMDriver__Initialize} |
Definition at line 39 of file PWMDriver.h.
| #define PWM_LOADALL_FUNCTIONS {PWMDriver__LoadAllPwmValues} |
Definition at line 41 of file PWMDriver.h.
| #define PWM_LOWERON_FUNCTIONS {PWMDriver__LowersOn} |
Definition at line 40 of file PWMDriver.h.
| typedef void(* CB_EVENT_TYPE) (uint32_t) |
Definition at line 65 of file PWMDriver.h.
| typedef void(* CB_TYPE) (unsigned char) |
Definition at line 66 of file PWMDriver.h.
| typedef void(* PWM_DISABLE_ENABLE_TYPE) (void) |
Definition at line 71 of file PWMDriver.h.
| typedef unsigned short int(* PWM_GET_MAX_TYPE) (void) |
Definition at line 69 of file PWMDriver.h.
| typedef void(* PWM_INIT_TYPE) (uint32_t, uint32_t dead_time_ns, CB_TYPE cb) |
Definition at line 67 of file PWMDriver.h.
| typedef void(* PWM_LOAD_ALL_TYPE) (unsigned short int, unsigned short int, unsigned short int) |
Definition at line 70 of file PWMDriver.h.
| typedef void(* PWM_VOID_VOID_TYPE) (void) |
Definition at line 68 of file PWMDriver.h.
| enum PWM_GATE_NAME_TYPE |
Definition at line 47 of file PWMDriver.h.
| void PWMDriver__AllOff | ( | void | ) |
Definition at line 228 of file PWMDriver.c.
| void PWMDriver__ConfigOutput | ( | void | ) |
Configures the PWM output pins.
Definition at line 88 of file PWMDriver.c.
| void PWMDriver__ConfigPwm | ( | uint16_t | pwm_deadtime, |
| uint16_t | ADC_Advance_Delay_Syslks | ||
| ) |
Configures the PWM output peripheral.
Definition at line 152 of file PWMDriver.c.
| void PWMDriver__ConfigShutdown | ( | void | ) |
Configures the Shutdown feature of PWM.
Definition at line 304 of file PWMDriver.c.
| uint16_t PWMDriver__GetMaxPwm | ( | void | ) |
Get the max PWM counts configured in the peripheral.
Note that this method uses a shadowed variable, which was set during the initialization of this module.
Definition at line 347 of file PWMDriver.c.
| void PWMDriver__Initialize | ( | uint32_t | pwm_frequency, |
| uint32_t | dead_time_ns, | ||
| CB_TYPE | cb | ||
| ) |
It Initializes the module PWMDriver and its variables.
| - | uint32_t pwm_threshlod |
| - | uint32_t pwm_deadtime |
| - | CB_TYPE cb |
Definition at line 63 of file PWMDriver.c.
| void PWMDriver__LowersOn | ( | void | ) |
Turn Lowers ON.
Definition at line 260 of file PWMDriver.c.
| void PWMDriver__SetPTIM | ( | void * | input | ) |
Definition at line 197 of file PWMDriver.c.
| void PWMDriver__StartTIM | ( | void | ) |
Turn All PWM Off.
Definition at line 205 of file PWMDriver.c.
| void PWMDriver__StopGD | ( | void | ) |
Definition at line 352 of file PWMDriver.c.
| void PWMDriver__StopTIM | ( | void | ) |
Turn All PWM Off.
Definition at line 216 of file PWMDriver.c.
|
extern |
Definition at line 39 of file PWMDriver.c.
|
extern |
Definition at line 40 of file PWMDriver.c.
|
extern |
Definition at line 41 of file PWMDriver.c.
|
extern |
Definition at line 36 of file PWMDriver.c.
|
extern |
Definition at line 38 of file PWMDriver.c.
|
extern |
Definition at line 37 of file PWMDriver.c.