Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
sif_ssd1681.h File Reference
#include <stdint.h>
#include "ca821x_error.h"
#include "cascoda_chili_config.h"
Include dependency graph for sif_ssd1681.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SIF_SSD1681_BUSY_PIN   31
 
#define SIF_SSD1681_RST_PIN   15
 
#define SIF_SSD1681_DC_PIN   34
 
#define SIF_SSD1681_BUSY_TIMEOUT   5000
 
#define SIF_SSD1681_WIDTH_PHYSICAL   200
 
#define SIF_SSD1681_HEIGHT_PHYSICAL   200
 
#define SIF_SSD1681_WIDTH_WINDOW   192
 
#define SIF_SSD1681_HEIGHT_WINDOW   200
 
#define SIF_SSD1681_WIDTH   (SIF_SSD1681_WIDTH_WINDOW / 2)
 
#define SIF_SSD1681_HEIGHT   (SIF_SSD1681_WIDTH_WINDOW / 2)
 
#define ARRAY_SIZE   (SIF_SSD1681_HEIGHT * SIF_SSD1681_WIDTH / 8)
 

Enumerations

enum  SIF_SSD1681_Update_Mode { FULL_UPDATE = 0 , PARTIAL_UPDATE }
 

Functions

bool SIF_SSD1681_IsAsleep (void)
 Function which reports the sleep status of the eink display. More...
 
ca_error SIF_SSD1681_Initialise (void)
 EINK Initialisation. More...
 
void SIF_SSD1681_Deinitialise (void)
 EINK De-Initialisation. More...
 
void SIF_SSD1681_ClearDisplay (void)
 Clears the display. More...
 
void SIF_SSD1681_StrongClearDisplay (void)
 Clears the display many times to make sure there is no ghost image. More...
 
void SIF_SSD1681_DeepSleep (void)
 Enter deep sleep mode. More...
 
ca_error SIF_SSD1681_overlay_qr_code (const char *text, uint8_t *image, uint8_t scale, uint8_t x, uint8_t y)
 Creates a QR code and overlays it on top of a pre-existing image at the given coordinates. More...
 
void SIF_SSD1681_SetFrameMemory (const uint8_t *image, bool full_resolution)
 Copies the image into the eink display's RAM, for full update. More...
 
void SIF_SSD1681_SetFrameMemoryPartial (const uint8_t *image)
 Copies the image into the eink display's RAM, for partial update. More...
 
void SIF_SSD1681_DisplayFrame (void)
 Causes the eink to display what is currently in its RAM, using the full update process. More...
 
void SIF_SSD1681_DisplayPartFrame (void)
 Causes the eink to display what is currently in its RAM, using the partial update process. More...
 
void SIF_SSD1681_DisplayPartBaseImageWhite (void)
 Causes the eink to display a white image, to be used as a "base" image for subsequent partial updates. More...