roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
esp_rgb_common.h File Reference
#include <stddef.h>
#include "sdkconfig.h"
#include "soc/soc_caps.h"
#include "hal/dma_types.h"
#include "esp_intr_alloc.h"
#include "esp_heap_caps.h"
Include dependency graph for esp_rgb_common.h:

Go to the source code of this file.

Macros

#define LCD_I80_INTR_ALLOC_FLAGS   ESP_INTR_FLAG_INTRDISABLED
 
#define LCD_I80_MEM_ALLOC_CAPS   MALLOC_CAP_DEFAULT
 
#define LCD_PERIPH_CLOCK_PRE_SCALE   (2)
 

Functions

void lcd_com_mount_dma_data (dma_descriptor_t *desc_head, const void *buffer, size_t len)
 Mount data to DMA descriptors.
 
static void lcd_com_reverse_buffer_bytes (uint8_t *buf, int start, int end)
 Reverse the bytes in the buffer.
 

Macro Definition Documentation

◆ LCD_I80_INTR_ALLOC_FLAGS

#define LCD_I80_INTR_ALLOC_FLAGS   ESP_INTR_FLAG_INTRDISABLED

Definition at line 22 of file esp_rgb_common.h.

◆ LCD_I80_MEM_ALLOC_CAPS

#define LCD_I80_MEM_ALLOC_CAPS   MALLOC_CAP_DEFAULT

Definition at line 23 of file esp_rgb_common.h.

◆ LCD_PERIPH_CLOCK_PRE_SCALE

#define LCD_PERIPH_CLOCK_PRE_SCALE   (2)

Definition at line 25 of file esp_rgb_common.h.

Function Documentation

◆ lcd_com_mount_dma_data()

void lcd_com_mount_dma_data ( dma_descriptor_t *  desc_head,
const void *  buffer,
size_t  len 
)

Mount data to DMA descriptors.

Parameters
desc_headPoint to the head of DMA descriptor chain
bufferData buffer
lenSize of the data buffer, in bytes

◆ lcd_com_reverse_buffer_bytes()

static void lcd_com_reverse_buffer_bytes ( uint8_t *  buf,
int  start,
int  end 
)
inlinestatic

Reverse the bytes in the buffer.

Note
LCD is big-endian, e.g. to send command 0x1234, byte 0x12 should appear on the bus first However, the low level peripheral (like i80, i2s) will send 0x34 first. This helper function is used to reverse the bytes order
Parameters
bufbuffer address
startstart index of the buffer
endend index of the buffer

Definition at line 72 of file esp_rgb_common.h.