buck13 2.0.0.0
|
This file contains API for Buck 13 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 | buck13_t |
Click ctx object definition. More... | |
struct | buck13_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | BUCK13_MAP_MIKROBUS(cfg, mikrobus) |
#define | BUCK13_RETVAL uint8_t |
#define | BUCK13_OK 0x00 |
#define | BUCK13_INIT_ERROR 0xFF |
#define | BUCK13_ENABLE 1 |
#define | BUCK13_DISABLE 0 |
Functions | |
void | buck13_cfg_setup (buck13_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK13_RETVAL | buck13_init (buck13_t *ctx, buck13_cfg_t *cfg) |
Initialization function. | |
void | buck13_default_cfg (buck13_t *ctx) |
Click Default Configuration function. | |
void | buck13_generic_transfer (buck13_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | buck13_enable (buck13_t *ctx, uint8_t pwr_state) |
Enable Buck13 function. | |
uint16_t | buck13_get_adc (buck13_t *ctx) |
Get ADC function. | |
uint16_t | buck13_get_voltage (buck13_t *ctx) |
Get voltage function. | |
This file contains API for Buck 13 Click driver.