mic24055 2.0.0.0
|
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. | |
void mic24055_cfg_setup | ( | mic24055_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void mic24055_dac_output | ( | mic24055_t * | ctx, |
uint16_t | value_dac ) |
Generic transfer function.
ctx | Click object. |
value_dac | Value dac. |
@description This function is dac output.
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.
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
MIC24055_RETVAL mic24055_init | ( | mic24055_t * | ctx, |
mic24055_cfg_t * | cfg ) |
Initialization function.
mic24055 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void mic24055_set_vout | ( | mic24055_t * | ctx, |
uint16_t | voltage ) |
Set output voltage.
ctx | Click object. |
voltage | Voltage to set. |
@description Sets the voltage to selected value.