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_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_DACB 0x8000 |
#define | STEPUP_DACA 0x0000 |
#define | STEPUP_BUFFERED 0x4000 |
#define | STEPUP_UNBUFFERED 0x0000 |
#define | STEPUP_GAIN_1X 0x2000 |
#define | STEPUP_GAIN_2X 0x0000 |
#define | STEPUP_POWER_UP 0x1000 |
#define | STEPUP_POWER_DOWN 0x0000 |
Functions | |
void | stepup_cfg_setup (stepup_cfg_t *cfg) |
Config Object Initialization function. More... | |
STEPUP_RETVAL | stepup_init (stepup_t *ctx, stepup_cfg_t *cfg) |
Initialization function. More... | |
void | stepup_default_cfg (stepup_t *ctx, uint16_t out_value) |
Click Default Configuration function. More... | |
void | stepup_generic_transfer (stepup_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
void | stepup_mod_set (stepup_t *ctx, uint8_t pin_state) |
Mod Pin set function. More... | |
void | stepup_en_set (stepup_t *ctx, uint8_t pin_state) |
En Pin set function. More... | |
uint8_t | stepup_set_config (stepup_t *ctx, uint16_t config) |
En Pin set function. More... | |
uint8_t | stepup_set_out (stepup_t *ctx, uint16_t out_value) |
Setting output value. More... | |
float | stepup_get_percent (uint16_t out_value) |
Calculate ouput value in percent. More... | |
This file contains API for Step Up Click driver.