Numworks Epsilon  1.4.1
Graphing Calculator Operating System
display.cpp File Reference
#include <ion.h>
#include "display.h"
#include "regs/regs.h"
#include <assert.h>

Go to the source code of this file.

Namespaces

 Ion
 
 Ion::Display
 
 Ion::Display::Device
 

Macros

#define USE_DMA_FOR_PUSH_PIXELS   0
 
#define USE_DMA_FOR_PUSH_COLOR   0
 
#define USE_DMA   (USE_DMA_FOR_PUSH_PIXELS|USE_DMA_FOR_PUSH_COLOR)
 
#define SEND_COMMAND(c, ...)   {*CommandAddress = Command::c; uint8_t data[] = {__VA_ARGS__}; for (unsigned int i=0;i<sizeof(data);i++) { *DataAddress = data[i];};}
 

Functions

void Ion::Display::pushRect (KDRect r, const KDColor *pixels)
 
void Ion::Display::pushRectUniform (KDRect r, KDColor c)
 
void Ion::Display::pullRect (KDRect r, KDColor *pixels)
 
void Ion::Display::waitForVBlank ()
 
void Ion::Display::Device::init ()
 
void Ion::Display::Device::shutdown ()
 
void Ion::Display::Device::initGPIO ()
 
void Ion::Display::Device::shutdownGPIO ()
 
void Ion::Display::Device::initFSMC ()
 
void Ion::Display::Device::shutdownFSMC ()
 
void Ion::Display::Device::initPanel ()
 
void Ion::Display::Device::shutdownPanel ()
 
void Ion::Display::Device::setDrawingArea (KDRect r, Orientation o)
 
void Ion::Display::Device::pushPixels (const KDColor *pixels, size_t numberOfPixels)
 
void Ion::Display::Device::pushColor (KDColor color, size_t numberOfPixels)
 
void Ion::Display::Device::pullPixels (KDColor *pixels, size_t numberOfPixels)
 

Macro Definition Documentation

◆ SEND_COMMAND

#define SEND_COMMAND (   c,
  ... 
)    {*CommandAddress = Command::c; uint8_t data[] = {__VA_ARGS__}; for (unsigned int i=0;i<sizeof(data);i++) { *DataAddress = data[i];};}

Definition at line 68 of file display.cpp.

◆ USE_DMA

Definition at line 17 of file display.cpp.

◆ USE_DMA_FOR_PUSH_COLOR

#define USE_DMA_FOR_PUSH_COLOR   0

Definition at line 15 of file display.cpp.

◆ USE_DMA_FOR_PUSH_PIXELS

#define USE_DMA_FOR_PUSH_PIXELS   0

Definition at line 14 of file display.cpp.