Microchip® Advanced Software Framework

ui.c File Reference

User Interface.

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

#include <asf.h>
#include "ui.h"
#include "ieee11073_skeleton.h"

Functions

void ui_association (bool state)
 Calls to display the new association state. More...
 
void ui_init (void)
 
void ui_powerdown (void)
 
void ui_process (uint16_t framenumber)
 This process is called each 1ms It is called only if the USB interface is enabled. More...
 
void ui_wakeup (void)
 

void ui_association ( bool  state)

Calls to display the new association state.

Parameters
statePHDC association is done, if true

References LED2_GPIO, LED_Off(), and LED_On().

Referenced by main().

void ui_init ( void  )
void ui_powerdown ( void  )

References LED0_GPIO, LED1_GPIO, LED2_GPIO, and LED_Off().

Referenced by main(), and main_suspend_action().

void ui_process ( uint16_t  framenumber)

This process is called each 1ms It is called only if the USB interface is enabled.

Parameters
framenumberCurrent frame number

References gpio_pin_is_high, GPIO_PUSH_BUTTON_1, GPIO_PUSH_BUTTON_2, ieee11073_skeleton_send_measure_1(), ieee11073_skeleton_send_measure_2(), LED0_GPIO, LED_Off(), and LED_On().

Referenced by main_sof_action().

void ui_wakeup ( void  )

References LED0_GPIO, and LED_On().

Referenced by main_resume_action().