blob: 98dc93f1b9145182f9861e3943fad41092fd36f0 [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
6-- the Free Software Foundation; version 2 of the License.
7--
8-- This program is distributed in the hope that it will be useful,
9-- but WITHOUT ANY WARRANTY; without even the implied warranty of
10-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-- GNU General Public License for more details.
12--
13
14with HW.Time;
15with HW.GFX.GMA.Registers;
16
17private package HW.GFX.GMA.Panel
18with
19 Abstract_State => (Panel_State with Part_Of => GMA.State)
20is
21
22 procedure Static_Init
23 with
24 Global =>
25 (Output => Panel_State,
26 Input => Time.State);
27
28 procedure Setup_PP_Sequencer (Default_Delays : Boolean := False)
29 with
30 Global =>
31 (Input => Time.State,
32 In_Out => Registers.Register_State,
33 Output => Panel_State),
34 Depends =>
35 ((Panel_State, Registers.Register_State) =>
36 (Time.State, Registers.Register_State, Default_Delays)),
37 Pre => True,
38 Post => True;
39
40 ----------------------------------------------------------------------------
41
42 procedure VDD_Override;
43
44 procedure On (Wait : Boolean := True);
45
46 procedure Wait_On;
47
48 procedure Off;
49
50 ----------------------------------------------------------------------------
51
52 procedure Backlight_On;
53
54 procedure Backlight_Off;
55
56 procedure Set_Backlight (Level : Word16);
57
58 procedure Get_Max_Backlight (Level : out Word16);
59
60end HW.GFX.GMA.Panel;