mic33153 2.0.0.0
Public function

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

Function Documentation

◆ mic33153_cfg_setup()

void mic33153_cfg_setup ( mic33153_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ mic33153_check_power_good()

uint8_t mic33153_check_power_good ( mic33153_t * ctx)

Power Good check function.

Parameters
ctxClick object.
state0 - disable output voltage, 1 - enable output voltage.

@description This function hecks state of PG (INT) pin. If state is 1 that means that output voltage is above 92% of its steady state voltage. If state is 0 that means that output voltage is below 86% of its steady state voltage.

◆ mic33153_enable_out()

void mic33153_enable_out ( mic33153_t * ctx,
uint8_t state )

Out enable function.

Parameters
ctxClick object.
state0 - disable output voltage, 1 - enable output voltage.

@description This function enables or disables output voltage depending on the state value.

◆ mic33153_generic_transfer()

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.

Parameters
ctxClick object.
wr_bufWrite data buffer
wr_lenNumber of byte in write data buffer
rd_bufRead data buffer
rd_lenNumber of byte in read data buffer

@description Generic SPI transfer, for sending and receiving packages

◆ mic33153_init()

MIC33153_RETVAL mic33153_init ( mic33153_t * ctx,
mic33153_cfg_t * cfg )

Initialization function.

Parameters
mic33153Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ mic33153_write_dac()

void mic33153_write_dac ( mic33153_t * ctx,
const uint16_t value_dac )

Write DAC function.

Parameters
ctxClick object.
value_dacValue of DAC to be writen.

@description This function writes 12-bit value to DAC and that causes that output voltage be seted on determined value.