Zephyr API Documentation
4.0.0
A Scalable Open Source RTOS
4.0.0
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
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
►
dsp
▼
dt-bindings
►
acpi
►
adc
►
battery
►
clock
►
dac
▼
dai
►
esai.h
►
display
►
dma
►
espi
►
ethernet
►
flash_controller
►
gnss
►
gpio
►
i2c
►
input
►
inputmux
►
interrupt-controller
►
ipc_service
►
led
►
lora
►
lvgl
►
memory-attr
►
memory-controller
►
mipi_dbi
►
mipi_dsi
►
misc
►
pcie
►
pinctrl
►
power
►
pwm
►
rdc
►
regulator
►
reserved-memory
►
reset
►
sensor
►
spi
►
timer
►
usb
►
usb-c
►
video
dt-util.h
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
posix
►
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
esai.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 NXP
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef _INCLUDE_ZEPHYR_DT_BINDINGS_DAI_ESAI_H_
8
#define _INCLUDE_ZEPHYR_DT_BINDINGS_DAI_ESAI_H_
9
10
/* ESAI pin IDs
11
* the values of these macros are meant to match
12
* the bit position from PCRC/PRRC's PC/PDC associated
13
* with each of these pins.
14
*/
15
#define ESAI_PIN_SCKR 0
16
#define ESAI_PIN_FSR 1
17
#define ESAI_PIN_HCKR 2
18
#define ESAI_PIN_SCKT 3
19
#define ESAI_PIN_FST 4
20
#define ESAI_PIN_HCKT 5
21
#define ESAI_PIN_SDO5_SDI0 6
22
#define ESAI_PIN_SDO4_SDI1 7
23
#define ESAI_PIN_SDO3_SDI2 8
24
#define ESAI_PIN_SDO2_SDI3 9
25
#define ESAI_PIN_SDO1 10
26
#define ESAI_PIN_SDO0 11
27
28
/* ESAI pin modes
29
* the values of these macros are set according to
30
* the following table:
31
*
32
* PDC = 0, PC = 0 => DISCONNECTED (0)
33
* PDC = 0, PC = 1 => GPIO INPUT (1)
34
* PDC = 1, PC = 0 => GPIO OUTPUT (2)
35
* PDC = 1, PC = 1 => ESAI (3)
36
*/
37
#define ESAI_PIN_DISCONNECTED 0
38
#define ESAI_PIN_GPIO_INPUT 1
39
#define ESAI_PIN_GPIO_OUTPUT 2
40
#define ESAI_PIN_ESAI 3
41
42
/* ESAI clock IDs */
43
#define ESAI_CLOCK_HCKT 0
44
#define ESAI_CLOCK_HCKR 1
45
#define ESAI_CLOCK_SCKR 2
46
#define ESAI_CLOCK_SCKT 3
47
#define ESAI_CLOCK_FSR 4
48
#define ESAI_CLOCK_FST 5
49
50
/* ESAI clock directions */
51
#define ESAI_CLOCK_INPUT 0
52
#define ESAI_CLOCK_OUTPUT 1
53
54
#endif
/* _INCLUDE_ZEPHYR_DT_BINDINGS_DAI_ESAI_H_ */
zephyr
dt-bindings
dai
esai.h
Generated on Sat Nov 16 2024 04:55:03 for Zephyr API Documentation by
1.12.0