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

Committer:
embeddedartists
Date:
Tue Jul 22 11:59:06 2014 +0000
Revision:
0:9297e33f50cf
First version of library for the EM027BS013 ePaper display.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 0:9297e33f50cf 1 /**
embeddedartists 0:9297e33f50cf 2 * \file
embeddedartists 0:9297e33f50cf 3 *
embeddedartists 0:9297e33f50cf 4 * \brief The definition of Pervasive Displays Inc.'s EPDs
embeddedartists 0:9297e33f50cf 5 *
embeddedartists 0:9297e33f50cf 6 * Copyright (c) 2012-2014 Pervasive Displays Inc. All rights reserved.
embeddedartists 0:9297e33f50cf 7 *
embeddedartists 0:9297e33f50cf 8 * Authors: Pervasive Displays Inc.
embeddedartists 0:9297e33f50cf 9 *
embeddedartists 0:9297e33f50cf 10 * Redistribution and use in source and binary forms, with or without
embeddedartists 0:9297e33f50cf 11 * modification, are permitted provided that the following conditions
embeddedartists 0:9297e33f50cf 12 * are met:
embeddedartists 0:9297e33f50cf 13 *
embeddedartists 0:9297e33f50cf 14 * 1. Redistributions of source code must retain the above copyright
embeddedartists 0:9297e33f50cf 15 * notice, this list of conditions and the following disclaimer.
embeddedartists 0:9297e33f50cf 16 * 2. Redistributions in binary form must reproduce the above copyright
embeddedartists 0:9297e33f50cf 17 * notice, this list of conditions and the following disclaimer in
embeddedartists 0:9297e33f50cf 18 * the documentation and/or other materials provided with the
embeddedartists 0:9297e33f50cf 19 * distribution.
embeddedartists 0:9297e33f50cf 20 *
embeddedartists 0:9297e33f50cf 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
embeddedartists 0:9297e33f50cf 22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
embeddedartists 0:9297e33f50cf 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
embeddedartists 0:9297e33f50cf 24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
embeddedartists 0:9297e33f50cf 25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
embeddedartists 0:9297e33f50cf 26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
embeddedartists 0:9297e33f50cf 27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
embeddedartists 0:9297e33f50cf 28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
embeddedartists 0:9297e33f50cf 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
embeddedartists 0:9297e33f50cf 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
embeddedartists 0:9297e33f50cf 31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
embeddedartists 0:9297e33f50cf 32 */
embeddedartists 0:9297e33f50cf 33
embeddedartists 0:9297e33f50cf 34 #ifndef EPAPER_H_INCLUDED
embeddedartists 0:9297e33f50cf 35 #define EPAPER_H_INCLUDED
embeddedartists 0:9297e33f50cf 36
embeddedartists 0:9297e33f50cf 37 #include "platform.h"
embeddedartists 0:9297e33f50cf 38 //#include <stdint.h>
embeddedartists 0:9297e33f50cf 39 //#include <string.h>
embeddedartists 0:9297e33f50cf 40 //#include <stdlib.h>
embeddedartists 0:9297e33f50cf 41 //#include <msp430g2553.h>
embeddedartists 0:9297e33f50cf 42
embeddedartists 0:9297e33f50cf 43 /**
embeddedartists 0:9297e33f50cf 44 * \brief Developer needs to create an external function if wants to read flash */
embeddedartists 0:9297e33f50cf 45 typedef void (*EPD_read_flash_handler)(long flash_address,uint8_t *target_buffer,
embeddedartists 0:9297e33f50cf 46 uint8_t byte_length);
embeddedartists 0:9297e33f50cf 47
embeddedartists 0:9297e33f50cf 48 #if !defined(FALSE)
embeddedartists 0:9297e33f50cf 49 #define FALSE 0 /**< define FALSE=0 */
embeddedartists 0:9297e33f50cf 50 #endif
embeddedartists 0:9297e33f50cf 51
embeddedartists 0:9297e33f50cf 52 #if !defined(TRUE)
embeddedartists 0:9297e33f50cf 53 #define TRUE (1) /**< define TRUE=1 */
embeddedartists 0:9297e33f50cf 54 #endif
embeddedartists 0:9297e33f50cf 55
embeddedartists 0:9297e33f50cf 56 #if !defined(NULL)
embeddedartists 0:9297e33f50cf 57 #define NULL (void *)0 /**< define NULL */
embeddedartists 0:9297e33f50cf 58 #endif
embeddedartists 0:9297e33f50cf 59
embeddedartists 0:9297e33f50cf 60 #if !defined(_NOP)
embeddedartists 0:9297e33f50cf 61 #define _NOP() asm("nop")
embeddedartists 0:9297e33f50cf 62 #endif
embeddedartists 0:9297e33f50cf 63
embeddedartists 0:9297e33f50cf 64 #if !defined(bool)
embeddedartists 0:9297e33f50cf 65 #define bool uint8_t
embeddedartists 0:9297e33f50cf 66 #endif
embeddedartists 0:9297e33f50cf 67
embeddedartists 0:9297e33f50cf 68
embeddedartists 0:9297e33f50cf 69 extern void delay_ms(unsigned int ms);
embeddedartists 0:9297e33f50cf 70
embeddedartists 0:9297e33f50cf 71 #define LINE_SIZE 64 /**< maximum data line size */
embeddedartists 0:9297e33f50cf 72
embeddedartists 0:9297e33f50cf 73 /**
embeddedartists 0:9297e33f50cf 74 * \brief Support 1.44", 2" and 2.7" three type EPD */
embeddedartists 0:9297e33f50cf 75 enum EPD_SIZE {
embeddedartists 0:9297e33f50cf 76 EPD_144,
embeddedartists 0:9297e33f50cf 77 EPD_200,
embeddedartists 0:9297e33f50cf 78 EPD_270
embeddedartists 0:9297e33f50cf 79 };
embeddedartists 0:9297e33f50cf 80 #include "conf_EPD.h"
embeddedartists 0:9297e33f50cf 81 #include "EPD_hardware_gpio.h"
embeddedartists 0:9297e33f50cf 82 #include "EPD_hardware_driver.h"
embeddedartists 0:9297e33f50cf 83 #include "EPD_COG_process.h"
embeddedartists 0:9297e33f50cf 84 #include "EPD_controller.h"
embeddedartists 0:9297e33f50cf 85
embeddedartists 0:9297e33f50cf 86 #endif //EPAPER_H_INCLUDED
embeddedartists 0:9297e33f50cf 87
embeddedartists 0:9297e33f50cf 88
embeddedartists 0:9297e33f50cf 89
embeddedartists 0:9297e33f50cf 90
embeddedartists 0:9297e33f50cf 91