-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdrvDisp7seg.h
34 lines (29 loc) · 1.29 KB
/
drvDisp7seg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// -----------------------------------------------------------------------
// drvDisp7seg.h -> header das definições dos displays de 7 segmentos
// Autor: Lucas Carvalho de Sousa
// lucas.c.s at unifei.edu.br
// -----------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// -----------------------------------------------------------------------
#ifndef Disp7seg_H
#define Disp7seg_H
#include "kernel.h"
#include "ddCtr_types.h"
//apenas retorna o "objeto" do driver
driver* getDisp7segDriver(void);
// define os identificadores das funções do driver
enum {
DISP7SEG_INTEGER,
DISP7SEG_ON,
DISP7SEG_END
} ;
// função de atualização de valor mostrado no display de 7 segmentos
char atualizaDisplay(void) ;
#endif