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
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
►
modules
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
▼
drivers
►
adc
►
bluetooth
►
can
►
clock_control
►
comparator
►
console
►
dac
►
dma
►
eeprom
►
ethernet
▼
firmware
▼
nrf_ironside
►
boot_report.h
►
call.h
►
cpuconf.h
►
dvfs.h
►
update.h
►
scmi
►
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
►
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
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
video
►
virtio
►
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
dvfs.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Nordic Semiconductor ASA
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef ZEPHYR_INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_NRF_IRONSIDE_DVFS_H_
7
#define ZEPHYR_INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_NRF_IRONSIDE_DVFS_H_
8
9
#include <
stdint.h
>
10
#include <
stdbool.h
>
11
#include <stddef.h>
12
#include <
errno.h
>
13
14
enum
ironside_dvfs_oppoint
{
15
IRONSIDE_DVFS_OPP_HIGH
= 0,
16
IRONSIDE_DVFS_OPP_MEDLOW
= 1,
17
IRONSIDE_DVFS_OPP_LOW
= 2
18
};
14
enum
ironside_dvfs_oppoint
{
…
};
19
26
#define IRONSIDE_DVFS_OPPOINT_COUNT (3)
27
34
#define IRONSIDE_DVFS_ERROR_WRONG_OPPOINT (1)
36
#define IRONSIDE_DVFS_ERROR_BUSY (2)
38
#define IRONSIDE_DVFS_ERROR_OPPOINT_DATA (3)
40
#define IRONSIDE_DVFS_ERROR_PERMISSION (4)
42
#define IRONSIDE_DVFS_ERROR_NO_CHANGE_NEEDED (5)
44
#define IRONSIDE_DVFS_ERROR_TIMEOUT (6)
46
#define IRONSIDE_DVFS_ERROR_ISR_NOT_ALLOWED (7)
47
52
/* IRONside call identifiers with implicit versions.
53
*
54
* With the initial "version 0", the service ABI is allowed to break until the
55
* first production release of IRONside SE.
56
*/
57
#define IRONSIDE_CALL_ID_DVFS_SERVICE_V0 3
58
59
/* Index of the DVFS oppoint within the service buffer. */
60
#define IRONSIDE_DVFS_SERVICE_OPPOINT_IDX (0)
61
/* Index of the return code within the service buffer. */
62
#define IRONSIDE_DVFS_SERVICE_RETCODE_IDX (0)
63
73
int
ironside_dvfs_change_oppoint
(
enum
ironside_dvfs_oppoint
dvfs_oppoint);
74
81
static
inline
bool
ironside_dvfs_is_oppoint_valid
(
enum
ironside_dvfs_oppoint
dvfs_oppoint)
82
{
83
if
(dvfs_oppoint !=
IRONSIDE_DVFS_OPP_HIGH
&&
84
dvfs_oppoint !=
IRONSIDE_DVFS_OPP_MEDLOW
&&
85
dvfs_oppoint !=
IRONSIDE_DVFS_OPP_LOW
) {
86
return
false
;
87
}
88
89
return
true
;
90
}
81
static
inline
bool
ironside_dvfs_is_oppoint_valid
(
enum
ironside_dvfs_oppoint
dvfs_oppoint) {
…
}
91
92
#endif
/* ZEPHYR_INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_NRF_IRONSIDE_DVFS_H_ */
ironside_dvfs_is_oppoint_valid
static bool ironside_dvfs_is_oppoint_valid(enum ironside_dvfs_oppoint dvfs_oppoint)
Check if the given oppoint is valid.
Definition
dvfs.h:81
ironside_dvfs_oppoint
ironside_dvfs_oppoint
Definition
dvfs.h:14
IRONSIDE_DVFS_OPP_HIGH
@ IRONSIDE_DVFS_OPP_HIGH
Definition
dvfs.h:15
IRONSIDE_DVFS_OPP_LOW
@ IRONSIDE_DVFS_OPP_LOW
Definition
dvfs.h:17
IRONSIDE_DVFS_OPP_MEDLOW
@ IRONSIDE_DVFS_OPP_MEDLOW
Definition
dvfs.h:16
ironside_dvfs_change_oppoint
int ironside_dvfs_change_oppoint(enum ironside_dvfs_oppoint dvfs_oppoint)
Change the current DVFS oppoint.
errno.h
System error numbers.
stdbool.h
stdint.h
zephyr
drivers
firmware
nrf_ironside
dvfs.h
Generated on Wed Jun 18 2025 06:06:03 for Zephyr API Documentation by
1.12.0