Digital Power Starter Kit 3 Firmware
dsPIC33C Boost Converter Voltage Mode Control Example
app_lcd.h
1 /* Microchip Technology Inc. and its subsidiaries. You may use this software
2  * and any derivatives exclusively with Microchip products.
3  *
4  * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
5  * EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
6  * WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
7  * PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
8  * WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
9  *
10  * IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
11  * INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
12  * WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
13  * BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
14  * FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS
15  * IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF
16  * ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
17  *
18  * MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE
19  * TERMS.
20  */
21 
22 /*
23  * File: app_lcd.h
24  * Author: M91406
25  * Comments: LCD application layer
26  * Revision history:
27  */
28 
29 // This is a guard condition so that contents of this file are not included
30 // more than once.
31 #ifndef APPLICATION_LAYER_LC_DISPLAY_H
32 #define APPLICATION_LAYER_LC_DISPLAY_H
33 
34 #include <xc.h> // include processor files - each processor file is guarded.
35 #include <stdint.h> // include standard integer data types
36 #include <stdbool.h> // include standard boolean data types
37 #include <stddef.h> // include standard definition data types
38 
39 #include "lcd/devices/dev_lcd.h"
40 
41 
42 // PUBLIC TYPE DECLARATIONS
43 
44 /***********************************************************************************
45  * @ingroup app-layer-lcd-properties-public
46  * @struct LCD_s
47  * @brief Declaration of public LC display data object
48  * @details
49  * The struct LCD_s data structure defines data fields for all publicly
50  * accessible user settings required to configure and drive an on-board LC
51  * display.
52  **********************************************************************************/
53 
54 typedef struct LCD_s{
55  volatile bool enabled;
56  volatile uint16_t refresh;
57  volatile uint16_t screen;
58  volatile uint16_t screens;
59 }LCD_t;
60 
61 
62 
63 // PUBLIC VARIABLE DECLARATION
64 extern volatile LCD_t lcd;
65 
66 // PUBLIC FUNCTION PROTOTYPE DECLARATION
67 extern volatile uint16_t appLCD_Initialize(void);
68 extern volatile uint16_t appLCD_Execute(void);
69 extern volatile uint16_t appLCD_Start(void);
70 extern volatile uint16_t appLCD_Dispose(void);
71 
72 #endif /* APPLICATION_LAYER_LC_DISPLAY_H */
73 
volatile uint16_t screens
Definition: app_lcd.h:58
Definition: app_lcd.h:54
volatile uint16_t screen
Definition: app_lcd.h:57
volatile bool enabled
Definition: app_lcd.h:55
volatile uint16_t refresh
Definition: app_lcd.h:56