Carga Dinâmica  0.1
Sistemas de Instrumentação Electrónica
ventoinha.h File Reference

configuratoin for i2c More...

#include <stdint.h>
#include <xc.h>
#include <stdio.h>
#include "interrup.h"
#include "uart.h"
Include dependency graph for ventoinha.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OnOff   LATCbits.LATC4
 PORT 11.
 

Functions

void fanInit (void)
 this function is to initialization all fan controller
 
void fanStart (void)
 start Fan
 
uint16_t rpm ()
 stop fan
 
void fanStop (void)
 stop fan
 
uint8_t fanPWM (uint8_t duty)
 Control fan. More...
 
void debugFan ()
 function use for testing fan
 

Variables

uint16_t numberRotation
 number rotation
 
uint16_t numberRotationSec
 Rotation per seg.
 

Detailed Description

configuratoin for i2c

Function Documentation

◆ fanPWM()

uint8_t fanPWM ( uint8_t  duty)

Control fan.

Parameters
dutyduty cyle the user defines.
Returns
List (if feasible) and describe the return values of the function.
  • 1 err
  • 0 no problem