|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Clock Control (SF32LB specifics). More...
Data Structures | |
| struct | sf32lb_clock_dt_spec |
| SF32LB Clock DT spec. More... | |
Macros | |
| #define | SF32LB_CLOCK_DT_SPEC_GET(node_id) |
| Initialize a sf32lb_clock_dt_spec structure from a DT node. | |
| #define | SF32LB_CLOCK_DT_SPEC_GET_OR(node_id, default_spec) |
| Same as SF32LB_CLOCK_DT_SPEC_GET but with a default value. | |
| #define | SF32LB_CLOCK_DT_INST_SPEC_GET(index) |
| Initialize a sf32lb_clock_dt_spec structure from a DT instance. | |
| #define | SF32LB_CLOCK_DT_INST_PARENT_SPEC_GET(index) |
| Initialize a sf32lb_clock_dt_spec structure from a parent DT instance. | |
| #define | SF32LB_CLOCK_DT_INST_SPEC_GET_OR(index, default_spec) |
| Same as SF32LB_CLOCK_DT_INST_SPEC_GET but with a default value. | |
Functions | |
| static bool | sf32lb_clock_is_ready_dt (const struct sf32lb_clock_dt_spec *spec) |
| Check if the clock device is ready. | |
| static int | sf32lb_clock_control_on_dt (const struct sf32lb_clock_dt_spec *spec) |
| Turn on a clock using a sf32lb_clock_dt_spec structure. | |
| static int | sf32lb_clock_control_off_dt (const struct sf32lb_clock_dt_spec *spec) |
| Turn off a clock using a sf32lb_clock_dt_spec structure. | |
| static enum clock_control_status | sf32lb_clock_control_get_status_dt (const struct sf32lb_clock_dt_spec *spec) |
| Get the status of a clock using a sf32lb_clock_dt_spec structure. | |
| static uint32_t | sf32lb_clock_control_get_rate_dt (const struct sf32lb_clock_dt_spec *spec, uint32_t *rate) |
| Get the clock rate using a sf32lb_clock_dt_spec structure. | |
Clock Control (SF32LB specifics).
| #define SF32LB_CLOCK_DT_INST_PARENT_SPEC_GET | ( | index | ) |
#include <zephyr/drivers/clock_control/sf32lb.h>
Initialize a sf32lb_clock_dt_spec structure from a parent DT instance.
| index | DT instance index |
| #define SF32LB_CLOCK_DT_INST_SPEC_GET | ( | index | ) |
#include <zephyr/drivers/clock_control/sf32lb.h>
Initialize a sf32lb_clock_dt_spec structure from a DT instance.
| index | DT instance index |
| #define SF32LB_CLOCK_DT_INST_SPEC_GET_OR | ( | index, | |
| default_spec ) |
#include <zephyr/drivers/clock_control/sf32lb.h>
Same as SF32LB_CLOCK_DT_INST_SPEC_GET but with a default value.
| index | DT instance index |
| default_spec | Default value to be used if the node has no clocks property. |
| #define SF32LB_CLOCK_DT_SPEC_GET | ( | node_id | ) |
#include <zephyr/drivers/clock_control/sf32lb.h>
Initialize a sf32lb_clock_dt_spec structure from a DT node.
| node_id | DT node identifier |
| #define SF32LB_CLOCK_DT_SPEC_GET_OR | ( | node_id, | |
| default_spec ) |
#include <zephyr/drivers/clock_control/sf32lb.h>
Same as SF32LB_CLOCK_DT_SPEC_GET but with a default value.
| node_id | DT node identifier |
| default_spec | Default value to be used if the node has no clocks property. |
|
inlinestatic |
#include <zephyr/drivers/clock_control/sf32lb.h>
Get the clock rate using a sf32lb_clock_dt_spec structure.
| spec | SF32LB clock DT spec | |
| [out] | rate | Stored clock rate in Hz |
|
inlinestatic |
#include <zephyr/drivers/clock_control/sf32lb.h>
Get the status of a clock using a sf32lb_clock_dt_spec structure.
| spec | SF32LB clock DT spec |
|
inlinestatic |
#include <zephyr/drivers/clock_control/sf32lb.h>
Turn off a clock using a sf32lb_clock_dt_spec structure.
| spec | SF32LB clock DT spec |
|
inlinestatic |
#include <zephyr/drivers/clock_control/sf32lb.h>
Turn on a clock using a sf32lb_clock_dt_spec structure.
| spec | SF32LB clock DT spec |
|
inlinestatic |
#include <zephyr/drivers/clock_control/sf32lb.h>
Check if the clock device is ready.
| spec | SF32LB clock DT spec |