Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
vac_monitor.c File Reference

This is the driver source file for vac driver. More...

#include <stdint.h>
#include <xc.h>
#include "vac_monitor.h"
#include "vac_monitor_typedef.h"
+ Include dependency graph for vac_monitor.c:

Go to the source code of this file.

Macros

#define VACM_DC_ACCEPTANCE_THRESHOLD   (200)
 
#define VACM_DC_REJECTION_THRESHOLD   (100)
 
#define VACM_AC_DROP_VOLTAGE_THRESHOLD   (100)
 
#define VACM_AC_DROP_PERSISTANCE_COUNT   (2)
 
#define VACM_POLARITY_HYSTERESIS   (10)
 
#define VCAM_ZERO_CROSS_THRESHOLD   (50)
 
#define VCAM_STARTUP_HALF_GRID_CYCLE_COUNT   (20)
 

Functions

void vacm_state_standby (struct VACM_s *vacm_obj)
 
void vacm_state_dc_detect (struct VACM_s *vacm_obj)
 
void vacm_state_dc_mode (struct VACM_s *vacm_obj)
 
void vacm_state_wait_for_zc (struct VACM_s *vacm_obj)
 
void vacm_state_ac_sync (struct VACM_s *vacm_obj)
 
void vacm_state_online (struct VACM_s *vacm_obj)
 
void vacm_state_ac_drop (struct VACM_s *vacm_obj)
 
void vacm_vin_average (struct VACM_s *vacm_obj)
 
void vacm_polarity_update (struct VACM_s *vacm_obj)
 
void vacm_zerocross_detect (struct VACM_s *vacm_obj)
 
void vacm_vloop_feedforward_update (struct VACM_s *vacm_obj)
 
void vacm_acok_assert (struct VACM_s *vacm_obj)
 
void vacm_capture_input (struct VACM_s *vacm_obj)
 
void vacm_timebase_update (struct VACM_s *vacm_obj)
 
bool vacm_dc_input_accept (struct VACM_s *vacm_obj)
 
void vacm_uv_ov_test (struct VACM_s *vacm_obj)
 
void vacm_reset_state_machine (struct VACM_s *vacm_obj)
 
void vacm_reset_phase_monitor_object (struct VACM_s *vacm_obj)
 
void vacm_state_machine (struct VACM_s *vacm_obj)
 

Detailed Description

VAC Driver Source File

Definition in file vac_monitor.c.

Macro Definition Documentation

◆ VACM_AC_DROP_PERSISTANCE_COUNT

#define VACM_AC_DROP_PERSISTANCE_COUNT   (2)

Definition at line 48 of file vac_monitor.c.

◆ VACM_AC_DROP_VOLTAGE_THRESHOLD

#define VACM_AC_DROP_VOLTAGE_THRESHOLD   (100)

Definition at line 47 of file vac_monitor.c.

◆ VACM_DC_ACCEPTANCE_THRESHOLD

#define VACM_DC_ACCEPTANCE_THRESHOLD   (200)

Section: Included Files

Definition at line 45 of file vac_monitor.c.

◆ VACM_DC_REJECTION_THRESHOLD

#define VACM_DC_REJECTION_THRESHOLD   (100)

Definition at line 46 of file vac_monitor.c.

◆ VACM_POLARITY_HYSTERESIS

#define VACM_POLARITY_HYSTERESIS   (10)

Definition at line 49 of file vac_monitor.c.

◆ VCAM_STARTUP_HALF_GRID_CYCLE_COUNT

#define VCAM_STARTUP_HALF_GRID_CYCLE_COUNT   (20)

Definition at line 51 of file vac_monitor.c.

◆ VCAM_ZERO_CROSS_THRESHOLD

#define VCAM_ZERO_CROSS_THRESHOLD   (50)

Definition at line 50 of file vac_monitor.c.

Function Documentation

◆ vacm_acok_assert()

void vacm_acok_assert ( struct VACM_s * vacm_obj)

Definition at line 685 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_capture_input()

void vacm_capture_input ( struct VACM_s * vacm_obj)

Definition at line 725 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_dc_input_accept()

bool vacm_dc_input_accept ( struct VACM_s * vacm_obj)

Definition at line 767 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_polarity_update()

void vacm_polarity_update ( struct VACM_s * vacm_obj)

Definition at line 507 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_reset_phase_monitor_object()

void vacm_reset_phase_monitor_object ( struct VACM_s * vacm_obj)

Definition at line 85 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_reset_state_machine()

void vacm_reset_state_machine ( struct VACM_s * vacm_obj)

Definition at line 110 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_state_ac_drop()

void vacm_state_ac_drop ( struct VACM_s * vacm_obj)

Definition at line 399 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_ac_sync()

void vacm_state_ac_sync ( struct VACM_s * vacm_obj)

Definition at line 301 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_dc_detect()

void vacm_state_dc_detect ( struct VACM_s * vacm_obj)

Definition at line 203 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_dc_mode()

void vacm_state_dc_mode ( struct VACM_s * vacm_obj)

Definition at line 242 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_machine()

void vacm_state_machine ( struct VACM_s * vacm_obj)

Definition at line 125 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_online()

void vacm_state_online ( struct VACM_s * vacm_obj)

Definition at line 335 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_standby()

void vacm_state_standby ( struct VACM_s * vacm_obj)

Definition at line 174 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_state_wait_for_zc()

void vacm_state_wait_for_zc ( struct VACM_s * vacm_obj)

Definition at line 264 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_timebase_update()

void vacm_timebase_update ( struct VACM_s * vacm_obj)

Definition at line 631 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_uv_ov_test()

void vacm_uv_ov_test ( struct VACM_s * vacm_obj)

Definition at line 838 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_vin_average()

void vacm_vin_average ( struct VACM_s * vacm_obj)

Definition at line 463 of file vac_monitor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vacm_vloop_feedforward_update()

void vacm_vloop_feedforward_update ( struct VACM_s * vacm_obj)

Definition at line 608 of file vac_monitor.c.

+ Here is the caller graph for this function:

◆ vacm_zerocross_detect()

void vacm_zerocross_detect ( struct VACM_s * vacm_obj)

Definition at line 537 of file vac_monitor.c.

+ Here is the caller graph for this function: