phase.c File Reference
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. | |
Detailed Description
Phase control driver (implementation).
- Version:
- Id
- phase.c 2564 2009-04-20 09:51:04Z batt
Definition in file phase.c.
Function Documentation
| DEFINE_ZEROCROSS_ISR | ( | ) |
| void phase_setPower | ( | TriacDev | dev, | |
| triac_power_t | power | |||
| ) |
| static void phase_softint | ( | void * | _dev | ) | [static] |
