mic24045 2.0.0.0
|
Functions | |
void | mic24045_cfg_setup (mic24045_cfg_t *cfg) |
Config Object Initialization function. | |
MIC24045_RETVAL | mic24045_init (mic24045_t *ctx, mic24045_cfg_t *cfg) |
Initialization function. | |
void | mic24045_generic_write (mic24045_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | mic24045_generic_read (mic24045_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
uint8_t | mic24045_get_status (mic24045_t *ctx) |
Get status function. | |
float | mic24045_get_vout (mic24045_t *ctx) |
Get voltage. | |
void | mic24045_set_vout (mic24045_t *ctx, float v_out) |
Set voltage. | |
void | mic24045_set_vout_decimal (mic24045_t *ctx, uint8_t dec) |
Set voltage decimal. | |
void | mic24045_enable (mic24045_t *ctx) |
Enable voltage output. | |
void | mic24045_disable (mic24045_t *ctx) |
Disable voltage output. | |
uint8_t | mic24045_get_power_good_state (mic24045_t *ctx) |
Get power good state. | |
void mic24045_cfg_setup | ( | mic24045_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void mic24045_disable | ( | mic24045_t * | ctx | ) |
Disable voltage output.
ctx | Click object. |
@description This function is setting EN pin to LOW logic state.
void mic24045_enable | ( | mic24045_t * | ctx | ) |
Enable voltage output.
ctx | Click object. |
@description This function is setting EN pin to HIGH logic state.
void mic24045_generic_read | ( | mic24045_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void mic24045_generic_write | ( | mic24045_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint8_t mic24045_get_power_good_state | ( | mic24045_t * | ctx | ) |
Get power good state.
ctx | Click object. |
@description This function returns power good pin state.
uint8_t mic24045_get_status | ( | mic24045_t * | ctx | ) |
Get status function.
ctx | Click object. |
@description This function is getting status.
float mic24045_get_vout | ( | mic24045_t * | ctx | ) |
Get voltage.
ctx | Click object. |
@description This function is getting voltage.
MIC24045_RETVAL mic24045_init | ( | mic24045_t * | ctx, |
mic24045_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void mic24045_set_vout | ( | mic24045_t * | ctx, |
float | v_out ) |
Set voltage.
ctx | Click object. |
v | out float param |
@description This function is setting v out.
void mic24045_set_vout_decimal | ( | mic24045_t * | ctx, |
uint8_t | dec ) |
Set voltage decimal.
ctx | Click object. |
dec | Decimal value of vout. VOUT Range Step Size Codes-decimal (hex) 0.640V to 1.280V 5 mV 0 (00h) to 128 (80h) 1.290V to 1.950V 10 mV 129 (81h) to 195 (C3h) 1.980V to 3.420V 30 mV 196 (C4h) to 244 (F4h) 4.750V to 5.250V 50 mV 245 (F5h) to 255 (FFh) @description This function is setting v out. |