stepdown8 2.1.0.0
|
This file contains API for Step Down 8 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 | stepdown8_t |
Step Down 8 Click context object. More... | |
struct | stepdown8_cfg_t |
Step Down 8 Click configuration object. More... | |
Macros | |
#define | STEPDOWN8_PFM_PWM_MODE 0x00 |
Step Down 8 description register. | |
#define | STEPDOWN8_FORCED_PWM_MODE 0x01 |
#define | STEPDOWN8_R1_RPROG_ADDRESS 0x00 |
#define | STEPDOWN8_R1_VALUE 200000ul |
Step Down 8 description setting. | |
#define | STEPDOWN8_DIGIPOT_MAX_VALUE 100000ul |
#define | STEPDOWN8_DIGIPOT_RESOLUTION 257 |
#define | STEPDOWN8_ROUND_TO_NEAREST_INT 0.5 |
#define | STEPDOWN8_R10_VALUE 10000u |
#define | STEPDOWN8_MAX_OUTPUT 18 |
#define | STEPDOWN8_MIN_OUTPUT 3 |
#define | STEPDOWN8_PIN_STATE_HIGH 0x01 |
Step Down 8 pin state setting. | |
#define | STEPDOWN8_PIN_STATE_LOW 0x00 |
#define | STEPDOWN8_ADDR_A2A1A0_000 0x28 |
Step Down 8 device address setting. | |
#define | STEPDOWN8_ADDR_A2A1A0_001 0x29 |
#define | STEPDOWN8_ADDR_A2A1A0_010 0x2A |
#define | STEPDOWN8_ADDR_A2A1A0_011 0x2B |
#define | STEPDOWN8_ADDR_A2A1A0_100 0x2C |
#define | STEPDOWN8_ADDR_A2A1A0_101 0x2D |
#define | STEPDOWN8_ADDR_A2A1A0_110 0x2E |
#define | STEPDOWN8_ADDR_A2A1A0_111 0x2F |
#define | STEPDOWN8_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | stepdown8_return_value_t { STEPDOWN8_OK = 0 , STEPDOWN8_ERROR = -1 } |
Step Down 8 Click return value data. More... | |
Functions | |
void | stepdown8_cfg_setup (stepdown8_cfg_t *cfg) |
Step Down 8 configuration object setup function. | |
err_t | stepdown8_init (stepdown8_t *ctx, stepdown8_cfg_t *cfg) |
Step Down 8 initialization function. | |
err_t | stepdown8_default_cfg (stepdown8_t *ctx) |
Step Down 8 default configuration function. | |
void | stepdown8_set_en_pin (stepdown8_t *ctx, uint8_t pin_state) |
Step Down 8 set EN pin state function. | |
void | stepdown8_set_sps_pin (stepdown8_t *ctx, uint8_t pin_state) |
Step Down 8 set SPS pin state function. | |
uint8_t | stepdown8_get_pg_state (stepdown8_t *ctx) |
Step Down 8 get PG pin state function. | |
err_t | stepdown8_set_wiper_pos (stepdown8_t *ctx, uint16_t wiper_pos) |
Step Down 8 set wiper position. | |
err_t | stepdown8_set_r2_resistance (stepdown8_t *ctx, uint32_t resistance) |
Step Down 8 set potentiometer resistance. | |
err_t | stepdown8_set_output (stepdown8_t *ctx, float voltage) |
Step Down 8 set output voltage. | |
This file contains API for Step Down 8 Click Driver.