Home
last modified time | relevance | path

Searched refs:linear_range (Results 1 – 15 of 15) sorted by relevance

/Zephyr-Core-3.6.0/include/zephyr/sys/
Dlinear_range.h61 struct linear_range { struct
95 static inline uint32_t linear_range_values_count(const struct linear_range *r) in linear_range_values_count()
109 const struct linear_range *r, size_t r_cnt) in linear_range_group_values_count()
127 static inline int32_t linear_range_get_max_value(const struct linear_range *r) in linear_range_get_max_value()
142 static inline int linear_range_get_value(const struct linear_range *r, in linear_range_get_value()
165 static inline int linear_range_group_get_value(const struct linear_range *r, in linear_range_group_get_value()
193 static inline int linear_range_get_index(const struct linear_range *r, in linear_range_get_index()
231 static inline int linear_range_group_get_index(const struct linear_range *r, in linear_range_group_get_index()
265 static inline int linear_range_get_win_index(const struct linear_range *r, in linear_range_get_win_index()
318 static inline int linear_range_group_get_win_index(const struct linear_range *r, in linear_range_group_get_win_index()
/Zephyr-Core-3.6.0/drivers/regulator/
Dregulator_da1469x.c23 static const struct linear_range curren_ranges[] = {
27 static const struct linear_range vdd_clamp_ranges[] = {
46 static const struct linear_range vdd_ranges[] = {
50 static const struct linear_range vdd_sleep_ranges[] = {
54 static const struct linear_range v14_ranges[] = {
58 static const struct linear_range v30_ranges[] = {
62 static const struct linear_range v18_ranges[] = {
66 static const struct linear_range v18p_ranges[] = {
81 const struct linear_range *voltage_ranges;
82 const struct linear_range *current_ranges;
Dregulator_max20335.c51 const struct linear_range *uv_range;
52 const struct linear_range *ua_range;
70 static const struct linear_range buck1_range = LINEAR_RANGE_INIT(700000, 25000U, 0x0U, 0x3FU);
71 static const struct linear_range buck2_range = LINEAR_RANGE_INIT(700000, 50000U, 0x0U, 0x3FU);
72 static const struct linear_range buck12_current_limit_range =
74 static const struct linear_range ldo1_range = LINEAR_RANGE_INIT(800000, 100000U, 0x0U, 0x1CU);
75 static const struct linear_range ldo23_range = LINEAR_RANGE_INIT(900000, 100000U, 0x0U, 0x1FU);
178 int32_t max_uv, const struct linear_range *range, in regulator_max20335_set_buck_ldo_voltage()
194 const struct linear_range *range, in regulator_max20335_buck12_ldo123_get_voltage()
Dregulator_axp192.c47 const struct linear_range *ranges;
63 static const struct linear_range dcdc1_ranges[] = {
82 static const struct linear_range dcdc2_ranges[] = {
101 static const struct linear_range dcdc3_ranges[] = {
120 static const struct linear_range ldoio0_ranges[] = {
138 static const struct linear_range ldo2_ranges[] = {
156 static const struct linear_range ldo3_ranges[] = {
Dregulator_npm6001.c87 static const struct linear_range buck0_range = LINEAR_RANGE_INIT(1800000, 100000U, 0x0U, 0xFU);
89 static const struct linear_range buck1_range = LINEAR_RANGE_INIT(700000, 50000U, 0x0U, 0xEU);
91 static const struct linear_range buck2_range = LINEAR_RANGE_INIT(1200000, 50000U, 0xAU, 0xEU);
93 static const struct linear_range buck3_range = LINEAR_RANGE_INIT(500000, 25000U, 0x0U, 0x70U);
114 int32_t max_uv, const struct linear_range *range, in regulator_npm6001_buck012_set_voltage()
232 const struct linear_range *range, in regulator_npm6001_buck0123_get_voltage()
Dregulator_pca9420.c120 const struct linear_range *ranges;
146 static const struct linear_range buck1_ranges[] = {
152 static const struct linear_range buck2_ranges[] = {
159 static const struct linear_range ldo1_ranges[] = {
164 static const struct linear_range ldo2_ranges[] = {
Dregulator_adp5360.c45 const struct linear_range *ranges;
49 static const struct linear_range buck_ranges[] = {
61 static const struct linear_range buckboost_ranges[] = {
Dregulator_rpi_pico.c16 static const struct linear_range core_ranges[] = {
Dregulator_nxp_vref.c18 static const struct linear_range utrim_range = LINEAR_RANGE_INIT(1000000, 100000U, 0x0U, 0xBU);
Dregulator_npm1300.c97 static const struct linear_range buckldo_range = LINEAR_RANGE_INIT(1000000, 100000, 0U, 23U);
/Zephyr-Core-3.6.0/tests/lib/linear_range/src/
Dmain.c31 static const struct linear_range r[] = {
40 ZTEST(linear_range, test_linear_range_init) in ZTEST() argument
48 ZTEST(linear_range, test_linear_range_values_count) in ZTEST() argument
58 ZTEST(linear_range, test_linear_range_get_max_value) in ZTEST() argument
66 ZTEST(linear_range, test_linear_range_get_value) in ZTEST() argument
179 ZTEST(linear_range, test_linear_range_get_index) in ZTEST() argument
247 ZTEST(linear_range, test_linear_range_get_win_index) in ZTEST() argument
333 ZTEST_SUITE(linear_range, NULL, NULL, NULL, NULL, NULL);
/Zephyr-Core-3.6.0/tests/lib/linear_range/
DCMakeLists.txt6 project(linear_range) project
/Zephyr-Core-3.6.0/drivers/sensor/npm1300_charger/
Dnpm1300_charger.c131 static const struct linear_range charger_volt_ranges[] = {
135 static const struct linear_range charger_current_range = LINEAR_RANGE_INIT(32000, 2000, 16U, 400U);
138 static const struct linear_range discharge_limit_range = LINEAR_RANGE_INIT(268090, 3230, 83U, 415U);
141 static const struct linear_range vbus_current_ranges[] = {
/Zephyr-Core-3.6.0/drivers/charger/
Dcharger_max20335.c49 static const struct linear_range charger_uv_range =
/Zephyr-Core-3.6.0/doc/releases/
Drelease-notes-3.3.rst2483 :zephyr_file:`include/zephyr/sys/linear_range.h`.