Microchip® Advanced Software Framework

adp_window.c File Reference

ADP service implementation.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include "adp_window.h"
#include "adp.h"
#include <string.h>

Functions

static void adp_window_add_dashboard_control (void)
 Add a dashboard and add all elements to the dashboard. More...
 
static void adp_window_add_dashboard_light_sensor (void)
 Add a dashboard light sensor and add all elements to the dashboard. More...
 
static void adp_window_add_element_strem_to_control_dashboard (void)
 Add all labels to the dashboard control. More...
 
static void adp_window_add_element_strem_to_light_sensor_dashboard (void)
 Add all elements to the dashboard ligth sensor. More...
 
static void adp_window_add_label_to_control_dashboard (void)
 Add all labels to the dashboard control. More...
 
static void adp_window_add_label_to_light_sensor_dashboard (void)
 Add all labels to the dashboard light sensor. More...
 
static void adp_window_add_terminal (void)
 Config and add all new streams. More...
 
void adp_window_init (void)
 

Variables

struct adp_msg_conf_terminal terminal_config
 

static void adp_window_add_dashboard_control ( void  )
static
static void adp_window_add_dashboard_light_sensor ( void  )
static
static void adp_window_add_element_strem_to_control_dashboard ( void  )
static
static void adp_window_add_element_strem_to_light_sensor_dashboard ( void  )
static
static void adp_window_add_label_to_control_dashboard ( void  )
static
static void adp_window_add_label_to_light_sensor_dashboard ( void  )
static
static void adp_window_add_terminal ( void  )
static

Config and add all new streams.

References STREAM_ID_STATUS_MESSAGE, terminal_config, and TERMINAL_LABEL.

Referenced by adp_window_init().

struct adp_msg_conf_terminal terminal_config
Initial value:
= {
.terminal_id = 0,
.width = 80,
.height = 50,
.background_color = {ADP_COLOR_WHITE},
.foreground_color = {ADP_COLOR_GREEN}
}

Referenced by adp_window_add_terminal(), and transceive_data().