WebRadioApp  0.1
DeviceDriver.h
Go to the documentation of this file.
1 
36 #ifndef DEVICEDRIVER_H
37 #define DEVICEDRIVER_H
38 
39 #include "main.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 void DeviceDriver_Initialize(void);
45 void DeviceDriver_Deinitialize(void);
46 int DeviceDriver_ProcessData(void);
49 void DeviceDriver_SetTime(XUInt32 aTime);
50 XString ReadInfo(int toRead);
51 void UpdateVolume(int volume);
53 int GetYCounter();
54 int GetXCounter();
55 int GetCurrentID();
56 void SelectStationToPlay(XString aText);
57 int getLxValue(XInt32 index);
58 int getLyValue(XInt32 index);
59 void FFTCalculations(XInt32 inx, XInt32 *x, XInt32 *ly, XInt32 ll, XInt32 *ry,
60  XInt32 rr, XInt32 height, XInt32 FFTGraph);
61 void VUMeter(XFloat *angle_L, XFloat *angle_R);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* DEVICEDRIVER_H */
68 
69 /* msy */
70 
Meta
@ Meta
Definition: DeviceDriver.cpp:111
HardButtonIsrCallback
void HardButtonIsrCallback(int aButtonPresssed)
Callback function for the hardware button. This function is called every time the hardware button is ...
Definition: DeviceDriver.cpp:143
SelectStationToPlay
void SelectStationToPlay(XString aText)
Print something out from the device when a station is selected.
Definition: DeviceDriver.cpp:626
VUMeter
void VUMeter(XFloat *angle_L, XFloat *angle_R)
Volume unit meter.
Definition: DeviceDriver.cpp:614
ew_bsp_inout.h
GetXCounter
int GetXCounter()
Get the x Counter of the station grid.
Definition: DeviceDriver.cpp:528
ewrte.h
ReadInfo
XString ReadInfo(int toRead)
Read information. It could be radio, connection, meta or station information.
Definition: DeviceDriver.cpp:446
Mp3Player::drawVuMeter
void drawVuMeter(float *angle_L, float *angle_R)
This function generate the parameters to be able to draw a volume unit meter graph.
Definition: mp3player.cpp:647
station_id
int16_t station_id
Definition: tcp_client.cpp:46
mp3PlayerInstance
Mp3Player * mp3PlayerInstance
Definition: mp3player.cpp:84
Connection
@ Connection
Definition: DeviceDriver.cpp:111
EwBspClockSetTime
void EwBspClockSetTime(unsigned long aTime)
Sets the given time in seconds since 01.01.1970 at real time clock (RTC).
Definition: ew_bsp_clock.c:303
items
volatile int items
Definition: tcp_client.cpp:72
EwNewStringAnsi
XString EwNewStringAnsi(register const char *aAnsi)
yCounter
int yCounter
Definition: DeviceDriver.cpp:85
DeviceDriver_ProcessData
int DeviceDriver_ProcessData(void)
The function DeviceDriver_ProcessData() is called from the main UI loop, in order to process data and...
Definition: DeviceDriver.cpp:253
ApplicationDeviceClass__UpdateConnectionInfo
void ApplicationDeviceClass__UpdateConnectionInfo(void *_this)
Definition: Application.c:503
ApplicationDeviceClass__UpdateFFTDraw
void ApplicationDeviceClass__UpdateFFTDraw(void *_this)
Definition: Application.c:602
GetYCounter
int GetYCounter()
Get the y Counter of the station grid.
Definition: DeviceDriver.cpp:539
EwStringParseInt32
XInt32 EwStringParseInt32(XString aString, XInt32 aDefault, XInt32 aRadix)
Num_Fields_X
#define Num_Fields_X
Definition: DeviceDriver.cpp:102
Cells::value
int value
Definition: DeviceDriver.cpp:106
ApplicationDeviceClass__UpdateBufferValue
void ApplicationDeviceClass__UpdateBufferValue(void *_this, XInt32 aNewValue)
Definition: Application.c:459
Mp3Player::drawFTT
void drawFTT(int32_t inx, int32_t *x, int32_t *ly, int32_t ll, int32_t *ry, int32_t rr, int32_t height, int32_t FFTGraph)
This function generate the parameters to be able to draw a FFT graph.
Definition: mp3player.cpp:595
mp3player.h
Mp3 Player.
Cell
struct Cells Cell
initGrid
int initGrid
Definition: DeviceDriver.cpp:86
FFTCalculations
void FFTCalculations(XInt32 inx, XInt32 *x, XInt32 *ly, XInt32 ll, XInt32 *ry, XInt32 rr, XInt32 height, XInt32 FFTGraph)
Calculate FFT to display the graphics.
Definition: DeviceDriver.cpp:598
Num_Fields_Y
#define Num_Fields_Y
Definition: DeviceDriver.cpp:103
DeviceDriver_SetLedStatus
void DeviceDriver_SetLedStatus(XInt32 aValue)
This is a sample for a function called from the device class, when a property has changed....
Definition: DeviceDriver.cpp:374
ApplicationDeviceClass__UpdateMetaInfo
void ApplicationDeviceClass__UpdateMetaInfo(void *_this)
Definition: Application.c:624
EwBspInOutLedOff
void EwBspInOutLedOff(void)
Switch LED off.
Definition: ew_bsp_inout.c:95
metaInfo
char metaInfo[240]
Definition: DeviceDriver.cpp:75
EwNewStringUtf8
XString EwNewStringUtf8(const unsigned char *aUtf8, int aCount)
XInt32
signed long XInt32
Definition: ewrte.h:1586
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
EwBspInOutInitLed
void EwBspInOutInitLed(void)
Configures one LED of the board used for demo applications.
Definition: ew_bsp_inout.c:75
EwBspInOutLedOn
void EwBspInOutLedOn(void)
Switch LED on.
Definition: ew_bsp_inout.c:85
DeviceDriver_Initialize
void DeviceDriver_Initialize(void)
The function DeviceDriver_Initialize() initializes the module and prepares all necessary things to ac...
Definition: DeviceDriver.cpp:168
ApplicationDeviceClass__UpdateStationInfo
void ApplicationDeviceClass__UpdateStationInfo(void *_this)
Definition: Application.c:525
metainfo_present_LCD
volatile uint8_t metainfo_present_LCD
Definition: tcp_client.cpp:50
UpdateVolume
void UpdateVolume(int volume)
Update Volume.
Definition: DeviceDriver.cpp:477
EwPrint
void EwPrint(const char *aFormat,...)
ew_bsp_clock.h
InitStations
XString InitStations()
Initialize Stations.
Definition: DeviceDriver.cpp:489
connectionInfo
char connectionInfo[240]
Definition: DeviceDriver.cpp:74
ApplicationDeviceClass__InitRadioStations
void ApplicationDeviceClass__InitRadioStations(void *_this)
Definition: Application.c:577
radioInfo
char radioInfo[240]
Definition: tcp_client.cpp:35
DeviceDriver_Deinitialize
void DeviceDriver_Deinitialize(void)
The function DeviceDriver_Deinitialize() deinitializes the module and finalizes the access or communi...
Definition: DeviceDriver.cpp:218
matrixStations
Cell matrixStations[Num_Fields_X][Num_Fields_Y]
Definition: DeviceDriver.cpp:110
Application.h
DeviceDriver.h
This file implements an interface between an Embedded Wizard generated UI application and a certain d...
stationInfo
char stationInfo[160]
Definition: DeviceDriver.cpp:74
info
info
Definition: DeviceDriver.cpp:111
Radio
Radio Object.
Definition: radio.h:47
currentVolume
int currentVolume
Definition: mp3player.cpp:32
XFloat
float XFloat
Definition: ewrte.h:1595
ApplicationDeviceClass__TriggerHardButtonEvent
void ApplicationDeviceClass__TriggerHardButtonEvent(void *_this)
Definition: Application.c:429
xCounter
int xCounter
Definition: DeviceDriver.cpp:85
Stationlist
static Station Stationlist[MaxStation]
Definition: stations.h:48
Cells::text
char text[10]
Definition: DeviceDriver.cpp:107
GetCurrentID
int GetCurrentID()
Get the ID Counter of the station grid.
Definition: DeviceDriver.cpp:550
getLxValue
int getLxValue(XInt32 index)
Get the Lx Value object.
Definition: DeviceDriver.cpp:563
EwGetAutoObject
XObject EwGetAutoObject(const XVariant *aAutoObject, const void *aClass)
XUInt32
unsigned long XUInt32
Definition: ewrte.h:1590
stations.h
Stations.
currentID
int currentID
Definition: DeviceDriver.cpp:85
Mp3Player::getEtherAndBuffer
void getEtherAndBuffer(void)
It handles the LwIP process and the buffer process.
Definition: mp3player.cpp:705
XString
XChar * XString
Definition: ewrte.h:1656
getLyValue
int getLyValue(XInt32 index)
Get the Ly Value object.
Definition: DeviceDriver.cpp:575
DeviceDriver_SetTime
void DeviceDriver_SetTime(XUInt32 aTime)
This is a sample for a function called from the device class, when the system time (RTC time) should ...
Definition: DeviceDriver.cpp:419
EwBspInOutInitButton
void EwBspInOutInitButton(TButtonCallback aButtonCallback)
Configures one hardware button of the board used for demo applications.
Definition: ew_bsp_inout.c:50
Mp3Player
Mp3Player Object.
Definition: mp3player.h:59
EwUnlockObject
void EwUnlockObject(register XObject aObject)
ApplicationDeviceClass__UpdateRadioInfo
void ApplicationDeviceClass__UpdateRadioInfo(void *_this)
Definition: Application.c:481
StationInfo
@ StationInfo
Definition: DeviceDriver.cpp:111
ApplicationDeviceClass__UpdateVUMeterDraw
void ApplicationDeviceClass__UpdateVUMeterDraw(void *_this)
Definition: Application.c:639
Cells
Definition: DeviceDriver.cpp:105
EwLockObject
void EwLockObject(register XObject aObject)
Radio
@ Radio
Definition: DeviceDriver.cpp:111
DeviceDriver_PrintMessage
void DeviceDriver_PrintMessage(XString aText)
This is a sample for a function that is called directly from a 'Command' method of the device class....
Definition: DeviceDriver.cpp:405