stepdown9 2.1.0.0
|
This file contains API for Step Down 9 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | stepdown9_t |
Step Down 9 Click context object. More... | |
struct | stepdown9_cfg_t |
Step Down 9 Click configuration object. More... | |
Enumerations | |
enum | stepdown9_return_value_t { STEPDOWN9_OK = 0 , STEPDOWN9_ERROR = -1 } |
Step Down 9 Click return value data. More... | |
Functions | |
void | stepdown9_cfg_setup (stepdown9_cfg_t *cfg) |
Step Down 9 configuration object setup function. | |
err_t | stepdown9_init (stepdown9_t *ctx, stepdown9_cfg_t *cfg) |
Step Down 9 initialization function. | |
err_t | stepdown9_default_cfg (stepdown9_t *ctx) |
Step Down 9 default configuration function. | |
err_t | stepdown9_generic_write (stepdown9_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Step Down 9 data writing function. | |
err_t | stepdown9_generic_read (stepdown9_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Step Down 9 data reading function. | |
void | stepdown9_set_en_pin (stepdown9_t *ctx, uint8_t pin_state) |
Step Down 9 set EN pin state function. | |
uint8_t | stepdown9_get_pg_pin (stepdown9_t *ctx) |
Step Down 9 get PG pin state function. | |
err_t | stepdown9_set_wiper_pos (stepdown9_t *ctx, uint8_t wiper_pos) |
Step Down 9 set wiper position. | |
err_t | stepdown9_set_resistance (stepdown9_t *ctx, uint32_t res_ohm) |
Step Down 9 set potentiometer resistance. | |
err_t | stepdown9_set_output (stepdown9_t *ctx, uint8_t voltage) |
Step Down 9 set output voltage. | |
This file contains API for Step Down 9 Click Driver.