mic33153 2.0.0.0
mic33153.h File Reference

This file contains API for MIC33153 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  mic33153_t
 Click ctx object definition. More...
 
struct  mic33153_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MIC33153_MAP_MIKROBUS(cfg, mikrobus)
 
#define MIC33153_RETVAL   uint8_t
 
#define MIC33153_OK   0x00
 
#define MIC33153_INIT_ERROR   0xFF
 
#define MIC33153_OUT_ENABLE   1
 
#define MIC33153_OUT_DISABLE   0
 
#define MIC33153_MIN_VOLTAGE_800MV   0x0FFF
 
#define MIC33153_VOLTAGE_1000MV   0x0EC0
 
#define MIC33153_VOLTAGE_1500MV   0x0BE0
 
#define MIC33153_VOLTAGE_2000MV   0x08F0
 
#define MIC33153_VOLTAGE_2500MV   0x060F
 
#define MIC33153_VOLTAGE_3000MV   0x0330
 
#define MIC33153_VOLTAGE_3200MV   0x0210
 
#define MIC33153_MAX_VOLTAGE_3550MV   0x0000
 

Functions

void mic33153_cfg_setup (mic33153_cfg_t *cfg)
 Config Object Initialization function.
 
MIC33153_RETVAL mic33153_init (mic33153_t *ctx, mic33153_cfg_t *cfg)
 Initialization function.
 
void mic33153_generic_transfer (mic33153_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void mic33153_write_dac (mic33153_t *ctx, const uint16_t value_dac)
 Write DAC function.
 
void mic33153_enable_out (mic33153_t *ctx, uint8_t state)
 Out enable function.
 
uint8_t mic33153_check_power_good (mic33153_t *ctx)
 Power Good check function.
 

Detailed Description

This file contains API for MIC33153 Click driver.