Project

General

Profile

Statistics
| Branch: | Revision:

pse-2015-16-grupo-3 / tpf / display.h @ 6d70682c

History | View | Annotate | Download (1.31 KB)

1
#ifndef DISPLAY_H_
2
#define DISPLAY_H_
3

    
4
#include <stdint.h>
5
#include <stdlib.h>
6
#include <stdio.h>
7
#include "config.h"
8
#include "tempo.h"
9

    
10

    
11

    
12
/**
13
*        \brief Displays the values received, in this case, the time,power and if needed a message 
14
*        
15
*        \param send a time as a pse_time_t, a uint8_t power and a message. If there is no need for a message, send a null char[]. The fuction returns 0 if success or !=0 if something failed
16
*/
17
uint8_t setDisplay(pse_time_t clock, uint16_t power, char* message);
18

    
19
/**
20
*        \brief Limpa o display
21
*
22
 *      \param returns 0 if sucess and !=0 if something failed
23
*/
24
uint8_t clearDisplay();
25

    
26

    
27
/**
28
 * @brief method used by tempo module to set time to show on LCD
29
 * @param clock time(hh:mm:ss) to set
30
 * @return  0 if sucess
31
 *          !0 if fail
32
 */
33
uint8_t setDisplayTime(pse_time_t clock);
34

    
35
/**
36
 * @brief method used by power module to set power(Watts) to show on LCD
37
 * @param power power to show (150, 350, 500, 750)
38
 * @return  0 if sucess
39
 *          !0 if fail
40
 */
41
uint8_t setDisplayPower(uint16_t power);
42

    
43

    
44
/**
45
 * @brief print values on the LCD display
46
 * @return  0 if sucess
47
 *          !0 if fail
48
 */
49
uint8_t showDisplay();
50

    
51
/**
52
 * method used on main module to initiate display activity
53
 * @return  0 if sucess
54
 *          !0 if fail
55
 */
56
uint8_t initDisplay();
57
        
58
        
59
#endif /* DISPLAY_H_ */