Library to control the EM027BS013 ePaper display from Pervasive Display.
Dependents: app_epaper_EM027BS013_LPC1549 lpc4088_ebb_epaper EaEpaper_EM027BS013 app_epaper_EM027BS013 ... more
Diff: Pervasive_Displays_small_EPD.h
- Revision:
- 0:9297e33f50cf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Pervasive_Displays_small_EPD.h Tue Jul 22 11:59:06 2014 +0000 @@ -0,0 +1,91 @@ +/** +* \file +* +* \brief The definition of Pervasive Displays Inc.'s EPDs +* +* Copyright (c) 2012-2014 Pervasive Displays Inc. All rights reserved. +* +* Authors: Pervasive Displays Inc. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions +* are met: +* +* 1. Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* 2. Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in +* the documentation and/or other materials provided with the +* distribution. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef EPAPER_H_INCLUDED +#define EPAPER_H_INCLUDED + +#include "platform.h" +//#include <stdint.h> +//#include <string.h> +//#include <stdlib.h> +//#include <msp430g2553.h> + +/** + * \brief Developer needs to create an external function if wants to read flash */ +typedef void (*EPD_read_flash_handler)(long flash_address,uint8_t *target_buffer, + uint8_t byte_length); + +#if !defined(FALSE) +#define FALSE 0 /**< define FALSE=0 */ +#endif + +#if !defined(TRUE) +#define TRUE (1) /**< define TRUE=1 */ +#endif + +#if !defined(NULL) +#define NULL (void *)0 /**< define NULL */ +#endif + +#if !defined(_NOP) +#define _NOP() asm("nop") +#endif + +#if !defined(bool) +#define bool uint8_t +#endif + + +extern void delay_ms(unsigned int ms); + +#define LINE_SIZE 64 /**< maximum data line size */ + +/** + * \brief Support 1.44", 2" and 2.7" three type EPD */ +enum EPD_SIZE { + EPD_144, + EPD_200, + EPD_270 +}; +#include "conf_EPD.h" +#include "EPD_hardware_gpio.h" +#include "EPD_hardware_driver.h" +#include "EPD_COG_process.h" +#include "EPD_controller.h" + +#endif //EPAPER_H_INCLUDED + + + + +