Microchip® Advanced Software Framework

EPD_controller.h File Reference

Copyright (c) 2012-2014 Pervasive Displays Inc.

All rights reserved.

Functions

void EPD_display_from_flash (uint8_t EPD_type_index, long previous_image_address, long new_image_address, EPD_read_flash_handler On_EPD_read_flash)
 Show image from Flash memory. More...
 
void EPD_display_from_flash_Ex (uint8_t EPD_type_index, long previous_image_address, long new_image_address, EPD_read_flash_handler On_EPD_read_flash)
 Show image from Flash memory when SPI is common used with COG and Flash. More...
 
void EPD_display_from_pointer (uint8_t EPD_type_index, uint8_t *previous_image_ptr, uint8_t *new_image_ptr)
 Show image from the pointer of memory array. More...
 
void EPD_display_init (void)
 Initialize the EPD hardware setting. More...
 
void EPD_power_init (uint8_t EPD_type_index)
 Initialize the EPD hardware setting and COG driver. More...
 

void EPD_display_from_flash ( uint8_t  EPD_type_index,
long  previous_image_address,
long  new_image_address,
EPD_read_flash_handler  On_EPD_read_flash 
)

Show image from Flash memory.

Parameters
EPD_type_indexThe defined EPD size
previous_image_addressThe address of memory that stores previous image
new_image_addressThe address of memory that stores new image
On_EPD_read_flashDeveloper needs to create an external function to read flash

References EPD_display_from_flash_prt(), EPD_init(), EPD_initialize_driver(), EPD_power_off(), and EPD_power_on().

void EPD_display_from_flash_Ex ( uint8_t  EPD_type_index,
long  previous_image_address,
long  new_image_address,
EPD_read_flash_handler  On_EPD_read_flash 
)

Show image from Flash memory when SPI is common used with COG and Flash.

Note
  • This function must work with EPD_power_init when SPI is common used with COG and Flash, or the charge pump doesn't work correctly.
  • EPD_power_init -> write data to flash (switch SPI) -> EPD_display_from_flash_Ex
Parameters
EPD_type_indexThe defined EPD size
previous_image_addressThe address of memory that stores previous image
new_image_addressThe address of memory that stores new image
On_EPD_read_flashDeveloper needs to create an external function to read flash

References EPD_display_from_flash_prt(), and EPD_power_off().

void EPD_display_from_pointer ( uint8_t  EPD_type_index,
uint8_t *  previous_image_ptr,
uint8_t *  new_image_ptr 
)

Show image from the pointer of memory array.

Parameters
EPD_type_indexThe defined EPD size
previous_image_ptrThe pointer of memory that stores previous image
new_image_ptrThe pointer of memory that stores new image

References EPD_display_from_array_prt(), EPD_init(), EPD_initialize_driver(), EPD_power_off(), and EPD_power_on().

Referenced by main().

void EPD_display_init ( void  )

Initialize the EPD hardware setting.

References EPD_init().

Referenced by main().

void EPD_power_init ( uint8_t  EPD_type_index)

Initialize the EPD hardware setting and COG driver.

Parameters
EPD_type_indexThe defined EPD size

References EPD_init(), EPD_initialize_driver(), and EPD_power_on().