stepdown7 2.1.0.0
|
This file contains API for Step Down 7 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 | stepdown7_t |
Step Down 7 Click context object. More... | |
struct | stepdown7_cfg_t |
Step Down 7 Click configuration object. More... | |
Enumerations | |
enum | stepdown7_return_value_t { STEPDOWN7_OK = 0 , STEPDOWN7_ERROR = -1 } |
Step Down 7 Click return value data. More... | |
Functions | |
void | stepdown7_cfg_setup (stepdown7_cfg_t *cfg) |
Step Down 7 configuration object setup function. | |
err_t | stepdown7_init (stepdown7_t *ctx, stepdown7_cfg_t *cfg) |
Step Down 7 initialization function. | |
err_t | stepdown7_default_cfg (stepdown7_t *ctx) |
Step Down 7 default configuration function. | |
err_t | stepdown7_generic_write (stepdown7_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Step Down 7 I2C writing function. | |
err_t | stepdown7_generic_read (stepdown7_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Step Down 7 I2C reading function. | |
void | stepdown7_set_mode (stepdown7_t *ctx, uint8_t mode) |
Step Down 5 mode selection function. | |
void | stepdown7_set_en (stepdown7_t *ctx, uint8_t en_state) |
Step Down 5 set EN pin state function. | |
uint8_t | stepdown7_get_pg_state (stepdown7_t *ctx) |
Step Down 5 get PG pin state function. | |
err_t | stepdown7_set_wiper_pos (stepdown7_t *ctx, uint16_t wiper_pos) |
Step Down 5 set wiper 1 position. | |
err_t | stepdown7_set_r1_resistance (stepdown7_t *ctx, uint32_t resistance) |
Step Down 7 set potentiometer resistance. | |
err_t | stepdown7_set_output (stepdown7_t *ctx, uint8_t voltage) |
Step Down 7 set output voltage. | |
This file contains API for Step Down 7 Click Driver.