Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Macros
Common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _SUCCESS   0
 
#define _FAILURE   1
 
#define ANSI_COLOR_RED   "\x1b[31m"
 
#define ANSI_COLOR_GREEN   "\x1b[32m"
 
#define ANSI_COLOR_YELLOW   "\x1b[33m"
 
#define ANSI_COLOR_BLUE   "\x1b[34m"
 
#define ANSI_COLOR_MAGENTA   "\x1b[35m"
 
#define ANSI_COLOR_CYAN   "\x1b[36m"
 
#define ANSI_COLOR_RESET   "\x1b[0m"
 
#define ESC   "\x1b["
 
#define ESC_AQUA   ESC "36m"
 
#define ESC_GREEN   ESC "32m"
 
#define ESC_RED   ESC "31m"
 
#define ESC_RESET   ESC "0m"
 
#define TEST_DELIM   "\t"
 
#define TEST_START   ESC_AQUA "START" ESC_RESET TEST_DELIM
 
#define TEST_PASS   ESC_GREEN "PASS" ESC_RESET TEST_DELIM
 
#define TEST_OK   ESC_GREEN "OK" ESC_RESET TEST_DELIM
 
#define TEST_ERR   ESC_RED "ERR" ESC_RESET TEST_DELIM
 
#define TEST_FAIL   ESC_RED "FAIL" ESC_RESET TEST_DELIM
 

Macro Definition Documentation

◆ _FAILURE

#define _FAILURE   1

Definition at line 6 of file Common.h.

◆ _SUCCESS

#define _SUCCESS   0

Definition at line 5 of file Common.h.

◆ ANSI_COLOR_BLUE

#define ANSI_COLOR_BLUE   "\x1b[34m"

Definition at line 12 of file Common.h.

◆ ANSI_COLOR_CYAN

#define ANSI_COLOR_CYAN   "\x1b[36m"

Definition at line 14 of file Common.h.

◆ ANSI_COLOR_GREEN

#define ANSI_COLOR_GREEN   "\x1b[32m"

Definition at line 10 of file Common.h.

◆ ANSI_COLOR_MAGENTA

#define ANSI_COLOR_MAGENTA   "\x1b[35m"

Definition at line 13 of file Common.h.

◆ ANSI_COLOR_RED

#define ANSI_COLOR_RED   "\x1b[31m"

Definition at line 9 of file Common.h.

◆ ANSI_COLOR_RESET

#define ANSI_COLOR_RESET   "\x1b[0m"

Definition at line 15 of file Common.h.

◆ ANSI_COLOR_YELLOW

#define ANSI_COLOR_YELLOW   "\x1b[33m"

Definition at line 11 of file Common.h.

◆ ESC

#define ESC   "\x1b["

Definition at line 17 of file Common.h.

◆ ESC_AQUA

#define ESC_AQUA   ESC "36m"

Definition at line 18 of file Common.h.

◆ ESC_GREEN

#define ESC_GREEN   ESC "32m"

Definition at line 19 of file Common.h.

◆ ESC_RED

#define ESC_RED   ESC "31m"

Definition at line 20 of file Common.h.

◆ ESC_RESET

#define ESC_RESET   ESC "0m"

Definition at line 21 of file Common.h.

◆ TEST_DELIM

#define TEST_DELIM   "\t"

Definition at line 23 of file Common.h.

◆ TEST_ERR

#define TEST_ERR   ESC_RED "ERR" ESC_RESET TEST_DELIM

Definition at line 27 of file Common.h.

◆ TEST_FAIL

#define TEST_FAIL   ESC_RED "FAIL" ESC_RESET TEST_DELIM

Definition at line 28 of file Common.h.

◆ TEST_OK

#define TEST_OK   ESC_GREEN "OK" ESC_RESET TEST_DELIM

Definition at line 26 of file Common.h.

◆ TEST_PASS

#define TEST_PASS   ESC_GREEN "PASS" ESC_RESET TEST_DELIM

Definition at line 25 of file Common.h.

◆ TEST_START

#define TEST_START   ESC_AQUA "START" ESC_RESET TEST_DELIM

Definition at line 24 of file Common.h.