Carga Dinâmica  0.1
Sistemas de Instrumentação Electrónica
power.h
Go to the documentation of this file.
1 
6 #ifndef POWER_H
7 #define POWER_H
8 
9 // ****************************************************************************
10 //includes
11 #include <stdint.h>
12 #include <xc.h>
13 #include <stdio.h>
14 
15 #include "interrup.h"
16 #include "uart.h"
17 #include "adc.h"
18 #include "confHardware.h"
19 
20 // ****************************************************************************
21 //define's
22 #define maxDutty maxPower
23 #define minDutty minPower
24 
25 uint8_t onPower ;
26 
27 //**************************************************************************
32 void powerInit(void);
33 
34 //**************************************************************************
39 void powerStart(void);
40 
41 //**************************************************************************
46 void powerStop(void);
47 
48 //**************************************************************************
62 uint8_t powerPWM(uint8_t dutyP);
63 //**************************************************************************
68 void debugPower();
69 
70 
71 
72 #endif /* POWER_H */
void powerStop(void)
stop fan
Configure uart1.
void debugPower()
function use for testing fan
void powerStart(void)
start Fan
uint8_t onPower
Power state.
Definition: power.h:25
uint8_t powerPWM(uint8_t dutyP)
Control fan.
void powerInit(void)
this function is to initialization all fan controller
configuratoin for ADC
configuratoin the define relative hardware
configuratoin for i2c