blob: baf47f77286f8c2f6151e50c135bac417b4cb6c9 [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
Nico Huber2bbd6e72020-01-07 18:22:59 +010043 procedure VDD_Override (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020044
Nico Huber2bbd6e72020-01-07 18:22:59 +010045 procedure On (Panel : Panel_Control; Wait : Boolean := True);
Nico Huber83693c82016-10-08 22:17:55 +020046
Nico Huber2bbd6e72020-01-07 18:22:59 +010047 procedure Wait_On (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020048
Nico Huber2bbd6e72020-01-07 18:22:59 +010049 procedure Off (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020050
51 ----------------------------------------------------------------------------
52
Nico Huber2bbd6e72020-01-07 18:22:59 +010053 procedure Backlight_On (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020054
Nico Huber2bbd6e72020-01-07 18:22:59 +010055 procedure Backlight_Off (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020056
Nico Huber2bbd6e72020-01-07 18:22:59 +010057 procedure Set_Backlight (Panel : Panel_Control; Level : Word16);
Nico Huber83693c82016-10-08 22:17:55 +020058
Nico Huber2bbd6e72020-01-07 18:22:59 +010059 procedure Get_Max_Backlight (Panel : Panel_Control; Level : out Word16);
Nico Huber83693c82016-10-08 22:17:55 +020060
61end HW.GFX.GMA.Panel;