buck16 2.0.0.0
|
This file contains API for Buck 16 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 | buck16_t |
Buck 16 Click context object. More... | |
struct | buck16_cfg_t |
Buck 16 Click configuration object. More... | |
Macros | |
#define | BUCK16_CMD_VOLATILE_WIPER_0 0x00 |
Buck 16 commands. | |
#define | BUCK16_CMD_NV_WIPER_0 0x20 |
#define | BUCK16_CMD_VOLATILE_TCON 0x40 |
#define | BUCK16_CMD_DATA_EEPROM_1 0x60 |
#define | BUCK16_CMD_DATA_EEPROM_2 0x70 |
#define | BUCK16_CMD_DATA_EEPROM_3 0x80 |
#define | BUCK16_CMD_DATA_EEPROM_4 0x90 |
#define | BUCK16_CMD_DATA_EEPROM_5 0xA0 |
#define | BUCK16_CMD_DATA_EEPROM_6 0xB0 |
#define | BUCK16_CMD_DATA_EEPROM_7 0xC0 |
#define | BUCK16_CMD_DATA_EEPROM_8 0xD0 |
#define | BUCK16_CMD_DATA_EEPROM_9 0xE0 |
#define | BUCK16_CMD_DATA_EEPROM_10 0xF0 |
#define | BUCK16_WRITE 0x00 |
Buck 16 commands bits. | |
#define | BUCK16_INCREMENT 0x04 |
#define | BUCK16_DECREMENT 0x08 |
#define | BUCK16_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | BUCK16_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | BUCK16_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | buck16_return_value_t { BUCK16_OK = 0 , BUCK16_ERROR = -1 } |
Buck 16 Click return value data. More... | |
Functions | |
void | buck16_cfg_setup (buck16_cfg_t *cfg) |
Buck 16 configuration object setup function. | |
err_t | buck16_init (buck16_t *ctx, buck16_cfg_t *cfg) |
Buck 16 initialization function. | |
err_t | buck16_generic_write (buck16_t *ctx, uint8_t cmd, uint8_t cmd_bits, uint16_t tx_data) |
Data writing function. | |
void | buck16_enable_output (buck16_t *ctx, uint8_t enable) |
Enable/Disable voltage output. | |
err_t | buck16_set_potentiometer (buck16_t *ctx, uint16_t rwb) |
Set potentiometer resistivity. | |
err_t | buck16_set_output (buck16_t *ctx, uint16_t vout) |
Set output voltage. | |
This file contains API for Buck 16 Click Driver.