Microchip® Advanced Software Framework

EPD_hardware_gpio.c File Reference

The functions of EPD GPIO.

Copyright (c) 2012-2014 Pervasive Displays Inc. All rights reserved.

#include "EPD_hardware_gpio.h"
#include "conf_EPD.h"

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...
 

void EPD_border_high ( void  )

Set BORDER_CONTROL pin to high.

References EPD_BORDER_PIN, and set_gpio_high.

Referenced by EPD_power_off(), and EPD_power_on().

void EPD_border_low ( void  )

Set BORDER_CONTROL pin to low.

References EPD_BORDER_PIN, and set_gpio_low.

Referenced by EPD_display_hardware_init(), EPD_init(), EPD_initialize_gpio(), and EPD_power_off().

void EPD_cs_high ( void  )

Set EPD_CS pin to high.

References EPD_SPI_CS_PIN, and set_gpio_high.

Referenced by EPD_power_on(), epd_spi_attach(), epd_spi_send(), and epd_spi_send_byte().

void EPD_cs_low ( void  )
void EPD_discharge_high ( void  )

Set DISCHARGE pin to high.

References EPD_DISCHARGE_PIN, and set_gpio_high.

Referenced by EPD_power_off().

void EPD_discharge_low ( void  )

Set DISCHARGE pin to low.

References EPD_DISCHARGE_PIN, and set_gpio_low.

Referenced by EPD_display_hardware_init(), EPD_init(), EPD_power_off(), and EPD_power_on().

void EPD_flash_cs_high ( void  )

Set Flash_CS pin to high.

not used at present 

set_gpio_high(Flash_CS_PIN);

Referenced by EPD_initialize_gpio(), and epd_spi_attach().

void EPD_flash_cs_low ( void  )

Set Flash_CS pin to low.

not used at present 

set_gpio_low(Flash_CS_PIN);

bool EPD_IsBusy ( void  )

Get BUSY pin status.

References EPD_BUSY_PIN, and input_get.

Referenced by EPD_initialize_driver().

void EPD_pwm_high ( void  )

Set PWM pin to high.

References EPD_PWM_PIN, and set_gpio_high.

void EPD_pwm_low ( void  )

Set PWM pin to low.

References EPD_PWM_PIN, and set_gpio_low.

Referenced by EPD_display_hardware_init(), and EPD_init().

void EPD_rst_high ( void  )

Set /RESET pin to high.

References EPD_RST_PIN, and set_gpio_high.

Referenced by EPD_power_on().

void EPD_rst_low ( void  )

Set /RESET pin to low.

References EPD_RST_PIN, and set_gpio_low.

Referenced by EPD_display_hardware_init(), EPD_init(), EPD_power_off(), and EPD_power_on().

void EPD_Vcc_turn_off ( void  )

Set Vcc (PANEL_ON) to low.

References EPD_PANELON_PIN, and set_gpio_low.

Referenced by EPD_display_hardware_init(), and EPD_power_off().

void EPD_Vcc_turn_on ( void  )

Set Vcc (PANEL_ON) to high.

References EPD_PANELON_PIN, and set_gpio_high.

Referenced by EPD_power_on().

void SPICLK_low ( void  )

Set Clock of SPI to low.

References EPD_SPI_CLK_PIN, and set_gpio_low.

void SPIMISO_low ( void  )

Set MISO pin of SPI to low.

References config_gpio_dir_o, EPD_SPI_MISO_PIN, and set_gpio_low.

void SPIMOSI_low ( void  )

Set MOSI pin of SPI to low.

References EPD_SPI_MOSI_PIN, and set_gpio_low.