Datasheet

12
Variables
const uint8_t allZeros [NUM_SEGMENTS] = {0}
An array of all Zeroes (used to set pin voltage to 0)
uint8_t changingState = 0
A variable that indicates that we are updating the display.
uint8_t updateNum
A simple counter to make sure that a global update is done every few physical updates to the screen.
static uint8_t curState
A variable that indicates the state of the FSM.
uint8_t nextState
The next state of the FSM.
static uint8_t updateStep = 0
The current step in toggling the waveforms.
uint8_t curDisplay [NUM_SEGMENTS] = {0}
This array holds current segments that have been turned ON(1)/OFF(0)
uint8_t nextDisplay [NUM_SEGMENTS] = {0}
This array holds next segments that should be turned ON(1)/OFF(0)
uint8_t updateType = EINK_PICKET_FENCE
The display waveform to use to update the display.
static uint8_t updateTypeDefault = EINK_PICKET_FENCE
The default display waveform to use to update the display. The driver starts with this waveform and can then be
changed using updateType.
uint8_t updateRequest = FALSE
This variable, when set to true activates the driver and makes the physical update to the screen.
static uint8_t einkDir = BACKGROUND_WHITE
Current direction of drive. 0 is forward. 1 is reverse. (when driving the lines directly from the MCU pins)
uint8_t einkNextDir = BACKGROUND_WHITE
Next direction of drive. 0 is forward. 1 is reverse. (when driving the lines directly from the MCU pins)
Detailed Description
Description: C file that contains the state machine and functions required to control the EInk display
screen using a Renesas microcontroller.
Filename: rEInkDriver.c Creation Date: Nov 15, 2012 Original Author of Algorithm: T. Weisberger
Modified and documented by: O. Raut
REVISION HISTORY: 07/24/2012 TSW: Added timer flag structure and added InitTimer to facilitate the
structure.
C:/Users/oraut/Documents/Workspace/Renesas/EInkDriverFinal/YLPD
SKRL78EINK/user_src/EInkDriverFiles/rEInkDriver.h File Reference
Description:This file is the header file for the driver layer of the EInk driver.
#include "rEInkHardwareAbstraction.h"