The definition of EPD GPIO pins.
Copyright (c) 2012-2014 Pervasive Displays Inc. All rights reserved.
#include "Pervasive_Displays_small_EPD.h"
Macros | |
#define | _BV(bit) (1 << (bit)) |
left shift 1 bit More... | |
#define | _HIGH 1 |
signal high More... | |
#define | _LOW !_HIGH |
signal low More... | |
#define | config_gpio_dir_i(Pin) ioport_set_pin_dir(Pin, IOPORT_DIR_INPUT) |
set input direction for an IOPORT pin More... | |
#define | config_gpio_dir_o(Pin) ioport_set_pin_dir(Pin, IOPORT_DIR_OUTPUT) |
set output direction for an IOPORT pin More... | |
#define | input_get(Pin) ioport_get_pin_level(Pin) |
get current value of an IOPORT pin More... | |
#define | set_gpio_high(Pin) ioport_set_pin_level(Pin,_HIGH) |
set HIGH for an IOPORT pin More... | |
#define | set_gpio_invert(Pin) ioport_toggle_pin_level(Pin) |
toggle the value of an IOPORT pin More... | |
#define | set_gpio_low(Pin) ioport_set_pin_level(Pin,_LOW) |
set LOW for an IOPORT pin More... | |
Functions | |
void | EPD_border_high (void) |
Set BORDER_CONTROL pin to high. More... | |
void | EPD_border_low (void) |
Set BORDER_CONTROL pin to low. More... | |
void | EPD_cs_high (void) |
Set EPD_CS pin to high. More... | |
void | EPD_cs_low (void) |
Set EPD_CS pin to low. More... | |
void | EPD_discharge_high (void) |
Set DISCHARGE pin to high. More... | |
void | EPD_discharge_low (void) |
Set DISCHARGE pin to low. More... | |
void | EPD_flash_cs_high (void) |
Set Flash_CS pin to high. More... | |
void | EPD_flash_cs_low (void) |
Set Flash_CS pin to low. More... | |
void | EPD_initialize_gpio (void) |
Configure GPIO. More... | |
bool | EPD_IsBusy (void) |
Get BUSY pin status. More... | |
void | EPD_pwm_high (void) |
Set PWM pin to high. More... | |
void | EPD_pwm_low (void) |
Set PWM pin to low. More... | |
void | EPD_rst_high (void) |
Set /RESET pin to high. More... | |
void | EPD_rst_low (void) |
Set /RESET pin to low. More... | |
void | EPD_Vcc_turn_off (void) |
Set Vcc (PANEL_ON) to low. More... | |
void | EPD_Vcc_turn_on (void) |
Set Vcc (PANEL_ON) to high. More... | |
void | SPICLK_low (void) |
Set Clock of SPI to low. More... | |
void | SPIMISO_low (void) |
Set MISO pin of SPI to low. More... | |
void | SPIMOSI_low (void) |
Set MOSI pin of SPI to low. More... | |
#define _BV | ( | bit | ) | (1 << (bit)) |
left shift 1 bit
#define _HIGH 1 |
signal high
#define _LOW !_HIGH |
signal low
#define config_gpio_dir_i | ( | Pin | ) | ioport_set_pin_dir(Pin, IOPORT_DIR_INPUT) |
set input direction for an IOPORT pin
Referenced by EPD_initialize_gpio().
#define config_gpio_dir_o | ( | Pin | ) | ioport_set_pin_dir(Pin, IOPORT_DIR_OUTPUT) |
set output direction for an IOPORT pin
Referenced by EPD_initialize_gpio(), epd_spi_detach(), and SPIMISO_low().
#define input_get | ( | Pin | ) | ioport_get_pin_level(Pin) |
get current value of an IOPORT pin
Referenced by EPD_IsBusy().
#define set_gpio_high | ( | Pin | ) | ioport_set_pin_level(Pin,_HIGH) |
set HIGH for an IOPORT pin
Referenced by EPD_border_high(), EPD_cs_high(), EPD_discharge_high(), EPD_pwm_high(), EPD_rst_high(), and EPD_Vcc_turn_on().
#define set_gpio_invert | ( | Pin | ) | ioport_toggle_pin_level(Pin) |
toggle the value of an IOPORT pin
#define set_gpio_low | ( | Pin | ) | ioport_set_pin_level(Pin,_LOW) |
set LOW for an IOPORT pin
Referenced by EPD_border_low(), EPD_cs_low(), EPD_discharge_low(), EPD_pwm_low(), EPD_rst_low(), epd_spi_detach(), EPD_Vcc_turn_off(), SPICLK_low(), SPIMISO_low(), and SPIMOSI_low().
void EPD_border_high | ( | void | ) |
Set BORDER_CONTROL pin to high.
References set_gpio_high.
void EPD_border_low | ( | void | ) |
Set BORDER_CONTROL pin to low.
References set_gpio_low.
Referenced by EPD_display_hardware_init(), and EPD_initialize_gpio().
void EPD_cs_high | ( | void | ) |
Set EPD_CS pin to high.
References set_gpio_high.
Referenced by epd_spi_attach(), epd_spi_send(), and epd_spi_send_byte().
void EPD_cs_low | ( | void | ) |
Set EPD_CS pin to low.
References set_gpio_low.
Referenced by EPD_display_hardware_init(), epd_spi_send(), and epd_spi_send_byte().
void EPD_discharge_high | ( | void | ) |
Set DISCHARGE pin to high.
References set_gpio_high.
void EPD_discharge_low | ( | void | ) |
void EPD_flash_cs_high | ( | void | ) |
Set Flash_CS pin to high.
not used at present
Referenced by EPD_initialize_gpio(), and epd_spi_attach().
void EPD_flash_cs_low | ( | void | ) |
void EPD_initialize_gpio | ( | void | ) |
Configure GPIO.
not used at present
config_gpio_dir_o( Flash_CS_PIN); config_gpio_dir_i( Temper_PIN);
References config_gpio_dir_i, config_gpio_dir_o, EPD_border_low(), and EPD_flash_cs_high().
Referenced by EPD_display_hardware_init().
bool EPD_IsBusy | ( | void | ) |
Get BUSY pin status.
References input_get.
void EPD_pwm_high | ( | void | ) |
Set PWM pin to high.
References set_gpio_high.
void EPD_pwm_low | ( | void | ) |
void EPD_rst_high | ( | void | ) |
Set /RESET pin to high.
References set_gpio_high.
void EPD_rst_low | ( | void | ) |
void EPD_Vcc_turn_off | ( | void | ) |
void EPD_Vcc_turn_on | ( | void | ) |
Set Vcc (PANEL_ON) to high.
References set_gpio_high.
void SPICLK_low | ( | void | ) |
Set Clock of SPI to low.
References set_gpio_low.
void SPIMISO_low | ( | void | ) |
Set MISO pin of SPI to low.
References config_gpio_dir_o, and set_gpio_low.
void SPIMOSI_low | ( | void | ) |
Set MOSI pin of SPI to low.
References set_gpio_low.