vreg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef _HARDWARE_VREG_H
8 #define _HARDWARE_VREG_H
9 
10 #include "pico.h"
11 #include "hardware/structs/vreg_and_chip_reset.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
27  VREG_VOLTAGE_0_85 = 0b0110,
28  VREG_VOLTAGE_0_90 = 0b0111,
29  VREG_VOLTAGE_0_95 = 0b1000,
30  VREG_VOLTAGE_1_00 = 0b1001,
31  VREG_VOLTAGE_1_05 = 0b1010,
32  VREG_VOLTAGE_1_10 = 0b1011,
33  VREG_VOLTAGE_1_15 = 0b1100,
34  VREG_VOLTAGE_1_20 = 0b1101,
35  VREG_VOLTAGE_1_25 = 0b1110,
36  VREG_VOLTAGE_1_30 = 0b1111,
37 
41 };
42 
43 
49 void vreg_set_voltage(enum vreg_voltage voltage);
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif
VREG_VOLTAGE_0_90
@ VREG_VOLTAGE_0_90
0.90v
Definition: vreg.h:28
VREG_VOLTAGE_0_85
@ VREG_VOLTAGE_0_85
0.85v
Definition: vreg.h:27
vreg_voltage
vreg_voltage
Definition: vreg.h:26
VREG_VOLTAGE_MIN
@ VREG_VOLTAGE_MIN
Always the minimum possible voltage.
Definition: vreg.h:38
VREG_VOLTAGE_1_15
@ VREG_VOLTAGE_1_15
1.15v
Definition: vreg.h:33
VREG_VOLTAGE_1_25
@ VREG_VOLTAGE_1_25
1.25v
Definition: vreg.h:35
VREG_VOLTAGE_1_30
@ VREG_VOLTAGE_1_30
1.30v
Definition: vreg.h:36
VREG_VOLTAGE_1_10
@ VREG_VOLTAGE_1_10
1.10v
Definition: vreg.h:32
VREG_VOLTAGE_1_20
@ VREG_VOLTAGE_1_20
1.20v
Definition: vreg.h:34
VREG_VOLTAGE_DEFAULT
@ VREG_VOLTAGE_DEFAULT
Default voltage on power up.
Definition: vreg.h:39
vreg_set_voltage
void vreg_set_voltage(enum vreg_voltage voltage)
Set voltage.
Definition: vreg.c:10
VREG_VOLTAGE_MAX
@ VREG_VOLTAGE_MAX
Always the maximum possible voltage.
Definition: vreg.h:40
VREG_VOLTAGE_0_95
@ VREG_VOLTAGE_0_95
0.95v
Definition: vreg.h:29
pico.h
VREG_VOLTAGE_1_00
@ VREG_VOLTAGE_1_00
1.00v
Definition: vreg.h:30
VREG_VOLTAGE_1_05
@ VREG_VOLTAGE_1_05
1.05v
Definition: vreg.h:31