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)
 

Variables

static bool associated = false
 

void ui_association ( bool  state)

Calls to display the new association state.

Parameters
statePHDC association is done, if true

References associated.

Referenced by main().

void ui_init ( void  )

References LED0, and LED_Off.

Referenced by main().

void ui_powerdown ( void  )

References LED0, 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 associated, GPIO_PUSH_BUTTON_0, ieee11073_skeleton_send_measure_1(), ioport_get_pin_level(), LED0, LED_Off, and LED_On.

Referenced by main_sof_action().

void ui_wakeup ( void  )

References LED0, and LED_On.

Referenced by main_resume_action().

bool associated = false
static

Referenced by ui_association(), and ui_process().