blob: b968e2998139404eb0f8f0c4c45051838727eff4 [file] [log] [blame]
Nico Huber83693c82016-10-08 22:17:55 +02001--
2-- Copyright (C) 2015-2016 secunet Security Networks AG
3--
4-- This program is free software; you can redistribute it and/or modify
5-- it under the terms of the GNU General Public License as published by
Nico Huber125a29e2016-10-18 00:23:54 +02006-- the Free Software Foundation; either version 2 of the License, or
7-- (at your option) any later version.
Nico Huber83693c82016-10-08 22:17:55 +02008--
9-- This program is distributed in the hope that it will be useful,
10-- but WITHOUT ANY WARRANTY; without even the implied warranty of
11-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-- GNU General Public License for more details.
13--
14
15with HW.Time;
16with HW.GFX.GMA.Registers;
17
18private package HW.GFX.GMA.Panel
19with
20 Abstract_State => (Panel_State with Part_Of => GMA.State)
21is
22
23 procedure Static_Init
24 with
25 Global =>
26 (Output => Panel_State,
27 Input => Time.State);
28
29 procedure Setup_PP_Sequencer (Default_Delays : Boolean := False)
30 with
31 Global =>
32 (Input => Time.State,
33 In_Out => Registers.Register_State,
34 Output => Panel_State),
35 Depends =>
36 ((Panel_State, Registers.Register_State) =>
37 (Time.State, Registers.Register_State, Default_Delays)),
38 Pre => True,
39 Post => True;
40
41 ----------------------------------------------------------------------------
42
43 procedure VDD_Override;
44
45 procedure On (Wait : Boolean := True);
46
47 procedure Wait_On;
48
49 procedure Off;
50
51 ----------------------------------------------------------------------------
52
53 procedure Backlight_On;
54
55 procedure Backlight_Off;
56
57 procedure Set_Backlight (Level : Word16);
58
59 procedure Get_Max_Backlight (Level : out Word16);
60
61end HW.GFX.GMA.Panel;