Carga Dinâmica  0.1
Sistemas de Instrumentação Electrónica
ventoinha.h
Go to the documentation of this file.
1 
6 #ifndef VENTOINHA_H
7 #define VENTOINHA_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 
18 // ****************************************************************************
19 //define's
20 #define OnOff LATCbits.LATC4
21 
22 
23 uint16_t numberRotation;
24 uint16_t numberRotationSec ;
25 
26 
27 //**************************************************************************
32 void fanInit(void);
33 
34 //**************************************************************************
39 void fanStart(void);
40 
41 
42 
43 //**************************************************************************
48 uint16_t rpm();
49 
50 //**************************************************************************
55 void fanStop(void);
56 //**************************************************************************
70 uint8_t fanPWM(uint8_t duty);
71 
72 
73 //**************************************************************************
78 void debugFan();
79 
80 
81 
82 #endif /* VENTOINHA_H */
83 
Configure uart1.
uint16_t numberRotationSec
Rotation per seg.
Definition: ventoinha.h:24
uint16_t rpm()
stop fan
void debugFan()
function use for testing fan
uint8_t fanPWM(uint8_t duty)
Control fan.
void fanStart(void)
start Fan
configuratoin for i2c
uint16_t numberRotation
number rotation
Definition: ventoinha.h:23
void fanInit(void)
this function is to initialization all fan controller
void fanStop(void)
stop fan