Library to control the EM027BS013 ePaper display from Pervasive Display.

Dependencies:   LM75B

Dependents:   app_epaper_EM027BS013_LPC1549 lpc4088_ebb_epaper EaEpaper_EM027BS013 app_epaper_EM027BS013 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers conf_EPD.h Source File

conf_EPD.h

Go to the documentation of this file.
00001 /**
00002 * \file
00003 *
00004 * \brief The EPD configurations
00005 *
00006 * Copyright (c) 2012-2014 Pervasive Displays Inc. All rights reserved.
00007 *
00008 *  Authors: Pervasive Displays Inc.
00009 *
00010 *  Redistribution and use in source and binary forms, with or without
00011 *  modification, are permitted provided that the following conditions
00012 *  are met:
00013 *
00014 *  1. Redistributions of source code must retain the above copyright
00015 *     notice, this list of conditions and the following disclaimer.
00016 *  2. Redistributions in binary form must reproduce the above copyright
00017 *     notice, this list of conditions and the following disclaimer in
00018 *     the documentation and/or other materials provided with the
00019 *     distribution.
00020 *
00021 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00022 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00023 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00024 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00025 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00026 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00027 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00028 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00029 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00030 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00031 *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00032 */
00033 
00034 #ifndef CONF_EPD_H_INCLUDED
00035 #define CONF_EPD_H_INCLUDED
00036 
00037 /** Define EPD_KIT_TOOL_FUNCTIONS if the code will work with EPD Kit Tool.
00038  * \note Comment out the #define below if you won't work with EPD Kit tool and
00039  *       just want to show two images change alternately by predefined image array.
00040  */
00041 //#define EPD_KIT_TOOL_FUNCTIONS
00042 
00043 /** \brief Supported COG version
00044  *
00045  * \note
00046  * - place the value here to assign which COG driving waveform will be used.
00047  * - Options are COG_V110_G1 and COG_V230_G2 */
00048 //#define COG_V110_G1
00049 #define COG_V230_G2
00050 
00051 /** The SPI frequency of this kit (8MHz) */
00052 #define COG_SPI_baudrate 8000000
00053 
00054 /** Define the number of ram buffer for system packet used interchangeably*/
00055 #define BUFFER_SIZE 1
00056 
00057 /** System Packet length=6~64, maximum=64.
00058 * The payload length of MSP430 LaunchPad is 32 bytes only.
00059 * ========================
00060 * | Byte | Name          |
00061 * |------|---------------|
00062 * | 0    | Packet Header |
00063 * | 1    | Packet Length |
00064 * | 2-3  | Kit ID        |
00065 * | 4    | Command Type  |
00066 * | 5-62 | Data          |
00067 * | 63   | CRC           |
00068 */
00069 #define PAYLOAD_SIZE 32
00070 
00071 /** Firmware version to display on EPD Kit Tool  */
00072 #define EPD_KIT_TOOL_VERSION    "1.11 "
00073 
00074 /** \brief Kit ID for recognizing by EPD Kit Tool
00075  *
00076  * \note
00077  * - High byte is IC vendor, low byte is the name of supported development kit
00078  * - Texas Instruments=01, MSP430 LaunchPad=01 */
00079 #define EPD_KIT_TOOL_ID         (uint16_t)0x0101
00080 
00081 #endif /* CONF_EPD_H_INCLUDED */
00082 
00083 
00084