|
| typedef void * | clock_control_subsys_t |
| | clock_control_subsys_t is a type to identify a clock controller sub-system.
|
| typedef void * | clock_control_subsys_rate_t |
| | clock_control_subsys_rate_t is a type to identify a clock controller sub-system rate.
|
| typedef void(* | clock_control_cb_t) (const struct device *dev, clock_control_subsys_t subsys, void *user_data) |
| | Callback called on clock started.
|
| typedef int(* | clock_control) (const struct device *dev, clock_control_subsys_t sys) |
| typedef int(* | clock_control_get) (const struct device *dev, clock_control_subsys_t sys, uint32_t *rate) |
| typedef int(* | clock_control_async_on_fn) (const struct device *dev, clock_control_subsys_t sys, clock_control_cb_t cb, void *user_data) |
| typedef enum clock_control_status(* | clock_control_get_status_fn) (const struct device *dev, clock_control_subsys_t sys) |
| typedef int(* | clock_control_set) (const struct device *dev, clock_control_subsys_t sys, clock_control_subsys_rate_t rate) |
| typedef int(* | clock_control_configure_fn) (const struct device *dev, clock_control_subsys_t sys, void *data) |
|
| static int | clock_control_on (const struct device *dev, clock_control_subsys_t sys) |
| | Enable a clock controlled by the device.
|
| static int | clock_control_off (const struct device *dev, clock_control_subsys_t sys) |
| | Disable a clock controlled by the device.
|
| static int | clock_control_async_on (const struct device *dev, clock_control_subsys_t sys, clock_control_cb_t cb, void *user_data) |
| | Request clock to start with notification when clock has been started.
|
| static enum clock_control_status | clock_control_get_status (const struct device *dev, clock_control_subsys_t sys) |
| | Get clock status.
|
| static int | clock_control_get_rate (const struct device *dev, clock_control_subsys_t sys, uint32_t *rate) |
| | Obtain the clock rate of given sub-system.
|
| static int | clock_control_set_rate (const struct device *dev, clock_control_subsys_t sys, clock_control_subsys_rate_t rate) |
| | Set the rate of the clock controlled by the device.
|
| static int | clock_control_configure (const struct device *dev, clock_control_subsys_t sys, void *data) |
| | Configure a source clock.
|
Main header file for clock control driver API.