clockgen4 2.0.0.0
|
This file contains API for Clock Gen 4 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | clockgen4_s |
Clock Gen 4 Click context object. More... | |
struct | clockgen4_cfg_t |
Clock Gen 4 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | clockgen4_master_io_t) (struct clockgen4_s *, uint8_t, uint8_t *, uint8_t) |
Clock Gen 4 Click driver interface. | |
typedef struct clockgen4_s | clockgen4_t |
Clock Gen 4 Click context object. | |
Enumerations | |
enum | clockgen4_drv_t { CLOCKGEN4_DRV_SEL_SPI , CLOCKGEN4_DRV_SEL_I2C } |
Clock Gen 4 Click driver selector. More... | |
enum | clockgen4_return_value_t { CLOCKGEN4_OK = 0 , CLOCKGEN4_ERROR = -1 } |
Clock Gen 4 Click return value data. More... | |
Functions | |
void | clockgen4_cfg_setup (clockgen4_cfg_t *cfg) |
Clock Gen 4 configuration object setup function. | |
void | clockgen4_drv_interface_selection (clockgen4_cfg_t *cfg, clockgen4_drv_t drv_sel) |
Clock Gen 4 driver interface setup function. | |
err_t | clockgen4_init (clockgen4_t *ctx, clockgen4_cfg_t *cfg) |
Clock Gen 4 initialization function. | |
err_t | clockgen4_default_cfg (clockgen4_t *ctx) |
Clock Gen 4 default configuration function. | |
err_t | clockgen4_generic_write (clockgen4_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Clock Gen 4 data writing function. | |
err_t | clockgen4_generic_read (clockgen4_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Clock Gen 4 data reading function. | |
void | clockgen4_dev_ctl (clockgen4_t *ctx, uint8_t dev_ctl) |
Clock Gen 4 device control function. | |
void | clockgen4_dev_cfg (clockgen4_t *ctx, uint8_t dev_cfg) |
Clock Gen 4 device configuration function. | |
void | clockgen4_glob_cfg (clockgen4_t *ctx, uint8_t glob_cfg) |
Clock Gen 4 global configuration function. | |
void | clockgen4_fnc_cfg_1 (clockgen4_t *ctx, uint8_t fnc_cfg) |
Clock Gen 4 configuration 1 function. | |
void | clockgen4_fnc_cfg_2 (clockgen4_t *ctx, uint8_t fnc_cfg) |
Clock Gen 4 configuration 2 function. | |
uint32_t | clockgen4_set_ratio (clockgen4_t *ctx, float ratio) |
Clock Gen 4 set ratio function. | |
This file contains API for Clock Gen 4 Click Driver.
typedef err_t(* clockgen4_master_io_t) (struct clockgen4_s *, uint8_t, uint8_t *, uint8_t) |
Clock Gen 4 Click driver interface.
Definition of driver interface of Clock Gen 4 Click driver. Driver serial interface.
typedef struct clockgen4_s clockgen4_t |
Clock Gen 4 Click context object.
Context object definition of Clock Gen 4 Click driver.
enum clockgen4_drv_t |