24#include <p33CK256MP506.h>
25#include "input_capture/sccp2.h"
29#include "dev_vin_isolated.h"
30#include "dev_fault_common.h"
31#include "pwrctrl/dev_pwrctrl_typedef.h"
45void Dev_VinIsolated_Initialize(
void)
47 CCP2CON1Hbits.RTRGEN = 1;
48 DMA_SourceAddressSet(DMA_CHANNEL_2, (uint16_t)&CCP2BUFL);
49 DMA_DestinationAddressSet(DMA_CHANNEL_2, (uint16_t)&
dab.Adc.VInputVoltage);
52 #if(FAULT_VIN_UV == true)
56 UV_LOWER_THRESHOLD_WITH_HYST,
57 FAULT_PERSISTENCE_COUNT,
58 FAULT_PERSISTENCE_COUNT
62 #if(FAULT_VIN_OV == true)
66 OV_UPPER_THRESHOLD_WITH_HYST,
67 FAULT_PERSISTENCE_COUNT,
68 FAULT_PERSISTENCE_COUNT );
POWER_CONTROL_t dab
Global data object for a DAB Converter.
void FAULT_Init(FAULT_OBJ_T *faultInput, int16_t threshold, int16_t hysLimit, uint16_t thresholdCnt, uint32_t hysCnt)
This function initializes the fault object data structure with the values that required to detect a f...
The Fault object data structure contains a list of elements/variables that are used to detect/check a...
Power control API structure.