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

configuratoin for i2c More...

#include <stdint.h>
#include <xc.h>
#include <stdio.h>
#include "interrup.h"
#include "uart.h"
#include "adc.h"
#include "confHardware.h"
Include dependency graph for power.h:

Go to the source code of this file.

Macros

#define maxDutty   maxPower
 max for bord not send
 
#define minDutty   minPower
 nim for mosfet start work
 

Functions

void powerInit (void)
 this function is to initialization all fan controller
 
void powerStart (void)
 start Fan
 
void powerStop (void)
 stop fan
 
uint8_t powerPWM (uint8_t dutyP)
 Control fan. More...
 
void debugPower ()
 function use for testing fan
 

Variables

uint8_t onPower
 Power state.
 

Detailed Description

configuratoin for i2c

Function Documentation

◆ powerPWM()

uint8_t powerPWM ( uint8_t  dutyP)

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