draw_screen_buffer.h File Reference

Include dependency graph for draw_screen_buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DRAW_BUFFERS   1
#define DRAW_TOTAL_BUFFER_SIZE   (DRAW_PIXELS_WIDE * DRAW_PIXELS_HIGH / DRAW_PIXELS_PER_BYTE)

Functions

uns8 get_draw_buffer (uns16 address)
void set_draw_buffer (uns16 address, uns8 data)

Variables

uns8 draw_buffer0 [DRAW_TOTAL_BUFFER_SIZE]

Define Documentation

#define DRAW_BUFFERS   1
#define DRAW_TOTAL_BUFFER_SIZE   (DRAW_PIXELS_WIDE * DRAW_PIXELS_HIGH / DRAW_PIXELS_PER_BYTE)

Function Documentation

uns8 get_draw_buffer ( uns16  address  ) 

00033                                     {
00034 
00035     if (address < 256) {
00036         return draw_buffer0[address];
00037     }
00038     #if DRAW_TOTAL_BUFFER_SIZE > 256
00039         else if (address < 512) {
00040             return draw_buffer1[address - 256];
00041         }
00042         #if DRAW_TOTAL_BUFFER_SIZE > 512
00043             else if (address < 768) {
00044                 return draw_buffer2[address - 512];
00045             }
00046             #if DRAW_TOTAL_BUFFER_SIZE > 768 
00047                 else if (address < 1024) {
00048                     return draw_buffer3[address - 768];
00049                 }
00050             #endif  
00051         #endif      
00052     #endif      
00053 }

Here is the caller graph for this function:

void set_draw_buffer ( uns16  address,
uns8  data 
)

00055                                                {
00056 
00057     if (address < 256) {
00058         draw_buffer0[address] = data;
00059     }
00060     #if DRAW_TOTAL_BUFFER_SIZE > 256
00061         else if (address < 512) {
00062             draw_buffer1[address - 256] = data;
00063         }
00064         #if DRAW_TOTAL_BUFFER_SIZE > 512
00065             else if (address < 768) {
00066             draw_buffer2[address - 512] = data;
00067             }
00068             #if DRAW_TOTAL_BUFFER_SIZE > 768
00069                 else if (address < 1024) {
00070                     draw_buffer3[address - 768] = data;
00071                 }
00072             #endif  
00073         #endif      
00074     #endif          
00075 }   


Variable Documentation

uns8 draw_buffer0[DRAW_TOTAL_BUFFER_SIZE]

Generated on Fri Aug 19 09:04:56 2011 for Pic Pack Library by  doxygen 1.6.1