vreg 2.0.0.0
|
This file contains API for VREG Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | vreg_t |
Click ctx object definition. More... | |
struct | vreg_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | VREG_MAP_MIKROBUS(cfg, mikrobus) |
#define | VREG_RETVAL uint8_t |
#define | VREG_OK 0x00 |
#define | VREG_INIT_ERROR 0xFF |
#define | VREG_CHANNEL_0 0x00 |
#define | VREG_CHANNEL_1 0x01 |
#define | VREG_CHANNEL_2 0x02 |
#define | VREG_CHANNEL_3 0x03 |
#define | VREG_SINGLE_DIFFERENTIAL 0x00 |
#define | VREG_SINGLE_ENDED 0x02 |
#define | VREG_START_BIT 0x04 |
Functions | |
void | vreg_cfg_setup (vreg_cfg_t *cfg) |
Config Object Initialization function. | |
VREG_RETVAL | vreg_init (vreg_t *ctx, vreg_cfg_t *cfg) |
Initialization function. | |
void | vreg_generic_transfer (vreg_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint16_t | vreg_get_adc (vreg_t *ctx, uint8_t channel) |
Get ADC value function. | |
void | vreg_set_out_voltage (vreg_t *ctx, uint16_t value_dac) |
Set output voltage function. | |
void | vreg_set_output_voltage_procentage (vreg_t *ctx, uint8_t value_dac_pct) |
Set output voltage procentage function. | |
void | vreg_start_measuring (vreg_t *ctx) |
Start the measuring function. | |
void | vreg_stop_measuring (vreg_t *ctx) |
Stop the measuring function. | |
This file contains API for VREG Click driver.