mic24055 2.0.0.0
Public function

Functions

void mic24055_cfg_setup (mic24055_cfg_t *cfg)
 Config Object Initialization function.
 
MIC24055_RETVAL mic24055_init (mic24055_t *ctx, mic24055_cfg_t *cfg)
 Initialization function.
 
void mic24055_generic_transfer (mic24055_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void mic24055_dac_output (mic24055_t *ctx, uint16_t value_dac)
 Generic transfer function.
 
void mic24055_set_vout (mic24055_t *ctx, uint16_t voltage)
 Set output voltage.
 

Detailed Description

Function Documentation

◆ mic24055_cfg_setup()

void mic24055_cfg_setup ( mic24055_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.

◆ mic24055_dac_output()

void mic24055_dac_output ( mic24055_t * ctx,
uint16_t value_dac )

Generic transfer function.

Parameters
ctxClick object.
value_dacValue dac.

@description This function is dac output.

◆ mic24055_generic_transfer()

void mic24055_generic_transfer ( mic24055_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

◆ mic24055_init()

MIC24055_RETVAL mic24055_init ( mic24055_t * ctx,
mic24055_cfg_t * cfg )

Initialization function.

Parameters
mic24055Click object.
cfgClick configuration structure.

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

◆ mic24055_set_vout()

void mic24055_set_vout ( mic24055_t * ctx,
uint16_t voltage )

Set output voltage.

Parameters
ctxClick object.
voltageVoltage to set.

@description Sets the voltage to selected value.