Clone
Dependents: SignalProcessLab DigitalSignalAlgorithm_Lab DigitalSignal_Lab
Drivers/BSP/Components/Common/epd.h@0:fc80425b677a, 2019-08-26 (annotated)
- Committer:
- ngtkien
- Date:
- Mon Aug 26 16:33:09 2019 +0000
- Revision:
- 0:fc80425b677a
Library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ngtkien | 0:fc80425b677a | 1 | /** |
ngtkien | 0:fc80425b677a | 2 | ****************************************************************************** |
ngtkien | 0:fc80425b677a | 3 | * @file epd.h |
ngtkien | 0:fc80425b677a | 4 | * @author MCD Application Team |
ngtkien | 0:fc80425b677a | 5 | * @version V4.0.1 |
ngtkien | 0:fc80425b677a | 6 | * @date 21-July-2015 |
ngtkien | 0:fc80425b677a | 7 | * @brief This file contains all the functions prototypes for the |
ngtkien | 0:fc80425b677a | 8 | * EPD (E Paper Display) driver. |
ngtkien | 0:fc80425b677a | 9 | ****************************************************************************** |
ngtkien | 0:fc80425b677a | 10 | * @attention |
ngtkien | 0:fc80425b677a | 11 | * |
ngtkien | 0:fc80425b677a | 12 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
ngtkien | 0:fc80425b677a | 13 | * |
ngtkien | 0:fc80425b677a | 14 | * Redistribution and use in source and binary forms, with or without modification, |
ngtkien | 0:fc80425b677a | 15 | * are permitted provided that the following conditions are met: |
ngtkien | 0:fc80425b677a | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
ngtkien | 0:fc80425b677a | 17 | * this list of conditions and the following disclaimer. |
ngtkien | 0:fc80425b677a | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
ngtkien | 0:fc80425b677a | 19 | * this list of conditions and the following disclaimer in the documentation |
ngtkien | 0:fc80425b677a | 20 | * and/or other materials provided with the distribution. |
ngtkien | 0:fc80425b677a | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
ngtkien | 0:fc80425b677a | 22 | * may be used to endorse or promote products derived from this software |
ngtkien | 0:fc80425b677a | 23 | * without specific prior written permission. |
ngtkien | 0:fc80425b677a | 24 | * |
ngtkien | 0:fc80425b677a | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
ngtkien | 0:fc80425b677a | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
ngtkien | 0:fc80425b677a | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
ngtkien | 0:fc80425b677a | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
ngtkien | 0:fc80425b677a | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
ngtkien | 0:fc80425b677a | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
ngtkien | 0:fc80425b677a | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
ngtkien | 0:fc80425b677a | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
ngtkien | 0:fc80425b677a | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
ngtkien | 0:fc80425b677a | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
ngtkien | 0:fc80425b677a | 35 | * |
ngtkien | 0:fc80425b677a | 36 | ****************************************************************************** |
ngtkien | 0:fc80425b677a | 37 | */ |
ngtkien | 0:fc80425b677a | 38 | |
ngtkien | 0:fc80425b677a | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
ngtkien | 0:fc80425b677a | 40 | #ifndef __EPD_H |
ngtkien | 0:fc80425b677a | 41 | #define __EPD_H |
ngtkien | 0:fc80425b677a | 42 | |
ngtkien | 0:fc80425b677a | 43 | #ifdef __cplusplus |
ngtkien | 0:fc80425b677a | 44 | extern "C" { |
ngtkien | 0:fc80425b677a | 45 | #endif |
ngtkien | 0:fc80425b677a | 46 | |
ngtkien | 0:fc80425b677a | 47 | /* Includes ------------------------------------------------------------------*/ |
ngtkien | 0:fc80425b677a | 48 | #include <stdint.h> |
ngtkien | 0:fc80425b677a | 49 | |
ngtkien | 0:fc80425b677a | 50 | /** @addtogroup BSP |
ngtkien | 0:fc80425b677a | 51 | * @{ |
ngtkien | 0:fc80425b677a | 52 | */ |
ngtkien | 0:fc80425b677a | 53 | |
ngtkien | 0:fc80425b677a | 54 | /** @addtogroup Components |
ngtkien | 0:fc80425b677a | 55 | * @{ |
ngtkien | 0:fc80425b677a | 56 | */ |
ngtkien | 0:fc80425b677a | 57 | |
ngtkien | 0:fc80425b677a | 58 | /** @addtogroup Common |
ngtkien | 0:fc80425b677a | 59 | * @{ |
ngtkien | 0:fc80425b677a | 60 | */ |
ngtkien | 0:fc80425b677a | 61 | |
ngtkien | 0:fc80425b677a | 62 | /** @addtogroup EPD |
ngtkien | 0:fc80425b677a | 63 | * @{ |
ngtkien | 0:fc80425b677a | 64 | */ |
ngtkien | 0:fc80425b677a | 65 | |
ngtkien | 0:fc80425b677a | 66 | /** @defgroup EPD_Exported_Types |
ngtkien | 0:fc80425b677a | 67 | * @{ |
ngtkien | 0:fc80425b677a | 68 | */ |
ngtkien | 0:fc80425b677a | 69 | |
ngtkien | 0:fc80425b677a | 70 | /** @defgroup EPD_Driver_structure E Paper Display Driver structure |
ngtkien | 0:fc80425b677a | 71 | * @{ |
ngtkien | 0:fc80425b677a | 72 | */ |
ngtkien | 0:fc80425b677a | 73 | typedef struct |
ngtkien | 0:fc80425b677a | 74 | { |
ngtkien | 0:fc80425b677a | 75 | void (*Init)(void); |
ngtkien | 0:fc80425b677a | 76 | void (*WritePixel)(uint8_t); |
ngtkien | 0:fc80425b677a | 77 | |
ngtkien | 0:fc80425b677a | 78 | /* Optimized operation */ |
ngtkien | 0:fc80425b677a | 79 | void (*SetDisplayWindow)(uint16_t, uint16_t, uint16_t, uint16_t); |
ngtkien | 0:fc80425b677a | 80 | void (*RefreshDisplay)(void); |
ngtkien | 0:fc80425b677a | 81 | void (*CloseChargePump)(void); |
ngtkien | 0:fc80425b677a | 82 | |
ngtkien | 0:fc80425b677a | 83 | uint16_t (*GetEpdPixelWidth)(void); |
ngtkien | 0:fc80425b677a | 84 | uint16_t (*GetEpdPixelHeight)(void); |
ngtkien | 0:fc80425b677a | 85 | void (*DrawImage)(uint16_t, uint16_t, uint16_t, uint16_t, uint8_t*); |
ngtkien | 0:fc80425b677a | 86 | } |
ngtkien | 0:fc80425b677a | 87 | EPD_DrvTypeDef; |
ngtkien | 0:fc80425b677a | 88 | /** |
ngtkien | 0:fc80425b677a | 89 | * @} |
ngtkien | 0:fc80425b677a | 90 | */ |
ngtkien | 0:fc80425b677a | 91 | |
ngtkien | 0:fc80425b677a | 92 | /** |
ngtkien | 0:fc80425b677a | 93 | * @} |
ngtkien | 0:fc80425b677a | 94 | */ |
ngtkien | 0:fc80425b677a | 95 | |
ngtkien | 0:fc80425b677a | 96 | /** |
ngtkien | 0:fc80425b677a | 97 | * @} |
ngtkien | 0:fc80425b677a | 98 | */ |
ngtkien | 0:fc80425b677a | 99 | |
ngtkien | 0:fc80425b677a | 100 | /** |
ngtkien | 0:fc80425b677a | 101 | * @} |
ngtkien | 0:fc80425b677a | 102 | */ |
ngtkien | 0:fc80425b677a | 103 | |
ngtkien | 0:fc80425b677a | 104 | /** |
ngtkien | 0:fc80425b677a | 105 | * @} |
ngtkien | 0:fc80425b677a | 106 | */ |
ngtkien | 0:fc80425b677a | 107 | |
ngtkien | 0:fc80425b677a | 108 | |
ngtkien | 0:fc80425b677a | 109 | #ifdef __cplusplus |
ngtkien | 0:fc80425b677a | 110 | } |
ngtkien | 0:fc80425b677a | 111 | #endif |
ngtkien | 0:fc80425b677a | 112 | |
ngtkien | 0:fc80425b677a | 113 | #endif /* EPD_H */ |
ngtkien | 0:fc80425b677a | 114 | |
ngtkien | 0:fc80425b677a | 115 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |