clockgen 2.0.0.0
|
This file contains API for Clock Gen Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | clockgen_t |
Click ctx object definition. More... | |
struct | clockgen_cfg_t |
Click configuration structure definition. More... | |
struct | clockgen_params_t |
Structure for setting clock parameters. More... | |
Functions | |
void | clockgen_cfg_setup (clockgen_cfg_t *cfg) |
Config Object Initialization function. | |
CLOCKGEN_RETVAL | clockgen_init (clockgen_t *ctx, clockgen_cfg_t *cfg) |
Initialization function. | |
void | clockgen_default_cfg (clockgen_t *ctx) |
Click Default Configuration function. | |
void | clockgen_generic_write (clockgen_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | clockgen_generic_read (clockgen_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | clockgen_enable_clk (clockgen_t *ctx, uint8_t clk_num) |
Function enabling specific clock. | |
void | clockgen_ctrl_clk (clockgen_t *ctx, uint8_t clk_num, uint8_t ctrl_data) |
Function enabling specific clock. | |
void | clockgen_set_disable_state (clockgen_t *ctx, uint8_t clk_num, uint8_t disable_state) |
Function for setting clock disabling state. | |
void | clockgen_set_clk_pll (clockgen_t *ctx, uint8_t clk_num, uint8_t pll_sel) |
Function for setting clock pll-s. | |
void | clockgen_set_params (clockgen_t *ctx, uint8_t clk_pll_num, clockgen_params_t *param_group) |
Function for setting clock pll-s. | |
void | clockgen_get_params (clockgen_t *ctx, uint8_t clk_pll_num, clockgen_params_t *param_group) |
Function for getting clock pll-s. | |
void | clockgen_set_frequency (clockgen_t *ctx, uint8_t clk_num, uint8_t pll_num, uint32_t freq) |
Function for setting clock frequency on specific clock. | |
void | clockgen_setup_pll (clockgen_t *ctx, uint8_t pll, uint8_t mult, uint32_t num) |
Function for setting pll. | |
void | clockgen_setup_multisyinth (clockgen_t *ctx, uint8_t clk_num, uint32_t divider, uint32_t num) |
Function for setting clock divider. | |
This file contains API for Clock Gen Click driver.