14 #include "lcd/app_lcd.h" 17 #include "config/apps.h" 18 #include "config/hal.h" 22 volatile struct LCD_s lcd;
40 volatile uint16_t lcd_cnt = 0;
52 #define LCD_STARTUP 14 77 #define LCD_NO_OF_SCREENS 4 93 volatile uint16_t appLCD_Initialize(
void)
95 volatile uint16_t retval = 1;
100 lcd.
screens = LCD_NO_OF_SCREENS;
102 dev_Lcd_Initialize();
103 PrintLcd(0,
"%s", FIRMWARE_TITLE);
104 PrintLcd(1,
"%s", FIRMWARE_NAME);
125 volatile uint16_t appLCD_Execute(
void)
127 volatile uint16_t retval = 1;
128 volatile float vi=0.0, vo=0.0, isns=0.0, temp=0.0;
141 vi = (float)(
int)(100.0 * vi);
145 if((
double)vi < 10.000)
146 PrintLcd(0,
"VIN = %2.2f V", (
double)vi);
148 PrintLcd(0,
"VIN = %2.1f V", (
double)vi);
155 temp = (float)(
int)(100.0 * temp);
158 if((
double)temp < 10.000)
159 PrintLcd(1,
"TEMP = %2.2f C", (
double)temp);
161 PrintLcd(1,
"TEMP = %2.1f C", (
double)temp);
168 if((
double)isns < 1.000)
171 PrintLcd(1,
"ISNS = %3d mA", (
int)isns);
175 PrintLcd(1,
"ISNS = %1.2f A", (
double)isns);
180 PrintLcd(1,
"FW: v%s", FIRMWARE_VERSION_STRING);
187 if((
double)vo < 10.000)
188 PrintLcd(1,
"VOUT = %2.2f V", (
double)vo);
190 PrintLcd(1,
"VOUT = %2.1f V", (
double)vo);
199 dev_Lcd_WriteStringXY(4, 1,
"(UV)");
201 dev_Lcd_WriteStringXY(4, 1,
"(OV)");
203 dev_Lcd_WriteStringXY(4, 1,
"(RE)");
205 dev_Lcd_WriteStringXY(4, 1,
"(OC)");
207 dev_Lcd_WriteStringXY(4, 1,
"(LA)");
233 volatile uint16_t appLCD_Start(
void)
235 volatile uint16_t retval = 1;
238 retval &= (uint16_t)(lcd.
enabled);
256 volatile uint16_t appLCD_Dispose(
void)
258 volatile uint16_t retval = 1;
volatile uint16_t screens
volatile bool fault_active
Bit #5: Flag bit indicating system is in enforced shut down mode (usually due to a fault condition)
volatile struct FLT_OBJECT_STATUS_s Status
Status word of this fault object.
#define ADC_GRANULARITY
ADC granularity in [V/tick].
volatile uint16_t temp
BOOST board temperature.
volatile uint16_t v_in
BOOST input voltage.
#define TEMP_FB_ZERO
Conversion macros of temperature feedback parameters.
volatile uint16_t refresh
volatile uint16_t i_out
BOOST common output current.
volatile struct BOOST_CONVERTER_DATA_s data
BOOST runtime data.
volatile bool FaultStatus
Bit 0: Flag bit indicating if FAULT has been tripped.
volatile uint16_t v_out
BOOST output voltage.
volatile struct BOOST_CONVERTER_STATUS_s status
BOOST operation status bits.