This is the driver header file for the power controller app. More...
#include "../sources_common/Totempole_Application_Setup.h"
#include <xc.h>
Go to the source code of this file.
Macros | |
#define | DCMIN (800<<1) |
#define | DCMAX (19200<<1) |
#define | FLOAT_TO_FRACT(val) (val < 0.0) ? (32768 * (val) - 0.5) : (32767 * (val) + 0.5) |
#define | MIN_GAIN_FACTOR (uint16_t)(FLOAT_TO_FRACT(0.1)) |
#define | MAX_GAIN_FACTOR (uint16_t)(FLOAT_TO_FRACT(0.8)) |
Functions | |
void | Application_handler_PH1 (void) |
void | Application_handler_PH2 (void) |
Power Controller Typedef File
Definition in file drv_pwrctrl_app_TPBLPFC.h.
#define DCMAX (19200<<1) |
Definition at line 61 of file drv_pwrctrl_app_TPBLPFC.h.
#define DCMIN (800<<1) |
@Company Microchip Technology Inc.
@File Name drv_pwrctrl_app_TPBLPFC.h
@Summary This is the generated driver implementation file using PIC24 / dsPIC33 / PIC32MM MCUs
@Description This source file provides Controller settings for average current mode and voltage mode controller. Generation Information : Product Revision : PIC24 / dsPIC33 / PIC32MM MCUs - 1.167.0 Device : dsPIC33CK256MP506
The generated drivers are tested against the following: Compiler : XC16 v1.70 MPLAB : MPLAB X v5.45
Definition at line 60 of file drv_pwrctrl_app_TPBLPFC.h.
#define FLOAT_TO_FRACT | ( | val | ) | (val < 0.0) ? (32768 * (val) - 0.5) : (32767 * (val) + 0.5) |
Definition at line 63 of file drv_pwrctrl_app_TPBLPFC.h.
#define MAX_GAIN_FACTOR (uint16_t)(FLOAT_TO_FRACT(0.8)) |
Definition at line 66 of file drv_pwrctrl_app_TPBLPFC.h.
#define MIN_GAIN_FACTOR (uint16_t)(FLOAT_TO_FRACT(0.1)) |
Definition at line 65 of file drv_pwrctrl_app_TPBLPFC.h.
void Application_handler_PH1 | ( | void | ) |
Definition at line 74 of file drv_pwrctrl_app_TPBLPFC.c.
void Application_handler_PH2 | ( | void | ) |
Definition at line 95 of file drv_pwrctrl_app_TPBLPFC.c.