stepdown5
2.1.0.0
|
This file contains API for Step Down 5 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 | stepdown5_t |
Step Down 5 Click context object. More... | |
struct | stepdown5_cfg_t |
Step Down 5 Click configuration object. More... | |
Enumerations | |
enum | stepdown5_return_value_t { STEPDOWN5_OK = 0, STEPDOWN5_ERROR = -1 } |
Step Down 5 Click return value data. More... | |
Functions | |
void | stepdown5_cfg_setup (stepdown5_cfg_t *cfg) |
Step Down 5 configuration object setup function. More... | |
err_t | stepdown5_init (stepdown5_t *ctx, stepdown5_cfg_t *cfg) |
Step Down 5 initialization function. More... | |
err_t | stepdown5_default_cfg (stepdown5_t *ctx) |
Step Down 5 default configuration function. More... | |
err_t | stepdown5_generic_write (stepdown5_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Step Down 5 I2C writing function. More... | |
err_t | stepdown5_generic_read (stepdown5_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Step Down 5 I2C reading function. More... | |
void | stepdown5_set_mode (stepdown5_t *ctx, uint8_t mode) |
Step Down 5 mode selection function. More... | |
uint8_t | stepdown5_get_pg_state (stepdown5_t *ctx) |
Step Down 5 get PG pin state function. More... | |
err_t | stepdown5_set_wiper_0_pos (stepdown5_t *ctx, uint16_t wiper_0_pos) |
Step Down 5 set wiper 0 position. More... | |
err_t | stepdown5_set_wiper_1_pos (stepdown5_t *ctx, uint16_t wiper_1_pos) |
Step Down 5 set wiper 1 position. More... | |
err_t | stepdown5_set_r1_resistance (stepdown5_t *ctx, uint32_t resistance) |
Step Down 5 set potentiometer 0 resistance. More... | |
err_t | stepdown5_set_r2_resistance (stepdown5_t *ctx, uint32_t resistance) |
Step Down 5 set potentiometer 1 resistance. More... | |
err_t | stepdown5_set_output (stepdown5_t *ctx, uint8_t voltage) |
Step Down 5 set output voltage. More... | |
This file contains API for Step Down 5 Click Driver.