blob: 7d69e562b8b1b2d389e492a4cf53c22a7b8979b2 [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 =>
Nico Huber5dbaf4b2020-01-08 17:24:58 +010032 (In_Out => (Panel_State, Registers.Register_State)),
Nico Huber83693c82016-10-08 22:17:55 +020033 Depends =>
34 ((Panel_State, Registers.Register_State) =>
Nico Huber5dbaf4b2020-01-08 17:24:58 +010035 (Panel_State, Registers.Register_State, Default_Delays));
Nico Huber83693c82016-10-08 22:17:55 +020036
37 ----------------------------------------------------------------------------
38
Nico Huber2bbd6e72020-01-07 18:22:59 +010039 procedure VDD_Override (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020040
Nico Huber2bbd6e72020-01-07 18:22:59 +010041 procedure On (Panel : Panel_Control; Wait : Boolean := True);
Nico Huber83693c82016-10-08 22:17:55 +020042
Nico Huber2bbd6e72020-01-07 18:22:59 +010043 procedure Wait_On (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020044
Nico Huber2bbd6e72020-01-07 18:22:59 +010045 procedure Off (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020046
47 ----------------------------------------------------------------------------
48
Nico Huber2bbd6e72020-01-07 18:22:59 +010049 procedure Backlight_On (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020050
Nico Huber2bbd6e72020-01-07 18:22:59 +010051 procedure Backlight_Off (Panel : Panel_Control);
Nico Huber83693c82016-10-08 22:17:55 +020052
Nico Huber1f63d512020-01-08 14:10:40 +010053 procedure Set_Backlight (Panel : Panel_Control; Level : Word32);
Nico Huber83693c82016-10-08 22:17:55 +020054
Nico Huber1f63d512020-01-08 14:10:40 +010055 procedure Get_Max_Backlight (Panel : Panel_Control; Level : out Word32);
Nico Huber83693c82016-10-08 22:17:55 +020056
57end HW.GFX.GMA.Panel;