EmbeddedArtists AB / EM027BS013

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 Pervasive_Displays_small_EPD.h Source File

Pervasive_Displays_small_EPD.h

Go to the documentation of this file.
00001 /**
00002 * \file
00003 *
00004 * \brief The definition of Pervasive Displays Inc.'s EPDs
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 EPAPER_H_INCLUDED
00035 #define EPAPER_H_INCLUDED
00036 
00037 #include "platform.h"
00038 //#include <stdint.h>
00039 //#include <string.h>
00040 //#include <stdlib.h>
00041 //#include <msp430g2553.h>
00042 
00043 /** 
00044  * \brief Developer needs to create an external function if wants to read flash */
00045 typedef void (*EPD_read_flash_handler)(long flash_address,uint8_t *target_buffer,
00046         uint8_t byte_length);
00047 
00048 #if !defined(FALSE)
00049 #define FALSE 0 /**< define FALSE=0 */
00050 #endif
00051 
00052 #if !defined(TRUE)
00053 #define TRUE (1) /**< define TRUE=1 */
00054 #endif
00055 
00056 #if !defined(NULL)
00057 #define NULL (void *)0  /**< define NULL */
00058 #endif
00059 
00060 #if !defined(_NOP)
00061 #define _NOP() asm("nop")
00062 #endif
00063 
00064 #if !defined(bool)
00065 #define bool uint8_t
00066 #endif
00067 
00068 
00069 extern void delay_ms(unsigned int ms);
00070 
00071 #define LINE_SIZE   64  /**< maximum data line size */
00072 
00073 /**
00074  * \brief Support 1.44", 2" and 2.7" three type EPD */
00075 enum EPD_SIZE {
00076     EPD_144,
00077     EPD_200,
00078     EPD_270
00079 };
00080 #include "conf_EPD.h"
00081 #include "EPD_hardware_gpio.h"
00082 #include "EPD_hardware_driver.h"
00083 #include "EPD_COG_process.h"
00084 #include "EPD_controller.h"
00085 
00086 #endif  //EPAPER_H_INCLUDED
00087 
00088 
00089 
00090 
00091