fan4 2.0.0.0
|
This file contains API for FAN 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | fan4_t |
Click ctx object definition. More... | |
struct | fan4_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | FAN4_MAP_MIKROBUS(cfg, mikrobus) |
#define | FAN4_RETVAL uint8_t |
#define | FAN4_OK 0x00 |
#define | FAN4_INIT_ERROR 0xFF |
#define | FAN4_SLAVE_ADDRESS 0x74 |
#define | FAN4_BOOST_START_TIMER_DIS 0x00 |
#define | FAN4_BOOST_START_TIMER_EN 0x01 |
#define | FAN4_VOLT_RANGE_CHECK_MASK 0x01 |
#define | FAN4_BS_TIMER_CHECK_MASK 0x02 |
#define | FAN4_THERM_SHTDWN_CHECK_MASK 0x40 |
#define | FAN4_OVERCURR_CHECK_MASK 0x80 |
#define | FAN4_CHECK_OK 0x00 |
#define | FAN4_DAC_LSB 78 |
#define | FAN4_MIN_VOLT_SCALE 0 |
#define | FAN4_MAX_VOLT_SCALE 4922 |
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. | |
This file contains API for FAN 4 Click driver.