stepup 2.0.0.0
|
This file contains API for Step Up 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 | stepup_dac_cfg_t |
Click DAC configuration structure definition. More... | |
struct | stepup_t |
Click ctx object definition. More... | |
struct | stepup_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | STEPUP_MAP_MIKROBUS(cfg, mikrobus) |
#define | STEPUP_RETVAL uint8_t |
#define | STEPUP_OK 0x00 |
#define | STEPUP_INIT_ERROR 0xFF |
#define | STEPUP_ERROR (-1) |
#define | STEPUP_CFG_VREF_BUFFERED 1 |
#define | STEPUP_CFG_VREF_UNBUFFERED 0 |
#define | STEPUP_CFG_GAIN_1X 1 |
#define | STEPUP_CFG_GAIN_2X 0 |
#define | STEPUP_CFG_POWER_OUT_ON 1 |
#define | STEPUP_CFG_POWER_OUT_OFF 0 |
Functions | |
void | stepup_cfg_setup (stepup_cfg_t *cfg) |
Config Object Initialization function. | |
STEPUP_RETVAL | stepup_init (stepup_t *ctx, stepup_cfg_t *cfg) |
Initialization function. | |
void | stepup_default_cfg (stepup_t *ctx) |
Click Default Configuration function. | |
void | stepup_mod_set (stepup_t *ctx, uint8_t pin_state) |
Mod Pin set function. | |
void | stepup_en_set (stepup_t *ctx, uint8_t pin_state) |
En Pin set function. | |
void | stepup_dac_setup (stepup_t *ctx, stepup_dac_cfg_t *cfg) |
DAC Setup function. | |
err_t | stepup_dac_write (stepup_t *ctx, uint16_t dac_val) |
DAC Write function. | |
err_t | stepup_set_percentage (stepup_t *ctx, float percentage) |
Set DAC precetage up. | |
This file contains API for Step Up Click driver.