Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
drv_pwrctrl_app_TPBLPFC.h
Go to the documentation of this file.
1
30/*
31 (c) 2020 Microchip Technology Inc. and its subsidiaries. You may use this
32 software and any derivatives exclusively with Microchip products.
33
34 THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
35 EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
36 WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
37 PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
38 WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
39
40 IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
41 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
42 WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
43 BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
44 FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
45 ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
46 THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
47
48 MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE
49 TERMS.
50*/
51
52#include "../sources_common/Totempole_Application_Setup.h"
53
54
55#ifndef _DRV_PWRCTRL_APP_TPBLPFC_H
56#define _DRV_PWRCTRL_APP_TPBLPFC_H
57
58#include <xc.h>
59
60#define DCMIN (800<<1)
61#define DCMAX (19200<<1)
62
63#define FLOAT_TO_FRACT(val) (val < 0.0) ? (32768 * (val) - 0.5) : (32767 * (val) + 0.5)
64
65#define MIN_GAIN_FACTOR (uint16_t)(FLOAT_TO_FRACT(0.1))
66#define MAX_GAIN_FACTOR (uint16_t)(FLOAT_TO_FRACT(0.8))
67
68//==============================================================================
69// @brief
70//==============================================================================
71
74
75#endif /* XC_HEADER_TEMPLATE_H */
76
void Application_handler_PH2(void)
void Application_handler_PH1(void)