Skip to content
Permalink
f6faa7d18e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
70 lines (62 sloc) 2.38 KB
/******************************************************************************
* \file mtb_e2271cs021_display.h
*
* Description: This file contains display size and pin macros and definitons.
*
* For the details of E-INK display hardware and driver interface, see the
* documents available at the following website:
* https://www.pervasivedisplays.com/product/2-71-e-ink-display/
*
*******************************************************************************
* \copyright
* Copyright 2018-2021 Cypress Semiconductor Corporation
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "cyhal_gpio.h"
#if defined(__cplusplus)
extern "C"
{
#endif
/**
* \addtogroup group_board_libs
* \{
*/
/** Number of horizontal pixels in the E-ink display */
#define MTB_E2271CS021_DISPLAY_SIZE_X (264u)
/** Number of vertical pixels in the E-ink display */
#define MTB_E2271CS021_DISPLAY_SIZE_Y (176u)
/** Number of bits consumed by each pixel for color information */
#define MTB_E2271CS021_DISPLAY_COLOR_BITS (1u)
/** Configuration structure defining the necessary pins to communicate with the E-ink display */
typedef struct
{
cyhal_gpio_t spi_mosi; /**< SPI MOSI pin */
cyhal_gpio_t spi_miso; /**< SPI MISO pin */
cyhal_gpio_t spi_sclk; /**< SPI SCLK pin */
cyhal_gpio_t spi_cs; /**< SPI CS pin */
cyhal_gpio_t reset; /**< GPIO Reset pin */
cyhal_gpio_t busy; /**< GPIO Busy pin */
cyhal_gpio_t discharge; /**< GPIO Discharge pin */
cyhal_gpio_t enable; /**< GPIO Enable pin */
cyhal_gpio_t border; /**< GPIO Border pin */
cyhal_gpio_t io_enable; /**< GPIO IO Enable pin */
} mtb_e2271cs021_pins_t;
/** \} group_board_libs */
#if defined(__cplusplus)
}
#endif