EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include "graph_framebuffer.h"
#include "shape.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
private void _FBDrawGraphAxesScale | ( | framebuffer | fb, |
graph * | g | ||
) |
Definition at line 245 of file graph_framebuffer.c.
Referenced by FBDrawGraph(), and FBEraseGraph().
private void _FBDrawGraphAxesTitles | ( | framebuffer | fb, |
graph * | g | ||
) |
Definition at line 240 of file graph_framebuffer.c.
Referenced by FBDrawGraph(), and FBEraseGraph().
private void _FBDrawGraphBounds | ( | framebuffer | fb, |
graph * | g, | ||
pixel_t | x_range_padding, | ||
pixel_t | y_range_padding, | ||
point * | top_left_corner, | ||
pixel_t | width, | ||
pixel_t | height, | ||
shade_t | shade | ||
) |
Definition at line 159 of file graph_framebuffer.c.
References shape_create_point(), point::x, and point::y.
Referenced by FBDrawGraph(), and FBEraseGraph().
private void _FBDrawGraphData | ( | framebuffer | fb, |
graph * | g, | ||
point * | top_left_corner, | ||
shade_t | shade | ||
) |
Definition at line 198 of file graph_framebuffer.c.
References graph::all_data_points_valid, graph::data, GL_BLANK_STEPS_PRECEEDING_STALE_DATA, graph::most_recent_data_point, pixel_t, shape_create_point(), when, graph::x_max, graph::x_min, graph::x_pixel_end, graph::x_pixel_start, graph::y_max, graph::y_min, graph::y_pixel_end, and graph::y_pixel_start.
Referenced by FBDrawGraph(), FBEraseGraph(), and FBEraseGraphData().
private void _FBDrawGraphTitle | ( | framebuffer | fb, |
graph * | g | ||
) |
Definition at line 235 of file graph_framebuffer.c.
Referenced by FBDrawGraph(), and FBEraseGraph().
Definition at line 293 of file graph_framebuffer.c.
pixel_t _FBPixelHeightOfString | ( | char * | str | ) |
Definition at line 264 of file graph_framebuffer.c.
Definition at line 283 of file graph_framebuffer.c.
Definition at line 274 of file graph_framebuffer.c.
void FBDrawFullscreenGraph | ( | framebuffer | fb, |
graph * | g | ||
) |
Definition at line 25 of file graph_framebuffer.c.
References FBDrawGraph(), OLED_HEIGHT, OLED_WIDTH, pixel_t, shade_t, and shape_create_point().
Referenced by main().
void FBDrawGraph | ( | framebuffer | fb, |
graph * | g, | ||
point * | top_left_corner, | ||
pixel_t | width, | ||
pixel_t | height | ||
) |
Definition at line 73 of file graph_framebuffer.c.
References _FBDrawGraphAxesScale(), _FBDrawGraphAxesTitles(), _FBDrawGraphBounds(), _FBDrawGraphData(), _FBDrawGraphTitle(), pixel_t, point::shade, point::x, graph::x_max, graph::x_min, graph::x_pixel_end, graph::x_pixel_start, point::y, graph::y_max, graph::y_min, graph::y_pixel_end, and graph::y_pixel_start.
Referenced by FBDrawFullscreenGraph().
void FBEraseFullscreenGraph | ( | framebuffer | fb, |
graph * | g | ||
) |
Definition at line 38 of file graph_framebuffer.c.
References FB_COLOR_ERASE, FBEraseGraph(), OLED_HEIGHT, OLED_WIDTH, shade_t, shape_create_point(), x_pixel_t, and y_pixel_t.
Referenced by main().
void FBEraseFullscreenGraphData | ( | framebuffer | fb, |
graph * | g | ||
) |
Definition at line 51 of file graph_framebuffer.c.
References FB_COLOR_ERASE, FBEraseGraphData(), OLED_HEIGHT, OLED_WIDTH, shade_t, shape_create_point(), x_pixel_t, and y_pixel_t.
void FBEraseGraph | ( | framebuffer | fb, |
graph * | g, | ||
point * | top_left_corner, | ||
pixel_t | width, | ||
pixel_t | height | ||
) |
Definition at line 103 of file graph_framebuffer.c.
References _FBDrawGraphAxesScale(), _FBDrawGraphAxesTitles(), _FBDrawGraphBounds(), _FBDrawGraphData(), _FBDrawGraphTitle(), FB_SHADE_ERASE, pixel_t, point::x, graph::x_max, graph::x_min, graph::x_pixel_end, graph::x_pixel_start, point::y, graph::y_max, graph::y_min, graph::y_pixel_end, and graph::y_pixel_start.
Referenced by FBEraseFullscreenGraph().
void FBEraseGraphData | ( | framebuffer | fb, |
graph * | g, | ||
point * | top_left_corner, | ||
pixel_t | width, | ||
pixel_t | height | ||
) |
Definition at line 133 of file graph_framebuffer.c.
References _FBDrawGraphData(), FB_SHADE_ERASE, pixel_t, point::x, graph::x_max, graph::x_min, graph::x_pixel_end, graph::x_pixel_start, point::y, graph::y_max, graph::y_min, graph::y_pixel_end, and graph::y_pixel_start.
Referenced by FBEraseFullscreenGraphData().
unsigned char max_uc | ( | unsigned char | one, |
unsigned char | two | ||
) |
Definition at line 255 of file graph_framebuffer.c.