This file implements an interface between an Embedded Wizard generated UI application and a certain device. Please consider this file only as template that is intended to show the binding between an UI application and the underlying system (e.g. middleware, BSP, hardware driver, protocol, ...). More...
#include "main.h"
Go to the source code of this file.
Functions | |
void | DeviceDriver_Initialize (void) |
The function DeviceDriver_Initialize() initializes the module and prepares all necessary things to access or communicate with the real device. The function has to be called from your main module, after the initialization of your GUI application. More... | |
void | DeviceDriver_Deinitialize (void) |
The function DeviceDriver_Deinitialize() deinitializes the module and finalizes the access or communication with the real device. The function has to be called from your main module, before the GUI application will be deinitialized. More... | |
int | DeviceDriver_ProcessData (void) |
The function DeviceDriver_ProcessData() is called from the main UI loop, in order to process data and events from your particular device. This function is responisble to update properties within the device class if the corresponding state or value of the real device has changed. This function is also responsible to trigger system events if necessary. More... | |
void | DeviceDriver_SetLedStatus (XInt32 aValue) |
This is a sample for a function called from the device class, when a property has changed. As a result, the corresponding value of the real device should be changed. In this implementation simply the LED is switched on or off. More... | |
void | DeviceDriver_PrintMessage (XString aText) |
This is a sample for a function that is called directly from a 'Command' method of the device class. As a result, the corresponding action should happen. In this implementation the given message is printed via the console interface. More... | |
void | DeviceDriver_SetTime (XUInt32 aTime) |
This is a sample for a function called from the device class, when the system time (RTC time) should be changed. More... | |
XString | ReadInfo (int toRead) |
Read information. It could be radio, connection, meta or station information. More... | |
void | UpdateVolume (int volume) |
Update Volume. More... | |
XString | InitStations () |
Initialize Stations. More... | |
int | GetYCounter () |
Get the y Counter of the station grid. More... | |
int | GetXCounter () |
Get the x Counter of the station grid. More... | |
int | GetCurrentID () |
Get the ID Counter of the station grid. More... | |
void | SelectStationToPlay (XString aText) |
Print something out from the device when a station is selected. More... | |
int | getLxValue (XInt32 index) |
Get the Lx Value object. More... | |
int | getLyValue (XInt32 index) |
Get the Ly Value object. More... | |
void | FFTCalculations (XInt32 inx, XInt32 *x, XInt32 *ly, XInt32 ll, XInt32 *ry, XInt32 rr, XInt32 height, XInt32 FFTGraph) |
Calculate FFT to display the graphics. More... | |
void | VUMeter (XFloat *angle_L, XFloat *angle_R) |
Volume unit meter. More... | |
This file implements an interface between an Embedded Wizard generated UI application and a certain device. Please consider this file only as template that is intended to show the binding between an UI application and the underlying system (e.g. middleware, BSP, hardware driver, protocol, ...).
Feel free to adapt this file according your needs!
Within this sample, we demonstrate the access to the board LED and the hardware button. Furthemore, the console interface is used to print a string.