buck12 2.0.0.0
|
This file contains API for Buck 12 Click driver. More...
#include "drv_digital_out.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | buck12_t |
Click ctx object definition. More... | |
struct | buck12_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | BUCK12_MAP_MIKROBUS(cfg, mikrobus) |
#define | BUCK12_RETVAL uint8_t |
#define | BUCK12_OK 0x00 |
#define | BUCK12_INIT_ERROR 0xFF |
#define | BUCK12_ENABLE 0x01 |
#define | BUCK12_DISABLE 0x00 |
#define | BUCK12_INPUT_VOLTAGE 0x02 |
#define | BUCK12_OUTPUT_VOLTAGE 0x03 |
#define | BUCK12_CHANNEL_0 0xA0 |
#define | BUCK12_CHANNEL_1 0xE0 |
Functions | |
void | buck12_cfg_setup (buck12_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK12_RETVAL | buck12_init (buck12_t *ctx, buck12_cfg_t *cfg) |
Initialization function. | |
void | buck12_default_cfg (buck12_t *ctx) |
Click Default Configuration function. | |
void | buck12_generic_transfer (buck12_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | buck12_control (buck12_t *ctx, uint8_t ctrl) |
Function for enable or disable device. | |
uint16_t | buck12_get_channel_adc (buck12_t *ctx, uint8_t channel) |
Function for read ADC on the channel. | |
float | buck12_get_voltage (buck12_t *ctx, uint8_t select_volt) |
Function for get Voltage. | |
This file contains API for Buck 12 Click driver.