powerbank 2.0.0.0
|
This file contains API for POWER BANK Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | powerbank_t |
Click ctx object definition. More... | |
struct | powerbank_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | POWERBANK_MAP_MIKROBUS(cfg, mikrobus) |
#define | POWERBANK_RETVAL uint8_t |
#define | POWERBANK_OK 0x00 |
#define | POWERBANK_INIT_ERROR 0xFF |
#define | POWERBANK_SLAVE_ADR 0x4D |
#define | POWERBANK_RESOLUTION 4096 |
#define | POWERBANK_12_BIT_DATA 0x0FFF |
Functions | |
void | powerbank_cfg_setup (powerbank_cfg_t *cfg) |
Config Object Initialization function. | |
POWERBANK_RETVAL | powerbank_init (powerbank_t *ctx, powerbank_cfg_t *cfg) |
Initialization function. | |
void | powerbank_generic_write (powerbank_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | powerbank_generic_read (powerbank_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint16_t | powerbank_read_data (powerbank_t *ctx) |
Read data function. | |
uint16_t | powerbank_read_voltage (powerbank_t *ctx, uint16_t v_ref) |
Read voltage function. | |
This file contains API for POWER BANK Click driver.