|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
#include <stdint.h>#include <zephyr/device.h>#include <zephyr/devicetree.h>#include <zephyr/devicetree/clocks.h>#include <zephyr/drivers/clock_control.h>Go to the source code of this file.
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_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. | |