| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 1 | -- |
| 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 Huber | 125a29e | 2016-10-18 00:23:54 +0200 | [diff] [blame] | 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 8 | -- |
| 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 | |
| 15 | with HW.Time; |
| 16 | with HW.GFX.GMA.Registers; |
| 17 | |
| 18 | private package HW.GFX.GMA.Panel |
| 19 | with |
| 20 | Abstract_State => (Panel_State with Part_Of => GMA.State) |
| 21 | is |
| 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 Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 43 | procedure VDD_Override (Panel : Panel_Control); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 44 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 45 | procedure On (Panel : Panel_Control; Wait : Boolean := True); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 46 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 47 | procedure Wait_On (Panel : Panel_Control); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 48 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 49 | procedure Off (Panel : Panel_Control); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 50 | |
| 51 | ---------------------------------------------------------------------------- |
| 52 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 53 | procedure Backlight_On (Panel : Panel_Control); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 54 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 55 | procedure Backlight_Off (Panel : Panel_Control); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 56 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 57 | procedure Set_Backlight (Panel : Panel_Control; Level : Word16); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 58 | |
| Nico Huber | 2bbd6e7 | 2020-01-07 18:22:59 +0100 | [diff] [blame] | 59 | procedure Get_Max_Backlight (Panel : Panel_Control; Level : out Word16); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 60 | |
| 61 | end HW.GFX.GMA.Panel; |