displaytask.h
Go to the documentation of this file.
#ifndef __DISPLAYTASK_H_
#define __DISPLAYTASK_H_
#include <stdint.h>
#include "BOARD_GLCD.h"
#include "GLCD_Config.h"
enum DisplayCommand {cmd_GLCD_Initialize = 0,
cmd_GLCD_Uninitialize,
cmd_GLCD_SetForegroundColor,
cmd_GLCD_SetBackgroundColor,
cmd_GLCD_ClearScreen,
cmd_GLCD_SetFont,
cmd_GLCD_DrawPixel,
cmd_GLCD_DrawHLine,
cmd_GLCD_DrawVLine,
cmd_GLCD_DrawRectangle,
cmd_GLCD_DrawChar,
cmd_GLCD_DrawString,
cmd_GLCD_DrawBargraph,
cmd_GLCD_DrawBitmap,
cmd_GLCD_VScroll,
cmd_GLCD_FrameBufferAccess,
cmd_GLCD_FrameBufferAddress
};
struct GLCD_Param_uint32_t
{
uint32_t param0;
};
struct GLCD_Param_GLCD_FONT
{
GLCD_FONT* param0;
};
struct GLCD_Param_bool
{
bool param0;
};
struct GLCD_Param_2_uint32_t
{
uint32_t param0;
uint32_t param1;
};
struct GLCD_Param_3_uint32_t
{
uint32_t param0;
uint32_t param1;
uint32_t param2;
};
struct GLCD_Param_2_uint32_t_int32_t
{
uint32_t param0;
uint32_t param1;
int32_t param2;
};
struct GLCD_Param_2_uint32_t_char_p
{
uint32_t param0;
uint32_t param1;
char* param2; // has to casted to const later
};
struct GLCD_Param_4_uint32_t
{
uint32_t param0;
uint32_t param1;
uint32_t param2;
uint32_t param3;
};
struct GLCD_Param_5_uint32_t
{
uint32_t param0;
uint32_t param1;
uint32_t param2;
uint32_t param3;
uint32_t param4;
};
struct GLCD_Param_4_uint32_t_uint8_t_p
{
uint32_t param0;
uint32_t param1;
uint32_t param2;
uint32_t param3;
uint8_t* param4; // has to casted to const later
};
struct GLCD_Command
{
enum DisplayCommand eDisplayCommand;
union
{
struct GLCD_Param_uint32_t sparam_uint32_t;
struct GLCD_Param_GLCD_FONT sparam_GLCD_FONT;
struct GLCD_Param_bool sparam_bool;
struct GLCD_Param_2_uint32_t sparam_2_uint32_t;
struct GLCD_Param_3_uint32_t sparam_3_uint32_t;
struct GLCD_Param_2_uint32_t_int32_t sparam_2_uint32_t_int32_t;
struct GLCD_Param_2_uint32_t_char_p sparam_2_uint32_t_const_char_p;
struct GLCD_Param_4_uint32_t sparam_4_uint32_t;
struct GLCD_Param_5_uint32_t sparam_5_uint32_t;
struct GLCD_Param_4_uint32_t_uint8_t_p sparam_4_uint32_t_const_uint8_t_p;
} uparameters;
};
extern void vDisplayTask(void *pvParameters);
#endif
GLCD_Param_2_uint32_t_char_p::param1
uint32_t param1
Definition: displaytask.h:67
GLCD_Param_4_uint32_t::param1
uint32_t param1
Definition: displaytask.h:74
GLCD_Command::sparam_GLCD_FONT
struct GLCD_Param_GLCD_FONT sparam_GLCD_FONT
Definition: displaytask.h:103
GLCD_Command::sparam_4_uint32_t_const_uint8_t_p
struct GLCD_Param_4_uint32_t_uint8_t_p sparam_4_uint32_t_const_uint8_t_p
Definition: displaytask.h:111
vDisplayTask
void vDisplayTask(void *pvParameters)
Definition: displaytask.c:4
portTICK_RATE_MS
#define portTICK_RATE_MS
Definition: FreeRTOS.h:913
GLCD_Command::eDisplayCommand
enum DisplayCommand eDisplayCommand
Definition: displaytask.h:99
GLCD_Param_4_uint32_t::param0
uint32_t param0
Definition: displaytask.h:73
GLCD_Param_2_uint32_t
Definition: displaytask.h:45
GLCD_Param_4_uint32_t::param2
uint32_t param2
Definition: displaytask.h:75
GLCD_Param_3_uint32_t::param0
uint32_t param0
Definition: displaytask.h:52
xQueueReceive
BaseType_t xQueueReceive(QueueHandle_t xQueue, void *const pvBuffer, TickType_t xTicksToWait)
Definition: queue.c:1240
ES2_V4_app.h
global header file for project
GLCD_Param_5_uint32_t::param0
uint32_t param0
Definition: displaytask.h:81
GLCD_Param_5_uint32_t::param2
uint32_t param2
Definition: displaytask.h:83
GLCD_Param_2_uint32_t_char_p::param2
char * param2
Definition: displaytask.h:68
cmd_GLCD_FrameBufferAccess
@ cmd_GLCD_FrameBufferAccess
Definition: displaytask.h:24
GLCD_Param_uint32_t::param0
uint32_t param0
Definition: displaytask.h:31
GLCD_Command::sparam_2_uint32_t_int32_t
struct GLCD_Param_2_uint32_t_int32_t sparam_2_uint32_t_int32_t
Definition: displaytask.h:107
GLCD_Param_3_uint32_t::param2
uint32_t param2
Definition: displaytask.h:54
GLCD_Param_2_uint32_t::param0
uint32_t param0
Definition: displaytask.h:46
GLCD_Param_2_uint32_t::param1
uint32_t param1
Definition: displaytask.h:47
GLCD_Param_bool
Definition: displaytask.h:40
GLCD_Param_2_uint32_t_int32_t::param0
uint32_t param0
Definition: displaytask.h:59
cmd_GLCD_SetBackgroundColor
@ cmd_GLCD_SetBackgroundColor
Definition: displaytask.h:12
GLCD_Param_5_uint32_t::param3
uint32_t param3
Definition: displaytask.h:84
GLCD_Command::sparam_4_uint32_t
struct GLCD_Param_4_uint32_t sparam_4_uint32_t
Definition: displaytask.h:109
pdPASS
#define pdPASS
Definition: projdefs.h:48
GLCD_Param_2_uint32_t_int32_t::param1
uint32_t param1
Definition: displaytask.h:60
GLCD_Command::sparam_3_uint32_t
struct GLCD_Param_3_uint32_t sparam_3_uint32_t
Definition: displaytask.h:106
GLCD_Param_4_uint32_t_uint8_t_p::param1
uint32_t param1
Definition: displaytask.h:91
GLCD_Param_uint32_t
Definition: displaytask.h:30
GLCD_Param_GLCD_FONT::param0
GLCD_FONT * param0
Definition: displaytask.h:36
GLCD_Param_4_uint32_t::param3
uint32_t param3
Definition: displaytask.h:76
GLCD_Param_2_uint32_t_int32_t::param2
int32_t param2
Definition: displaytask.h:61
GLCD_Command::sparam_2_uint32_t
struct GLCD_Param_2_uint32_t sparam_2_uint32_t
Definition: displaytask.h:105
GLCD_Command::sparam_5_uint32_t
struct GLCD_Param_5_uint32_t sparam_5_uint32_t
Definition: displaytask.h:110
cmd_GLCD_SetForegroundColor
@ cmd_GLCD_SetForegroundColor
Definition: displaytask.h:11
GLCD_Command::sparam_uint32_t
struct GLCD_Param_uint32_t sparam_uint32_t
Definition: displaytask.h:102
GLCD_Command::uparameters
union GLCD_Command::@0 uparameters
GLCD_Command
Definition: displaytask.h:98
vTaskDelay
void vTaskDelay(const TickType_t xTicksToDelay) PRIVILEGED_FUNCTION
Definition: tasks.c:1287
cmd_GLCD_Initialize
@ cmd_GLCD_Initialize
Definition: displaytask.h:9
GLCD_Param_bool::param0
bool param0
Definition: displaytask.h:41
cmd_GLCD_DrawBargraph
@ cmd_GLCD_DrawBargraph
Definition: displaytask.h:21
cmd_GLCD_SetFont
@ cmd_GLCD_SetFont
Definition: displaytask.h:14
cmd_GLCD_DrawPixel
@ cmd_GLCD_DrawPixel
Definition: displaytask.h:15
cmd_GLCD_DrawBitmap
@ cmd_GLCD_DrawBitmap
Definition: displaytask.h:22
GLCD_Param_2_uint32_t_char_p::param0
uint32_t param0
Definition: displaytask.h:66
GLCD_Param_4_uint32_t
Definition: displaytask.h:72
GLCD_Command::sparam_bool
struct GLCD_Param_bool sparam_bool
Definition: displaytask.h:104
cmd_GLCD_DrawChar
@ cmd_GLCD_DrawChar
Definition: displaytask.h:19
GLCD_Param_4_uint32_t_uint8_t_p::param0
uint32_t param0
Definition: displaytask.h:90
GLCD_Command::sparam_2_uint32_t_const_char_p
struct GLCD_Param_2_uint32_t_char_p sparam_2_uint32_t_const_char_p
Definition: displaytask.h:108
GLCD_Param_4_uint32_t_uint8_t_p
Definition: displaytask.h:89
DisplayCommand
DisplayCommand
Definition: displaytask.h:9
GLCD_Param_2_uint32_t_char_p
Definition: displaytask.h:65
GLCD_Param_4_uint32_t_uint8_t_p::param2
uint32_t param2
Definition: displaytask.h:92
xQueueDisplay
void * xQueueDisplay
Definition: Globals.c:15
GLCD_Param_GLCD_FONT
Definition: displaytask.h:35
cmd_GLCD_Uninitialize
@ cmd_GLCD_Uninitialize
Definition: displaytask.h:10
GLCD_Param_4_uint32_t_uint8_t_p::param3
uint32_t param3
Definition: displaytask.h:93
GLCD_Param_5_uint32_t::param4
uint32_t param4
Definition: displaytask.h:85
GLCD_Param_3_uint32_t
Definition: displaytask.h:51
cmd_GLCD_DrawHLine
@ cmd_GLCD_DrawHLine
Definition: displaytask.h:16
GLCD_Param_2_uint32_t_int32_t
Definition: displaytask.h:58
GLCD_Param_5_uint32_t::param1
uint32_t param1
Definition: displaytask.h:82
GLCD_Param_4_uint32_t_uint8_t_p::param4
uint8_t * param4
Definition: displaytask.h:94
cmd_GLCD_DrawString
@ cmd_GLCD_DrawString
Definition: displaytask.h:20
cmd_GLCD_ClearScreen
@ cmd_GLCD_ClearScreen
Definition: displaytask.h:13
cmd_GLCD_FrameBufferAddress
@ cmd_GLCD_FrameBufferAddress
Definition: displaytask.h:25
vDisplayTask
void vDisplayTask(void *pvParameters)
Definition: displaytask.c:4
GLCD_Param_3_uint32_t::param1
uint32_t param1
Definition: displaytask.h:53
GLCD_Param_5_uint32_t
Definition: displaytask.h:80
cmd_GLCD_VScroll
@ cmd_GLCD_VScroll
Definition: displaytask.h:23
cmd_GLCD_DrawVLine
@ cmd_GLCD_DrawVLine
Definition: displaytask.h:17
cmd_GLCD_DrawRectangle
@ cmd_GLCD_DrawRectangle
Definition: displaytask.h:18