Hanna
Sourcecode Batteriemanagementsystem
Funktionen | Variablen
ili9341.c-Dateireferenz

ILI9341 display controller component driver aus dem ASF 3.26.0. Mehr ...

#include "ili9341.h"
#include "ili9341_regs.h"
#include <util/delay.h>
Include-Abhängigkeitsdiagramm für ili9341.c:

gehe zum Quellcode dieser Datei

Funktionen

static void ili9341_controller_init_registers (void)
 Initialize all the display registers. Mehr ...
 
void ili9341_copy_pixels_from_screen (ili9341_color_t *pixels, uint32_t count)
 Copy pixels from the screen to a pixel buffer. Mehr ...
 
void ili9341_copy_pixels_to_screen (const ili9341_color_t *pixels, uint32_t count)
 Copy pixels from SRAM to the screen. Mehr ...
 
void ili9341_copy_progmem_pixels_to_screen (ili9341_color_t PROGMEM_PTR_T pixels, uint32_t count, uint8_t swap)
 Copy pixels from progmem to the screen. Mehr ...
 
static __always_inline void ili9341_deselect_chip (void)
 Helper function to de-select the CS of the controller on the bus. Mehr ...
 
void ili9341_duplicate_pixel (const ili9341_color_t color, uint32_t count)
 Set a given number of pixels to the same color. Mehr ...
 
static void ili9341_exit_standby (void)
 Send display commands to exit standby mode. Mehr ...
 
void ili9341_init (void)
 Initialise the controller. Mehr ...
 
static void ili9341_interface_init (void)
 Initialize the hardware interface to the controller. Mehr ...
 
static __always_inline uint8_t ili9341_read_byte (void)
 Helper function to read a byte from an arbitrary interface. Mehr ...
 
ili9341_color_t ili9341_read_gram (void)
 Read a single color from the graphical memory. Mehr ...
 
static void ili9341_reset_display (void)
 Reset the display using the digital control interface. Mehr ...
 
static __always_inline void ili9341_select_chip (void)
 Helper function to select the CS of the controller on the bus. Mehr ...
 
static __always_inline void ili9341_select_command_mode (void)
 Helper function to select command byte transmission mode. Mehr ...
 
static __always_inline void ili9341_select_data_mode (void)
 Helper function to select data byte transmission mode. Mehr ...
 
static __always_inline void ili9341_send_byte (uint8_t data)
 Helper function to send a byte over an arbitrary interface. Mehr ...
 
static void ili9341_send_command (uint8_t command)
 Sends a command to the controller, and prepares for parameter transfer. Mehr ...
 
static void ili9341_send_draw_limits (const bool send_end_limits)
 Helper function to send the drawing limits (boundaries) to the display. Mehr ...
 
void ili9341_set_bottom_right_limit (ili9341_coord_t x, ili9341_coord_t y)
 Set the display bottom right drawing limit. Mehr ...
 
void ili9341_set_limits (ili9341_coord_t start_x, ili9341_coord_t start_y, ili9341_coord_t end_x, ili9341_coord_t end_y)
 Set the full display drawing limits. Mehr ...
 
void ili9341_set_orientation (uint8_t flags)
 Sets the orientation of the display data. Mehr ...
 
void ili9341_set_top_left_limit (ili9341_coord_t x, ili9341_coord_t y)
 Set the display top left drawing limit. Mehr ...
 
static __always_inline void ili9341_wait_for_send_done (void)
 Helper function to wait for the last send operation to complete. Mehr ...
 
void ili9341_write_gram (ili9341_color_t color)
 Write the graphical memory with a single color pixel. Mehr ...
 

Variablen

static ili9341_coord_t limit_end_x
 
static ili9341_coord_t limit_end_y
 
static ili9341_coord_t limit_start_x
 
static ili9341_coord_t limit_start_y
 

Ausführliche Beschreibung

ILI9341 display controller component driver aus dem ASF 3.26.0.

Autor
Copyright (c) 2012-2015 Atmel Corporation. All rights reserved.

Definiert in Datei ili9341.c.

Dokumentation der Funktionen

static void ili9341_controller_init_registers ( void  )
static

Initialize all the display registers.

This function will set up all the internal registers according the the manufacturer's description.

Definiert in Zeile 576 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

void ili9341_copy_progmem_pixels_to_screen ( ili9341_color_t PROGMEM_PTR_T  pixels,
uint32_t  count,
uint8_t  swap 
)

Copy pixels from progmem to the screen.

This function can be used to copy data from program memory (flash) to the display.

Limits have to be set prior to calling this function, e.g.:

1 ili9341_set_top_left_limit(0, 0);
2 ili9341_set_bottom_right_limit(320, 240);
3 ...
Parameter
pixelsPointer to the progmem data
countNumber of pixels to write

Definiert in Zeile 426 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

static __always_inline void ili9341_deselect_chip ( void  )
static

Helper function to de-select the CS of the controller on the bus.

Definiert in Zeile 62 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static void ili9341_exit_standby ( void  )
static

Send display commands to exit standby mode.

This function is used to exit the display standby mode, which is the default mode after a reset signal to the display.

Definiert in Zeile 650 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static void ili9341_interface_init ( void  )
static

Initialize the hardware interface to the controller.

This will initialize the module used for communication with the controller. Currently supported interfaces by this component driver are the SPI interface through either the SPI module in master mode or the USART in Master SPI mode. Configuration must be done in the associated conf_ili9341.h file.

Definiert in Zeile 538 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static __always_inline uint8_t ili9341_read_byte ( void  )
static

Helper function to read a byte from an arbitrary interface.

This function is used to hide what interface is used by the component driver, e.g. the component driver does not need to know if USART in SPI mode is used or the native SPI module.

Rückgabewerte
uint8_tByte of data read from the display controller

Definiert in Zeile 146 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static void ili9341_reset_display ( void  )
static

Reset the display using the digital control interface.

Controls the reset pin of the display controller to reset the display.

Definiert in Zeile 665 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static __always_inline void ili9341_select_chip ( void  )
static

Helper function to select the CS of the controller on the bus.

Definiert in Zeile 53 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static __always_inline void ili9341_select_command_mode ( void  )
static

Helper function to select command byte transmission mode.

Definiert in Zeile 71 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static __always_inline void ili9341_select_data_mode ( void  )
static

Helper function to select data byte transmission mode.

Definiert in Zeile 80 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static __always_inline void ili9341_send_byte ( uint8_t  data)
static

Helper function to send a byte over an arbitrary interface.

This function is used to hide what interface is used by the component driver, e.g. the component driver does not need to know if USART in SPI mode is used or the native SPI module.

Parameter
dataThe byte to be transfered

Definiert in Zeile 116 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static void ili9341_send_command ( uint8_t  command)
static

Sends a command to the controller, and prepares for parameter transfer.

Helper function to use for sending a command to the controller.

Zu beachten
After the command is sent, the display remains selected.
Parameter
commandThe command to send

Definiert in Zeile 190 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static void ili9341_send_draw_limits ( const bool  send_end_limits)
static

Helper function to send the drawing limits (boundaries) to the display.

This function is used to send the currently set upper-left and lower-right drawing limits to the display, as set through the various limit functions.

Parameter
send_end_limitsTrue to also send the lower-right drawing limits

Definiert in Zeile 211 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static __always_inline void ili9341_wait_for_send_done ( void  )
static

Helper function to wait for the last send operation to complete.

Definiert in Zeile 89 der Datei ili9341.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird: