BeRTOS
|
Phase control driver (implementation) More...
#include "hw/hw_phase.h"
#include <cfg/macros.h>
#include <cfg/compiler.h>
#include <cpu/irq.h>
#include <cpu/types.h>
#include <drv/timer.h>
#include <drv/phase.h>
#include <math.h>
Go to the source code of this file.
Functions | |
DEFINE_ZEROCROSS_ISR () | |
Zerocross interrupt, call when 220V cross zero. | |
void | phase_setDuty (TriacDev dev, triac_duty_t duty) |
Set duty of the triac channel dev (interrupt safe). | |
void | phase_setDutyUnlock (TriacDev dev, triac_duty_t duty) |
Set duty of the triac channel dev (NOT INTERRUPT SAFE). | |
void | phase_setPower (TriacDev dev, triac_power_t power) |
Set power of the triac channel dev (interrupt safe). | |
static void | phase_softint (void *_dev) |
Soft int for each _dev triac. | |
void | phase_init (void) |
Initialize phase control driver. | |
Variables | |
static Triac | triacs [TRIAC_CNT] |
Array of triacs. |
Phase control driver (implementation)
Definition in file phase.c.
DEFINE_ZEROCROSS_ISR | ( | ) |
void phase_setPower | ( | TriacDev | dev, |
triac_power_t | power | ||
) |