boostinv2 2.0.0.0
|
This file contains API for Boost-inv 2 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 | boostinv2_t |
Click ctx object definition. More... | |
struct | boostinv2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | BOOSTONV2_MAP_MIKROBUS(cfg, mikrobus) |
#define | BOOSTONV2_RETVAL uint8_t |
#define | BOOSTONV2_OK 0x00 |
#define | BOOSTONV2_INIT_ERROR 0xFF |
#define | BOOSTINV2_POS_VOUT_5V 0x7FFF |
#define | BOOSTINV2_POS_VOUT_6V 0x7B00 |
#define | BOOSTINV2_POS_VOUT_7V 0x7A20 |
#define | BOOSTINV2_POS_VOUT_8V 0x7950 |
#define | BOOSTINV2_POS_VOUT_9V 0x7870 |
#define | BOOSTINV2_POS_VOUT_10V 0x7790 |
#define | BOOSTINV2_POS_VOUT_11V 0x76B0 |
#define | BOOSTINV2_POS_VOUT_12V 0x75E0 |
#define | BOOSTINV2_POS_VOUT_13V 0x7500 |
#define | BOOSTINV2_POS_VOUT_14V 0x7420 |
#define | BOOSTINV2_POS_VOUT_15V 0x7340 |
#define | BOOSTINV2_NEG_VOUT_5V 0x79A2 |
#define | BOOSTINV2_NEG_VOUT_6V 0x7900 |
#define | BOOSTINV2_NEG_VOUT_7V 0x786A |
#define | BOOSTINV2_NEG_VOUT_8V 0x77D0 |
#define | BOOSTINV2_NEG_VOUT_9V 0x7744 |
#define | BOOSTINV2_NEG_VOUT_10V 0x76B0 |
#define | BOOSTINV2_NEG_VOUT_11V 0x7630 |
#define | BOOSTINV2_NEG_VOUT_12V 0x75B2 |
#define | BOOSTINV2_NEG_VOUT_13V 0x7530 |
#define | BOOSTINV2_NEG_VOUT_14V 0x74B0 |
#define | BOOSTINV2_NEG_VOUT_15V 0x7474 |
Functions | |
void | boostinv2_cfg_setup (boostinv2_cfg_t *cfg) |
Config Object Initialization function. | |
BOOSTONV2_RETVAL | boostinv2_init (boostinv2_t *ctx, boostinv2_cfg_t *cfg) |
Initialization function. | |
void | boostinv2_default_cfg (boostinv2_t *ctx) |
Click Default Configuration function. | |
void | boostinv2_generic_transfer (boostinv2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | boostinv2_enable (boostinv2_t *ctx) |
Enable analog pin. | |
void | boostinv2_set_positive_voltage (boostinv2_t *ctx, uint16_t voltage) |
Sets postive voltage. | |
void | boostinv2_set_negative_voltage (boostinv2_t *ctx, uint16_t voltage) |
Sets negative voltage. | |
void | boostinv2_set_psn (boostinv2_t *ctx, uint8_t state) |
Sets PSN depending on input state. | |
This file contains API for Boost-inv 2 Click driver.