Common functions. More...
Go to the source code of this file.
Functions | |
void | Setup_Precision (uint32_t format) |
Setup vertex format and precision. | |
bool | cbCmdWait (struct EVE_HalContext *phost) |
Callback function. | |
void | Init_CapacitiveTouch (EVE_HalContext *phost) |
Capacitive Touch initialzation. | |
void | Gpu_Init (EVE_HalContext *phost) |
EVE initialzation. | |
void | Gpu_Release (EVE_HalContext *phost) |
uint32_t | Get_SystemClock (EVE_HalContext *phost) |
Get system frequency in Hz. | |
uint32_t | Draw_Point (EVE_HalContext *phost, uint32_t Rx, uint32_t Ry, uint32_t R) |
Helper function to draw a point. | |
uint32_t | Draw_Image (EVE_HalContext *phost, const char *filePath, uint32_t format) |
void | Calibration_Restore (EVE_HalContext *phost) |
void | Calibration_Save (EVE_HalContext *phost) |
void | Display_StartColor (EVE_HalContext *phost, uint8_t *bgColor, uint8_t *textColor) |
void | Display_Start (EVE_HalContext *phost) |
void | Display_End (EVE_HalContext *phost) |
static void | Gpu_Text (EVE_HalContext *phost, const char8_t *str, uint8_t *bgColor, uint8_t *textColor) |
void | Draw_TextColor (EVE_HalContext *phost, const char8_t *str, uint8_t *bgColor, uint8_t *textColor) |
void | Draw_Text (EVE_HalContext *phost, const char8_t *str) |
void | Draw_Text2 (EVE_HalContext *phost, const char8_t *str, int ms) |
void | Play_MuteSound (EVE_HalContext *phost) |
void | Get_VC1Dump (EVE_HalContext *phost, const char *filename) |
void | Play_Sound (EVE_HalContext *phost, uint8_t sound, uint8_t vol, uint8_t midi) |
uint8_t | isSDcardDetected () |
void | hintScreen (EVE_HalContext *phost, const uint8_t *msg) |
void | Flash_Init (EVE_HalContext *phost, const uint8_t *filePath, const uint8_t *fileName) |
void | Show_Diaglog_Info (EVE_HalContext *phost, const uint8_t *msg) |
uint8_t | Show_Diaglog_YesNo (EVE_HalContext *phost, const uint8_t *title, const uint8_t *msg) |
void | WelcomeScreen (Gpu_Hal_Context_t *phost, char *info[]) |
Variables | |
char | textbuffer [1000] |
static uint32_t | a |
static uint32_t | b |
static uint32_t | c |
static uint32_t | d |
static uint32_t | e |
static uint32_t | f |
uint32_t | VertextFormat |
uint32_t | VertextPrecision |
PROGMEM prog_uchar8_t | home_start_icon [] = {0x78,0x9C,0xE5,0x94,0xBF,0x4E,0xC2,0x40,0x1C,0xC7,0x7F,0x2D,0x04,0x8B,0x20,0x45,0x76,0x14,0x67,0xA3,0xF1,0x0D,0x64,0x75,0xD2,0xD5,0x09,0x27,0x17,0x13,0xE1,0x0D,0xE4,0x0D,0x78,0x04,0x98,0x5D,0x30,0x26,0x0E,0x4A,0xA2,0x3E,0x82,0x0E,0x8E,0x82,0xC1,0x38,0x62,0x51,0x0C,0x0A,0x42,0x7F,0xDE,0xB5,0x77,0xB4,0x77,0x17,0x28,0x21,0x26,0x46,0xFD,0x26,0xCD,0xE5,0xD3,0x7C,0xFB,0xBB,0xFB,0xFD,0xB9,0x02,0xCC,0xA4,0xE8,0x99,0x80,0x61,0xC4,0x8A,0x9F,0xCB,0x6F,0x31,0x3B,0xE3,0x61,0x7A,0x98,0x84,0x7C,0x37,0xF6,0xFC,0xC8,0xDD,0x45,0x00,0xDD,0xBA,0xC4,0x77,0xE6,0xEE,0x40,0xEC,0x0E,0xE6,0x91,0xF1,0xD2,0x00,0x42,0x34,0x5E,0xCE,0xE5,0x08,0x16,0xA0,0x84,0x68,0x67,0xB4,0x86,0xC3,0xD5,0x26,0x2C,0x20,0x51,0x17,0xA2,0xB8,0x03,0xB0,0xFE,0x49,0xDD,0x54,0x15,0xD8,0xEE,0x73,0x37,0x95,0x9D,0xD4,0x1A,0xB7,0xA5,0x26,0xC4,0x91,0xA9,0x0B,0x06,0xEE,0x72,0xB7,0xFB,0xC5,0x16,0x80,0xE9,0xF1,0x07,0x8D,0x3F,0x15,0x5F,0x1C,0x0B,0xFC,0x0A,0x90,0xF0,0xF3,0x09,0xA9,0x90,0xC4,0xC6,0x37,0xB0,0x93,0xBF,0xE1,0x71,0xDB,0xA9,0xD7,0x41,0xAD,0x46,0xEA,0x19,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x6E,0xA7,0xDA,0x1E,0xF9,0xFA,0xAB,0xF5,0x97,0xFF,0x2F,0xED,0x89,0x7E,0x29,0x9E,0xB4,0x9F,0x74,0x1E,0x69,0xDA,0xA4,0x9F,0x81,0x94,0xEF,0x4F,0xF6,0xF9,0x0B,0xF4,0x65,0x51,0x08} |
Common functions.
MIT License
Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file Common.c.
void Calibration_Restore | ( | EVE_HalContext * | phost | ) |
Definition at line 383 of file Common.c.
void Calibration_Save | ( | EVE_HalContext * | phost | ) |
Definition at line 392 of file Common.c.
bool cbCmdWait | ( | struct EVE_HalContext * | phost | ) |
void Display_End | ( | EVE_HalContext * | phost | ) |
Definition at line 413 of file Common.c.
void Display_Start | ( | EVE_HalContext * | phost | ) |
Definition at line 409 of file Common.c.
void Display_StartColor | ( | EVE_HalContext * | phost, |
uint8_t * | bgColor, | ||
uint8_t * | textColor | ||
) |
Definition at line 401 of file Common.c.
uint32_t Draw_Image | ( | EVE_HalContext * | phost, |
const char * | filePath, | ||
uint32_t | format | ||
) |
Definition at line 353 of file Common.c.
uint32_t Draw_Point | ( | EVE_HalContext * | phost, |
uint32_t | Rx, | ||
uint32_t | Ry, | ||
uint32_t | R | ||
) |
void Draw_Text | ( | EVE_HalContext * | phost, |
const char8_t * | str | ||
) |
Definition at line 442 of file Common.c.
void Draw_Text2 | ( | EVE_HalContext * | phost, |
const char8_t * | str, | ||
int | ms | ||
) |
void Draw_TextColor | ( | EVE_HalContext * | phost, |
const char8_t * | str, | ||
uint8_t * | bgColor, | ||
uint8_t * | textColor | ||
) |
void Flash_Init | ( | EVE_HalContext * | phost, |
const uint8_t * | filePath, | ||
const uint8_t * | fileName | ||
) |
Definition at line 524 of file Common.c.
uint32_t Get_SystemClock | ( | EVE_HalContext * | phost | ) |
void Get_VC1Dump | ( | EVE_HalContext * | phost, |
const char * | filename | ||
) |
Definition at line 457 of file Common.c.
void Gpu_Init | ( | EVE_HalContext * | phost | ) |
EVE initialzation.
phost |
Definition at line 240 of file Common.c.
void Gpu_Release | ( | EVE_HalContext * | phost | ) |
Definition at line 309 of file Common.c.
|
static |
Definition at line 419 of file Common.c.
void hintScreen | ( | EVE_HalContext * | phost, |
const uint8_t * | msg | ||
) |
void Init_CapacitiveTouch | ( | EVE_HalContext * | phost | ) |
Capacitive Touch initialzation.
phost |
Definition at line 92 of file Common.c.
uint8_t isSDcardDetected | ( | ) |
void Play_MuteSound | ( | EVE_HalContext * | phost | ) |
void Play_Sound | ( | EVE_HalContext * | phost, |
uint8_t | sound, | ||
uint8_t | vol, | ||
uint8_t | midi | ||
) |
void Setup_Precision | ( | uint32_t | format | ) |
Setup vertex format and precision.
format | Vertext format |
Definition at line 51 of file Common.c.
void Show_Diaglog_Info | ( | EVE_HalContext * | phost, |
const uint8_t * | msg | ||
) |
fade the whole LCD
diag border
center part
top part
bottom part
Definition at line 573 of file Common.c.
uint8_t Show_Diaglog_YesNo | ( | EVE_HalContext * | phost, |
const uint8_t * | title, | ||
const uint8_t * | msg | ||
) |
fade the whole LCD
diag border
center part
top part
bottom part
diag message
diag button yes/no
Definition at line 658 of file Common.c.
void WelcomeScreen | ( | Gpu_Hal_Context_t * | phost, |
char * | info[] | ||
) |
Definition at line 782 of file Common.c.
PROGMEM prog_uchar8_t home_start_icon[] = {0x78,0x9C,0xE5,0x94,0xBF,0x4E,0xC2,0x40,0x1C,0xC7,0x7F,0x2D,0x04,0x8B,0x20,0x45,0x76,0x14,0x67,0xA3,0xF1,0x0D,0x64,0x75,0xD2,0xD5,0x09,0x27,0x17,0x13,0xE1,0x0D,0xE4,0x0D,0x78,0x04,0x98,0x5D,0x30,0x26,0x0E,0x4A,0xA2,0x3E,0x82,0x0E,0x8E,0x82,0xC1,0x38,0x62,0x51,0x0C,0x0A,0x42,0x7F,0xDE,0xB5,0x77,0xB4,0x77,0x17,0x28,0x21,0x26,0x46,0xFD,0x26,0xCD,0xE5,0xD3,0x7C,0xFB,0xBB,0xFB,0xFD,0xB9,0x02,0xCC,0xA4,0xE8,0x99,0x80,0x61,0xC4,0x8A,0x9F,0xCB,0x6F,0x31,0x3B,0xE3,0x61,0x7A,0x98,0x84,0x7C,0x37,0xF6,0xFC,0xC8,0xDD,0x45,0x00,0xDD,0xBA,0xC4,0x77,0xE6,0xEE,0x40,0xEC,0x0E,0xE6,0x91,0xF1,0xD2,0x00,0x42,0x34,0x5E,0xCE,0xE5,0x08,0x16,0xA0,0x84,0x68,0x67,0xB4,0x86,0xC3,0xD5,0x26,0x2C,0x20,0x51,0x17,0xA2,0xB8,0x03,0xB0,0xFE,0x49,0xDD,0x54,0x15,0xD8,0xEE,0x73,0x37,0x95,0x9D,0xD4,0x1A,0xB7,0xA5,0x26,0xC4,0x91,0xA9,0x0B,0x06,0xEE,0x72,0xB7,0xFB,0xC5,0x16,0x80,0xE9,0xF1,0x07,0x8D,0x3F,0x15,0x5F,0x1C,0x0B,0xFC,0x0A,0x90,0xF0,0xF3,0x09,0xA9,0x90,0xC4,0xC6,0x37,0xB0,0x93,0xBF,0xE1,0x71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0x33,0xD7,0x1D,0xF6,0x5E,0x84,0x5C,0x56,0x6E,0xA7,0xDA,0x1E,0xF9,0xFA,0xAB,0xF5,0x97,0xFF,0x2F,0xED,0x89,0x7E,0x29,0x9E,0xB4,0x9F,0x74,0x1E,0x69,0xDA,0xA4,0x9F,0x81,0x94,0xEF,0x4F,0xF6,0xF9,0x0B,0xF4,0x65,0x51,0x08} |
Definition at line 780 of file Common.c.