fan4 2.0.0.0
|
Functions | |
void | fan4_cfg_setup (fan4_cfg_t *cfg) |
Config Object Initialization function. | |
FAN4_RETVAL | fan4_init (fan4_t *ctx, fan4_cfg_t *cfg) |
Initialization function. | |
void | fan4_default_cfg (fan4_t *ctx) |
Click Default Configuration function. | |
void | fan4_generic_write (fan4_t *ctx, uint8_t cmd) |
Generic write function. | |
void | fan4_generic_read (fan4_t *ctx, uint8_t *data_out) |
Generic read function. | |
FAN4_RETVAL | fan4_set_output (fan4_t *ctx, uint16_t output_volt, uint8_t boost_start_timer) |
Set output voltage. | |
uint8_t | fan4_check_diagnostic (fan4_t *ctx) |
Check diagnostic. | |
void fan4_cfg_setup | ( | fan4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t fan4_check_diagnostic | ( | fan4_t * | ctx | ) |
Check diagnostic.
ctx | Click object. |
void fan4_default_cfg | ( | fan4_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Fan4 click.
void fan4_generic_read | ( | fan4_t * | ctx, |
uint8_t * | data_out ) |
Generic read function.
ctx | Click object. |
data_out | Output data buf |
void fan4_generic_write | ( | fan4_t * | ctx, |
uint8_t | cmd ) |
Generic write function.
ctx | Click object. |
cmd | Command. |
FAN4_RETVAL fan4_init | ( | fan4_t * | ctx, |
fan4_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.
FAN4_RETVAL fan4_set_output | ( | fan4_t * | ctx, |
uint16_t | output_volt, | ||
uint8_t | boost_start_timer ) |
Set output voltage.
ctx | Click object. |
output_volt | Output voltage |
boost_start_timer | boost timer |