PandA-2024.02
Macros | Functions
vgatest.c File Reference

Go to the source code of this file.

Macros

#define sgn(x)   ((x<0)?-1:((x>0)?1:0))
 
#define RESOLUTION_X   160
 
#define RESOLUTION_Y   120
 

Functions

void plot (int color, int x, int y)
 
void leds_ctrl (unsigned int id, unsigned int val)
 
int delay (int ritardo)
 
void line (int x1, int y1, int x2, int y2, unsigned int color)
 
void Rect (int left, int top, int right, int bottom, unsigned int color)
 
void RectFill (int left, int top, int right, int bottom, unsigned int color)
 
void Circle (int x0, int y0, int radius, unsigned int color)
 
void CircleFill (int x0, int y0, int radius, unsigned int color)
 
void plot_test ()
 
int main ()
 

Macro Definition Documentation

◆ RESOLUTION_X

#define RESOLUTION_X   160

Definition at line 6 of file vgatest.c.

Referenced by plot_test().

◆ RESOLUTION_Y

#define RESOLUTION_Y   120

Definition at line 7 of file vgatest.c.

Referenced by plot_test().

◆ sgn

#define sgn (   x)    ((x<0)?-1:((x>0)?1:0))

Definition at line 1 of file vgatest.c.

Referenced by line().

Function Documentation

◆ Circle()

void Circle ( int  x0,
int  y0,
int  radius,
unsigned int  color 
)

Definition at line 77 of file vgatest.c.

References plot(), and x.

Referenced by plot_test().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CircleFill()

void CircleFill ( int  x0,
int  y0,
int  radius,
unsigned int  color 
)

Definition at line 103 of file vgatest.c.

References line(), and x.

Referenced by plot_test().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ delay()

int delay ( int  ritardo)

◆ leds_ctrl()

void leds_ctrl ( unsigned int  id,
unsigned int  val 
)

Definition at line 1 of file leds_ctrl.c.

Referenced by plot_test().

Here is the caller graph for this function:

◆ line()

void line ( int  x1,
int  y1,
int  x2,
int  y2,
unsigned int  color 
)

Definition at line 13 of file vgatest.c.

References abs, plot(), sgn, and x.

Referenced by CircleFill(), Rect(), and RectFill().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 204 of file vgatest.c.

References plot_test().

Here is the call graph for this function:

◆ plot()

void plot ( int  color,
int  x,
int  y 
)

Definition at line 1 of file plot.c.

Referenced by Circle(), line(), and plot_test().

Here is the caller graph for this function:

◆ plot_test()

void plot_test ( )

Definition at line 126 of file vgatest.c.

References Circle(), CircleFill(), delay(), k, leds_ctrl(), plot(), Rect(), RectFill(), RESOLUTION_X, RESOLUTION_Y, and x.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Rect()

void Rect ( int  left,
int  top,
int  right,
int  bottom,
unsigned int  color 
)

Definition at line 59 of file vgatest.c.

References line().

Referenced by plot_test().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RectFill()

void RectFill ( int  left,
int  top,
int  right,
int  bottom,
unsigned int  color 
)

Definition at line 66 of file vgatest.c.

References line().

Referenced by plot_test().

Here is the call graph for this function:
Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:03:12 for PandA-2024.02 by doxygen 1.8.13