charger5 2.0.0.0
|
This file contains API for Charger 5 Click driver. More...
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | charger5_t |
Click context object definition. More... | |
struct | charger5_cfg_t |
Click configuration structure definition. More... | |
Enumerations | |
enum | charger5_err_t { CHARGER5_STATUS_OK , CHARGER5_STATUS_ERROR , CHARGER5_MODULE_INIT_ERROR , CHARGER5_NSTEPS_RANGE_ERROR } |
Click error code definition. More... | |
Functions | |
void | charger5_cfg_setup (charger5_cfg_t *cfg) |
Configuration Object Setup function. | |
charger5_err_t | charger5_init (charger5_t *ctx, charger5_cfg_t *cfg) |
Click Initialization function. | |
void | charger5_default_cfg (charger5_t *ctx) |
Click Default Configuration function. | |
charger5_err_t | charger5_generic_write (charger5_t *ctx, uint8_t reg_addr, uint16_t transfer_data) |
Generic Write function. | |
uint16_t | charger5_generic_read (charger5_t *ctx, uint8_t reg_addr) |
Generic Read function. | |
charger5_err_t | charger5_increment_wiper (charger5_t *ctx, uint8_t reg_addr, uint8_t n_steps) |
Increment Wiper function. | |
charger5_err_t | charger5_decrement_wiper (charger5_t *ctx, uint8_t reg_addr, uint8_t n_steps) |
Decrement Wiper function. | |
This file contains API for Charger 5 Click driver.