stepdown11 2.1.0.0
|
This file contains API for Step Down 11 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 | stepdown11_t |
Step Down 11 Click context object. More... | |
struct | stepdown11_cfg_t |
Step Down 11 Click configuration object. More... | |
Enumerations | |
enum | stepdown11_return_value_t { STEPDOWN11_OK = 0 , STEPDOWN11_ERROR = -1 } |
Step Down 11 Click return value data. More... | |
Functions | |
void | stepdown11_cfg_setup (stepdown11_cfg_t *cfg) |
Step Down 11 configuration object setup function. | |
err_t | stepdown11_init (stepdown11_t *ctx, stepdown11_cfg_t *cfg) |
Step Down 11 initialization function. | |
err_t | stepdown11_default_cfg (stepdown11_t *ctx) |
Step Down 11 default configuration function. | |
err_t | stepdown11_generic_write (stepdown11_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Step Down 11 I2C writing function. | |
err_t | stepdown11_generic_read (stepdown11_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Step Down 11 I2C reading function. | |
void | stepdown11_set_en_pin (stepdown11_t *ctx, uint8_t pin_state) |
Step Down 11 set EN pin state function. | |
uint8_t | stepdown11_get_pg_pin (stepdown11_t *ctx) |
Step Down 11 get PG pin state function. | |
void | stepdown11_reset_digi_pot (stepdown11_t *ctx) |
Step Down 11 reset digi pot function. | |
err_t | stepdown11_write_data (stepdown11_t *ctx, uint8_t ctrl, uint8_t addr, uint8_t data_in) |
Step Down 11 I2C writing function. | |
err_t | stepdown11_read_data (stepdown11_t *ctx, uint8_t addr, uint8_t mask, uint8_t *data_out) |
Step Down 11 I2C reading function. | |
err_t | stepdown11_write_rdac (stepdown11_t *ctx, uint8_t addr, uint8_t data_in) |
Step Down 11 write the RDAC function. | |
err_t | stepdown11_read_rdac (stepdown11_t *ctx, uint8_t addr, uint8_t *data_out) |
Step Down 11 read the RDAC function. | |
err_t | stepdown11_set_resistance (stepdown11_t *ctx, uint8_t wiper_sel, float res_kohm) |
Step Down 11 set the resistance function. | |
err_t | stepdown11_get_resistance (stepdown11_t *ctx, uint8_t wiper_sel, float *res_kohm) |
Step Down 11 get the resistance function. | |
err_t | stepdown11_set_voltage (stepdown11_t *ctx, float v_out) |
Step Down 11 set voltage output function. | |
err_t | stepdown11_set_mode (stepdown11_t *ctx, float sconf_mode) |
Step Down 11 set S-CONF device configuration mode function. | |
This file contains API for Step Down 11 Click Driver.