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"
Go to the source code of this file.
VAC Driver Source File
Definition in file vac_monitor.c.
◆ VACM_AC_DROP_PERSISTANCE_COUNT
#define VACM_AC_DROP_PERSISTANCE_COUNT (2) |
◆ VACM_AC_DROP_VOLTAGE_THRESHOLD
#define VACM_AC_DROP_VOLTAGE_THRESHOLD (100) |
◆ VACM_DC_ACCEPTANCE_THRESHOLD
#define VACM_DC_ACCEPTANCE_THRESHOLD (200) |
◆ VACM_DC_REJECTION_THRESHOLD
#define VACM_DC_REJECTION_THRESHOLD (100) |
◆ VACM_POLARITY_HYSTERESIS
#define VACM_POLARITY_HYSTERESIS (10) |
◆ VCAM_STARTUP_HALF_GRID_CYCLE_COUNT
#define VCAM_STARTUP_HALF_GRID_CYCLE_COUNT (20) |
◆ VCAM_ZERO_CROSS_THRESHOLD
#define VCAM_ZERO_CROSS_THRESHOLD (50) |
◆ vacm_acok_assert()
void vacm_acok_assert |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_capture_input()
void vacm_capture_input |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_dc_input_accept()
bool vacm_dc_input_accept |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_polarity_update()
void vacm_polarity_update |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_reset_phase_monitor_object()
void vacm_reset_phase_monitor_object |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_reset_state_machine()
void vacm_reset_state_machine |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_ac_drop()
void vacm_state_ac_drop |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_ac_sync()
void vacm_state_ac_sync |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_dc_detect()
void vacm_state_dc_detect |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_dc_mode()
void vacm_state_dc_mode |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_machine()
void vacm_state_machine |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_online()
void vacm_state_online |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_standby()
void vacm_state_standby |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_state_wait_for_zc()
void vacm_state_wait_for_zc |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_timebase_update()
void vacm_timebase_update |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_uv_ov_test()
void vacm_uv_ov_test |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_vin_average()
void vacm_vin_average |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_vloop_feedforward_update()
void vacm_vloop_feedforward_update |
( |
struct VACM_s * | vacm_obj | ) |
|
◆ vacm_zerocross_detect()
void vacm_zerocross_detect |
( |
struct VACM_s * | vacm_obj | ) |
|