Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
gfx_main.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_sensorif.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_spi.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "cascoda-bm/test15_4_evbme.h"
#include "sif_il3820.h"
#include "gfx_driver.h"
#include "gfx_library.h"
Include dependency graph for gfx_main.c:

Macros

#define NUMFLAKES   10
 
#define XPOS   0
 
#define YPOS   1
 
#define DELTA_Y   2
 
#define LOGO16_GLCD_HEIGHT   16
 
#define LOGO16_GLCD_WIDTH   16
 
#define min(a, b)   (((a) < (b)) ? (a) : (b))
 

Functions

void testdrawbitmap (const uint8_t *bitmap, uint8_t w, uint8_t h)
 
void testdrawchar (void)
 
void testdrawcircle (void)
 
void testfillrect (void)
 
void testdrawtriangle (void)
 
void testfilltriangle (void)
 
void testdrawroundrect (void)
 
void testfillroundrect (void)
 
void testdrawrect (void)
 
void testdrawline (void)
 
ca_error handle_tests (void *args)
 
void main (void)
 

Variables

const char logo16_glcd_bmp []
 

Macro Definition Documentation

◆ DELTA_Y

#define DELTA_Y   2

◆ LOGO16_GLCD_HEIGHT

#define LOGO16_GLCD_HEIGHT   16

◆ LOGO16_GLCD_WIDTH

#define LOGO16_GLCD_WIDTH   16

◆ min

#define min (   a,
 
)    (((a) < (b)) ? (a) : (b))

◆ NUMFLAKES

#define NUMFLAKES   10

◆ XPOS

#define XPOS   0

◆ YPOS

#define YPOS   1

Function Documentation

◆ handle_tests()

ca_error handle_tests ( void *  args)

◆ main()

void main ( void  )

◆ testdrawbitmap()

void testdrawbitmap ( const uint8_t *  bitmap,
uint8_t  w,
uint8_t  h 
)

◆ testdrawchar()

void testdrawchar ( void  )

◆ testdrawcircle()

void testdrawcircle ( void  )

◆ testdrawline()

void testdrawline ( void  )

◆ testdrawrect()

void testdrawrect ( void  )

◆ testdrawroundrect()

void testdrawroundrect ( void  )

◆ testdrawtriangle()

void testdrawtriangle ( void  )

◆ testfillrect()

void testfillrect ( void  )

◆ testfillroundrect()

void testfillroundrect ( void  )

◆ testfilltriangle()

void testfilltriangle ( void  )

Variable Documentation

◆ logo16_glcd_bmp

const char logo16_glcd_bmp[]
Initial value:
= {0b00000000, 0b11000000, 0b00000001, 0b11000000, 0b00000001, 0b11000000, 0b00000011,
0b11100000, 0b11110011, 0b11100000, 0b11111110, 0b11111000, 0b01111110, 0b11111111,
0b00110011, 0b10011111, 0b00011111, 0b11111100, 0b00001101, 0b01110000, 0b00011011,
0b10100000, 0b00111111, 0b11100000, 0b00111111, 0b11110000, 0b01111100, 0b11110000,
0b01110000, 0b01110000, 0b00000000, 0b00110000}