| BLDC control on ATAVRMC303 with ATxMega128A1

DB101_IF.h
Go to the documentation of this file.
1
2 #ifndef _DB101_IF_
3 #define _DB101_IF_
4
5 #include <ioavr.h>
6 #include <inavr.h>
7 #include <stdint.h>
8
9 #include "compiler.h"
10 #include "config.h"
11 #include "ushell_task.h"
12 #include "ascii.h"
13 #include "lib_mcu/uart/uart_lib.h"
14 #include "mc_interface.h"
15
16 /*Terminal commands*/
17 static U8 clearScreen[4] = {27, '[', '2', 'J'};
18 static U8 cursorLine[6] = {27, '[', '0', ';', '0', 'H'};
19 static U8 cursorHome[3] = {27, '[', 'H'};
20 static U8 cursorEnd[7] = {27, '[', '8', ';', '2', '1', 'H'};
21 static U8 showPic[6] = {27, '[', '5','0','m'};
22
23 static U8 Color_black[6] = {27, '[', '4','0','m'};
24 static U8 Color_red[6] = {27, '[', '4','1','m'};
25 static U8 Color_green[6] = {27, '[', '4','2','m'};
26 static U8 Color_yellow[6] = {27, '[', '4','3','m'};
27 static U8 Color_blue[6] = {27, '[', '4','4','m'};
28 static U8 Color_magenta[6] = {27, '[', '4','5','m'};
29 static U8 Color_cyan[6] = {27, '[', '4','6','m'};
30 static U8 Color_white[6] = {27, '[', '4','7','m'};
31
32 static U8 Color_r[6] = {27, '[', '1','1','5', 'm'}; //Red
33 static U8 Color_g[6] = {27, '[', '2','1','5', 'm'}; //Green
34 static U8 Color_b[6] = {27, '[', '3','1','5', 'm'}; //Blue
35 static U8 Color_rg[6] = {27, '[', '4','1','5', 'm'}; //Red and Green
36 static U8 Color_rb[6] = {27, '[', '5','1','5', 'm'}; //Red and Blue
37 static U8 Color_gb[6] = {27, '[', '6','1','5', 'm'}; //Green and Blue
38 static U8 Color_rgb[6] = {27, '[', '7','1','5', 'm'}; //All
39
40 void UpdateScreen(void);
41 void SendCommand(U8 * data_ptr, U8 length);
42 void BCD_Convert(U8 * data_ptr, U32 number, U8 size);
43
44 #endif
cursorEnd
static U8 cursorEnd[7]
Definition: DB101_IF.h:20
mc_interface.h
UpdateScreen
void UpdateScreen(void)
Definition: DB101_IF.c:22
Color_yellow
static U8 Color_yellow[6]
Definition: DB101_IF.h:26
cursorHome
static U8 cursorHome[3]
Definition: DB101_IF.h:19
Color_red
static U8 Color_red[6]
Definition: DB101_IF.h:24
Color_rg
static U8 Color_rg[6]
Definition: DB101_IF.h:35
config.h
,v
Color_white
static U8 Color_white[6]
Definition: DB101_IF.h:30
Color_gb
static U8 Color_gb[6]
Definition: DB101_IF.h:37
Color_cyan
static U8 Color_cyan[6]
Definition: DB101_IF.h:29
Color_rb
static U8 Color_rb[6]
Definition: DB101_IF.h:36
Color_magenta
static U8 Color_magenta[6]
Definition: DB101_IF.h:28
BCD_Convert
void BCD_Convert(U8 *data_ptr, U32 number, U8 size)
Definition: DB101_IF.c:62
Color_green
static U8 Color_green[6]
Definition: DB101_IF.h:25
Color_black
static U8 Color_black[6]
Definition: DB101_IF.h:23
SendCommand
void SendCommand(U8 *data_ptr, U8 length)
Definition: DB101_IF.c:13
Color_r
static U8 Color_r[6]
Definition: DB101_IF.h:32
Color_rgb
static U8 Color_rgb[6]
Definition: DB101_IF.h:38
Color_blue
static U8 Color_blue[6]
Definition: DB101_IF.h:27
ushell_task.h
Color_b
static U8 Color_b[6]
Definition: DB101_IF.h:34
Color_g
static U8 Color_g[6]
Definition: DB101_IF.h:33
clearScreen
static U8 clearScreen[4]
Definition: DB101_IF.h:17
cursorLine
static U8 cursorLine[6]
Definition: DB101_IF.h:18
ascii.h
showPic
static U8 showPic[6]
Definition: DB101_IF.h:21