mic33153 2.0.0.0
|
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. | |
void mic33153_cfg_setup | ( | mic33153_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t mic33153_check_power_good | ( | mic33153_t * | ctx | ) |
Power Good check function.
ctx | Click object. |
state | 0 - 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.
void mic33153_enable_out | ( | mic33153_t * | ctx, |
uint8_t | state ) |
Out enable function.
ctx | Click object. |
state | 0 - disable output voltage, 1 - enable output voltage. |
@description This function enables or disables output voltage depending on the state value.
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.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
MIC33153_RETVAL mic33153_init | ( | mic33153_t * | ctx, |
mic33153_cfg_t * | cfg ) |
Initialization function.
mic33153 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void mic33153_write_dac | ( | mic33153_t * | ctx, |
const uint16_t | value_dac ) |
Write DAC function.
ctx | Click object. |
value_dac | Value 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.