Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
▼
drivers
►
adc
►
bluetooth
►
can
►
clock_control
►
comparator
►
console
▼
dma
►
dma_esp32.h
►
dma_gd32.h
►
dma_intel_lpss.h
►
dma_mcux_lpc.h
►
dma_mcux_pxp.h
►
dma_mcux_smartdma.h
►
dma_silabs_ldma.h
►
dma_smartbond.h
►
dma_stm32.h
►
eeprom
►
ethernet
►
firmware
►
flash
►
gnss
►
gpio
►
haptics
►
i2c
►
i3c
►
ieee802154
►
interrupt_controller
►
led
►
led_strip
►
mfd
►
mic_privacy
►
mipi_dsi
►
misc
►
mm
►
modem
►
mspi
►
pcie
►
pinctrl
►
pm_cpu_ops
►
power
►
pwm
►
regulator
►
retained_mem
►
rtc
►
sensor
►
serial
►
sip_svc
►
spi
►
stepper
►
timer
►
uart
►
usb
►
usb_c
►
virtualization
►
wifi
►
adc.h
►
auxdisplay.h
►
bbram.h
►
bluetooth.h
cache.h
►
can.h
►
cellular.h
►
charger.h
►
clock_control.h
►
comparator.h
►
coredump.h
►
counter.h
►
dac.h
►
dai.h
►
disk.h
►
display.h
►
dma.h
►
edac.h
►
eeprom.h
►
emul.h
►
emul_bbram.h
►
emul_fuel_gauge.h
►
emul_sensor.h
►
emul_stub_device.h
►
entropy.h
►
espi.h
►
espi_emul.h
►
espi_saf.h
►
flash.h
►
fpga.h
►
fuel_gauge.h
►
gnss.h
►
gpio.h
►
haptics.h
►
hwinfo.h
►
hwspinlock.h
►
i2c.h
►
i2c_emul.h
►
i2s.h
►
i3c.h
►
ipm.h
►
led.h
►
led_strip.h
►
loopback_disk.h
►
lora.h
►
mbox.h
►
mdio.h
►
mipi_dbi.h
►
mipi_dsi.h
►
mspi.h
►
mspi_emul.h
►
peci.h
►
pinctrl.h
►
pm_cpu_ops.h
►
ps2.h
►
ptp_clock.h
►
pwm.h
►
regulator.h
►
reset.h
►
retained_mem.h
►
rtc.h
►
sdhc.h
►
sensor.h
►
sensor_attribute_types.h
►
sensor_clock.h
►
sensor_data_types.h
►
smbus.h
►
spi.h
►
spi_emul.h
►
stepper.h
►
swdp.h
►
syscon.h
►
tee.h
►
uart.h
►
uart_emul.h
►
uart_pipe.h
►
video-controls.h
►
video.h
►
w1.h
►
watchdog.h
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mctp
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
dma_mcux_pxp.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023-2024 NXP
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_DMA_MCUX_PXP_H_
8
#define ZEPHYR_INCLUDE_DRIVERS_DMA_MCUX_PXP_H_
9
10
#define DMA_MCUX_PXP_CMD_MASK 0xE0
11
#define DMA_MCUX_PXP_CMD_SHIFT 0x5
12
13
#define DMA_MCUX_PXP_FMT_MASK 0x1F
14
#define DMA_MCUX_PXP_FMT_SHIFT 0x0
15
16
/*
17
* In order to configure the PXP for rotation, the user should
18
* supply a format and command as the DMA slot parameter, like so:
19
* dma_slot = (DMA_MCUX_PXP_FTM(DMA_MCUX_PXP_FMT_RGB565) |
20
* DMA_MCUX_PXP_CMD(DMA_MCUX_PXP_CMD_ROTATE_90))
21
* head block source address: input buffer address
22
* head block destination address: output buffer address
23
* source data size: input buffer size in bytes
24
* source burst length: height of source buffer in pixels
25
* dest data size: output buffer size in bytes
26
* dest burst length: height of destination buffer in pixels
27
*/
28
29
#define DMA_MCUX_PXP_FMT(x) ((x << DMA_MCUX_PXP_FMT_SHIFT) & DMA_MCUX_PXP_FMT_MASK)
30
#define DMA_MCUX_PXP_CMD(x) ((x << DMA_MCUX_PXP_CMD_SHIFT) & DMA_MCUX_PXP_CMD_MASK)
31
32
#define DMA_MCUX_PXP_CMD_ROTATE_0 0
33
#define DMA_MCUX_PXP_CMD_ROTATE_90 1
34
#define DMA_MCUX_PXP_CMD_ROTATE_180 2
35
#define DMA_MCUX_PXP_CMD_ROTATE_270 3
36
37
#define DMA_MCUX_PXP_FMT_RGB565 0
38
#define DMA_MCUX_PXP_FMT_RGB888 1
39
#define DMA_MCUX_PXP_FMT_ARGB8888 2
40
41
#define DMA_MCUX_PXP_FLIP_MASK 0x3
42
#define DMA_MCUX_PXP_FLIP_SHIFT 0x0
43
44
/*
45
* In order to configure the PXP to flip, the user should
46
* supply a flip setting as the DMA linked_channel parameter, like so:
47
* linked_channel |= DMA_MCUX_PXP_FLIP(DMA_MCUX_PXP_FLIP_HORIZONTAL)
48
*/
49
50
#define DMA_MCUX_PXP_FLIP(x) ((x << DMA_MCUX_PXP_FLIP_SHIFT) & DMA_MCUX_PXP_FLIP_MASK)
51
52
#define DMA_MCUX_PXP_FLIP_DISABLE 0
53
#define DMA_MCUX_PXP_FLIP_HORIZONTAL 1
54
#define DMA_MCUX_PXP_FLIP_VERTICAL 2
55
#define DMA_MCUX_PXP_FLIP_BOTH 3
56
57
#endif
/* ZEPHYR_INCLUDE_DRIVERS_DMA_MCUX_PXP_H_ */
zephyr
drivers
dma
dma_mcux_pxp.h
Generated on Fri Mar 14 2025 12:05:19 for Zephyr API Documentation by
1.12.0